- About
- Software Development
- Frequently Used Commands
- Windows
- Visual Studio Code shortcuts
- Learning
- Tech
- Notes
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)
- Vulnerability Database
Passkey support
Passkey is a type of authentication method used to secure access to various online services and accounts. It is a unique key pair consisting of a public key and a private key that is generated specifically for an individual user. The passkey serves as a secure and convenient way to authenticate and encrypt data, providing an additional layer of protection for user accounts.
Services that support Passkey:
- Bitwarden
- Windows (Windows Hello)
- iOS
- Andorid
Websites/Apps that support Passkey:
- Amazon
- Apple ID iOS only
- GitHub
- Google Account
- Internet Identity
- WhatsApp (Android & iOS)
- Yahoo
Websites that do not yet support Passkey but support Multi-Factor Authentication (MFA):
- Atlassian and its product family such as Bitbucket
- Gitlab
- terraform.io
- Wellfound.com
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
- Undo (Not pushed)
git reset --soft HEAD~
- 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
Windows
Remove XBox
- Remove XBox with Powershell
Get-ProvisionedAppxPackage -Online | Where-Object { $_.PackageName -match "xbox" } | ForEach-Object { Remove-ProvisionedAppxPackage -Online -AllUsers -PackageName $_.PackageName }
- Check if any Xbox application is left
dism /Online /Get-ProvisionedAppxPackages | Select-String PackageName | Select-String xbox
Windows shortcuts
Only those that are frequently used and easily forgotten are listed.
Move Window to another monitor | ⊞ Windows + ⇧ Shift + ← / → |
Switch to another desktop | ⊞ Windows + ⌃ Control + ← / → |
Task View | ⊞ Windows + Tab |
Open Action Center | ⊞ Windows + A |
Display/Hide Desktop | ⊞ Windows + D |
Open File Explorer | ⊞ Windows + E |
Quick Link Menu (System tools such as Event Viewer) | ⊞ Windows + X |
Lock | ⊞ Windows + L |
Editing
Switch Voice Typing | ⊞ Windows + H |
Open Clipboard History | ⊞ Windows + ⌃ Control + V |
Paste as plain text[1] | ⊞ Windows + V[2] |
Capture screen and then OCR to clipboard[1:1] | ⊞ Windows + T[2:1] |
Emoji | ⊞ Windows + .[2:2] |
Visual Studio Code shortcuts
Only those that are frequently used and easily forgotten are listed. Refernce from https://code.visualstudio.com/shortcuts/keyboard-shortcuts-windows.pdf
Basic
User Settings | ⌃ Control + , |
Select all occurences of Find match | Alt + Enter |
Quick Fix | ⌃ Control< + . |
Ctrl+K Ctrl+X | ⌃ Control< + K ⌃ Control< + X |
Navigation
Go to Line… | ⌃ Control + G |
Go to File… | ⌃ Control + P |
Go to next error or warning | F8 |
Focus into 1st, 2nd or 3rd… editor group | ⌃ Control + 1/2/3… |
Spit editor | ⌃ Control + </kbd> |
Show integrated termina | ⌃ Control + ` |
Create new terminal | ⌃ Control + ⇧ Shift + ` |
Show Explorer / Toggle focus | ⌃ Control + ⇧ Shift + E |
Show Search | ⌃ Control + ⇧ Shift + S |
Show Source Control | ⌃ Control + ⇧ Shift + G |
Show Debug | ⌃ Control + ⇧ Shift + D |
Show Extension | ⌃ Control + ⇧ Shift + X |
Replace in files | ⌃ Control + ⇧ Shift + H |
Show Output panel | ⌃ Control + ⇧ Shift + U |
Open Markdown preview to the side | ⌃ Control + K V |
Debug
Toggle breakpoin | F9 |
Start/Continue | F5 |
Step over | F10 |
Step into | F11 |
Step out | ⇧ Shift + F11 |
Learning
- CodeSchool
- CodeFight
- HackerRank
- CodeCombat
- CodinGame
- Learn Git Branching
- Learn Kubernetes using Interactive Browser-Based Scenarios
- (ISC)2 International Information Systems Security Certification Consortium
- UN Climate Change Learning
Tech
Mac
- [Change Java version on MacOS] http://www.guigarage.com/2013/02/change-java-version-on-mac-os/