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
| diskutil mount Recovery\ HD | |
| hdiutil mount /Volumes/Recovery\ HD/com.apple.recovery.boot/BaseSystem.dmg | |
| cp -R /Volumes/OS\ X\ Base\ System/Applications/Safari.app /Applications |
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
| #!/bin/bash | |
| # self-detach.sh | |
| # Self-detaching shell script | |
| #------------------------------------------ | |
| if [ -z "$_DETACHED_" ] | |
| then | |
| # Run this script silently in background | |
| # mode with low priority | |
| _DETACHED_=1 nohup nice sh $0 &>/dev/null |
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
| #include <Windows.h> | |
| #include <cstdio> | |
| void MsgBoxLastError() | |
| { | |
| LPWSTR lpMsgBuf = NULL; | |
| if (FormatMessage( | |
| FORMAT_MESSAGE_ALLOCATE_BUFFER | | |
| FORMAT_MESSAGE_FROM_SYSTEM | | |
| FORMAT_MESSAGE_IGNORE_INSERTS, |
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
| sudo /Applications/Install\ macOS\ Sierra.app/Contents/Resources/createinstallmedia --volume /Volumes/SierraBootInstall --applicationpath /Applications/Install\ macOS\ Sierra.app --nointeraction &&say Done |
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
| has:nouserlabels !in:Inbox -label:sent -label:drafts |
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 filter-branch --index-filter \ | |
| 'git rm --cached --ignore-unmatch <file>' | |
| That will remove <file> from all commits, starting from the root commit. |
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 config --global alias.lg 'log --pretty=format:"%h%ad | %s%d [%an]" --graph --date=short' |
OlderNewer