Add to /etc/hosts
127.0.0.1 localunixsocket.local
| http://blog.taylormcgann.com/2012/07/05/hibernate-from-terminal/ | |
| alias hibernate='sudo pmset -a hibernatemode 25' | |
| alias sleep='sudo pmset -a hibernatemode 0' | |
| alias safesleep='sudo pmset -a hibernatemode 3' | |
| alias smartsleep='sudo pmset -a hibernatemode 2' |
| #!/bin/bash | |
| SOURCE_DIR=$1 | |
| DESTINATION_DIR=$2 | |
| find "$SOURCE_DIR" -print | while read filename; do | |
| FILE_NAME="$(basename "$filename")" | |
| SOURCE_PATH="$SOURCE_DIR/$FILE_NAME" | |
| DESTINATION_PATH="$DESTINATION_DIR/$FILE_NAME" |
@font-face {
font-family: 'HelveticaNeueLT';
src: url("fonts/HelveticaNeueLTPro-Bd.eot"); /* IE8 */
src: url("fonts/HelveticaNeueLTPro-Bd.eot?#iefix") format('embedded-opentype'), /* IE9 */
url("fonts/HelveticaNeueLTPro-Bd.woff2") format("woff2"), /* Chrome, Firefox */
url("fonts/HelveticaNeueLTPro-Bd.woff") format("woff"), /* Chrome, Firefox, Safari, IE9 */
url("fonts/HelveticaNeueLTPro-Bd.ttf") format("truetype"), /* Chrome, Firefox, IE9 */
url("fonts/HelveticaNeueLTPro-Bd.svg#HelveticaNeueLTPro-Bd") format("svg"); /* Safari */
font-weight: 700;
Install zsh and zsh-completions using Homebrew:
$ brew install zsh zsh-completions
User zsh from brew
$ sudo dscl . -create /Users/$USER UserShell /usr/local/bin/zsh
Speed test
| Primary Meaning | |
| [ -a FILE ] True if FILE exists. | |
| [ -b FILE ] True if FILE exists and is a block-special file. | |
| [ -c FILE ] True if FILE exists and is a character-special file. | |
| [ -d FILE ] True if FILE exists and is a directory. | |
| [ -e FILE ] True if FILE exists. | |
| [ -f FILE ] True if FILE exists and is a regular file. | |
| [ -g FILE ] True if FILE exists and its SGID bit is set. | |
| [ -h FILE ] True if FILE exists and is a symbolic link. | |
| [ -k FILE ] True if FILE exists and its sticky bit is set. |
sudo rm -rfv /Library/Caches/com.apple.iconservices.store; sudo find /private/var/folders/ \( -name com.apple.dock.iconcache -or -name com.apple.iconservices \) -exec rm -rfv {} \; ; sleep 3; killall Dock; killall Finder