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 the network in every three hour | |
while [ 1 -lt 2 ] | |
do | |
networksetup -setairportpower en0 off; | |
sleep 3h; | |
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
# merge project-a to a project-b with all the history | |
cd path/to/project-b | |
git remote add project-a path/to/project-a | |
git fetch project-a | |
git merge --allow-unrelated-histories project-a/master | |
git remote remove project-a | |
git add . | |
git commit -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
# Start FTP Server | |
launchctl load -w /System/Library/LaunchDaemons/ftp.plist | |
# Stop FTP Server | |
launchctl unload -w /System/Library/LaunchDaemons/ftp.plist |
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 CLICOLOR=1 | |
export LSCOLORS=Gxfxcxdxbxegedabagacad | |
[[ -f $HOME/.dircolors ]] && eval $(dircolors -b $HOME/.dircolors) | |
if $_isxrunning; then | |
[[ -f $HOME/.dircolors_256 ]] && eval $(dircolors -b $HOME/.dircolors_256) | |
export TERM='xterm-256color' |
NewerOlder