This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| git commit --amend -m "📝Message" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| git rm --cached -r <dir> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| arr[Math.floor(Math.random() * arr.length)]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| mkdir folderName && cd "$_" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| document.documentElement.style.setProperty('--bg-color', '#ccc'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const bgColor = getComputedStyle(document.documentElement).getPropertyValue('--bg-color'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 1. Rebase to the commit you want to change (~1 means the first ancestor of the specified commit) | |
| git rebase -i <hash>~1 | |
| # Can also do this | |
| git rebase -i HEAD~4 # where HEAD~4 = last 3 commits | |
| # 2. Change pick to reword of the commit you want to change then save and quit | |
| # 3. Change the commit message in the editor and save |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| clear control | |
| clear mod4 | |
| keycode 105 = | |
| keycode 206 = | |
| keycode 133 = Control_L NoSymbol Control_L | |
| keycode 134 = Control_R NoSymbol Control_R | |
| keycode 37 = Super_L NoSymbol Super_L |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # scp /file/path username@a:/destionation/path | |
| scp <source> <destination> |