you are here: codestackercodes [RSS] → tag terminal [RSS]

git log for humans

git log --graph --format=format:'%C(yellow)%h%C(reset) %C(red)- %an%C(reset) - %C(white)%s%C(reset) %C(bold yellow)%d%C(reset) %C(green)(%ar)%C(reset)' --abbrev-commit --date=short

disable spotlight on a fat32 external drive

cd /Volumes/your_drive
touch .metadata_never_index

alias sample

the alias command makes it possible to launch any command using a pre-set string. i love it!

$ alias mypassword="echo '123456'"

$ mypassword # return '123456'

stop/start mysql via terminal

sudo launchctl unload -w /Library/LaunchDaemons/com.mysql.mysqld.plist
sudo launchctl load -w /Library/LaunchDaemons/com.mysql.mysqld.plis
Displaying all 4 Code