About
This page contains useful information to myself. It also serve as a testing page for this blog.
Software Development
Architecture
Security
- Instrumentation tookit
- Mask sensitive information such as Proxy-Authorization when running command,
curl -v https://somewhere.need.authenticated.proxy 2>&1 | sed -E "s/(proxy-authorization:).*/\1: ***/i"
- Nessus
- OWASP
- SANS
- Snort (IDS)
ASP.Net
Miscellaneous
- High Performance Browser Networking
- asciinema
- Creating an Alpine Linux package
- Visual Studio Code Keyboard Shortcuts for Windows
Frequently Used Commands
- Shutdown Windows immediately
shutdown -r -t 0
, useful when you remote to a Windows PC - Switch java version
1 | export JAVA_HOME=`/usr/libexec/java_home -v 1.8` |
Git
- Deleting a remote branch
git push [remote] --delete [branch]
e.g.,git push origin --delete feature/branch
- Sync remote branch and delete remote non-existing local copy
git fetch --prune
- List the commit different between branches
git rev-list [branch]...[another branch]
- List the commit different between branches with arrow indicates which branch owns the commit
git rev-list --left-right [branch]...[another branch]
- List the commit of a branch is ahead/behind to a remote branch
git rev-list [branch]...[remote]/[another branch]
- Show the number of ahead of behind between branches
git rev-list --left-right count [branch]...[another branch]
- Update submodules with latest commit
git submodule update --remote
Learning
- CodeSchool
- CodeFight
- HackerRank
- CodeCombat
- CodinGame
- Learn Git Branching
- Learn Kubernetes using Interactive Browser-Based Scenarios
Tech
Mac
- [Change Java version on MacOS] http://www.guigarage.com/2013/02/change-java-version-on-mac-os/