##
## Restore the file status in the index
##
git reset -- <file>
##
## check out a copy from the index
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
| cat my.json | jq '. | "\(.time): \(.descr)"' |
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
| aws s3 presign s3://my-bycket/filename.csv --expires-in 86400 | |
| # secs = mins = hours = days | |
| # 3600 = 60 = 1 | |
| # 7200 = 120 = 2 | |
| # 43200 = 720 = 12 | |
| # 86400 = 1440 = 24 = 1 | |
| # 172800 = 2880 = 48 = 2 | |
| # 345600 = 5760 = 96 = 4 | |
| # 604800 = 10080 = 168 = 7 (max) |
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
| ## | |
| ## I choose *zip* in the hopes that the recipient already | |
| ## has a local zip tool that supports the encryption | |
| ## and does not need to download 7zip. | |
| ## | |
| 7za a -mem=AES -p${PASSWORD} -tzip \ | |
| devon_password.txt.zip \ | |
| devon_password.txt |
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
| brew install putty | |
| puttygen key.ppk -O private-openssh -o key.pem | |
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
| ssh-keygen -y -f ~/.ssh/id_rsa > ~/.ssh/id_rsa.pub |
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
| zip -9r NSColorPanelSwatches.zip ~/Library/Colors/NSColorPanelSwatches.plist | |
| unzip NSColorPanelSwatches.zip |
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
| qemu-img resize disk.qcow2 +2G |
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
| " Switch off all auto-indenting | |
| set nocindent | |
| set nosmartindent | |
| set noautoindent | |
| set indentexpr= | |
| filetype indent off | |
| filetype plugin indent off |
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
| export GIT_COMMITTER_DATE="Sep 8, 2012 13:33:48 PM GMT-0500" | |
| git add makepass.exe makepass.lst makepass_exe.md | |
| git commit --date "${GIT_COMMITTER_DATE}" -m "Added MakePass.EXE info from archive.org." makepass.exe makepass.lst makepass_exe.md | |
| export GIT_COMMITTER_DATE="Sep 8, 2012 20:20:20 AM GMT-0500" | |
| git add index.php |