View the Project on GitHub nicolas-brousse/osx-install-and-tips
$ dscacheutil -flushcache
$ sudo killall -HUP mDNSResponder
$ say -f <textfile> -o <outputfile> -v <voice>
$ say -f input.txt -o output.aiff -v alex
$ defaults write com.apple.screencapture location ~/Pictures
$ shasum -a 256 /path/to/file
$ shasum -a 512 /path/to/file
# Hide
$ setfile -a V testfile.txt
# Show
$ setfile -a v testfile.txt
$ wget -O /dev/null http://ping.online.net/1Mo.dat # 1Mo
$ wget -O /dev/null http://ping.online.net/100Mo.dat # 100Mo
$ wget -O /dev/null http://ping.online.net/1000Mo.dat # 1Go
$ file --mime /path/to/file.txt
# Between two files
$ diff file-1 file-2
# Between two folders
$ diff -rq folder-1 folder-2
$ perl -p -i -e 's/oldstring/newstring/g' to_file.txt
$ wc -l file.txt