Optimize non-Apple SSDs on OS X. (Run the following commands in the terminal.)
Enable TRIM support
Check IOAHCIBlockStorage version:
open /System/Library/Extensions/IOAHCIFamily.kext/Contents/PlugIns/IOAHCIBlockStorage.kext/Contents/version.plist
alias ls='ls -Glah' | |
alias web='open -a Safari.app' | |
alias mail='open -a Mail.app' | |
alias todo='open -a Reminders.app' | |
git_branch () { | |
if git rev-parse --git-dir >/dev/null 2>&1 | |
then echo -e "" [$(git branch 2>/dev/null| sed -n '/^\*/s/^\* //p')] | |
else | |
echo "" | |
fi |
Optimize non-Apple SSDs on OS X. (Run the following commands in the terminal.)
Check IOAHCIBlockStorage version:
open /System/Library/Extensions/IOAHCIFamily.kext/Contents/PlugIns/IOAHCIBlockStorage.kext/Contents/version.plist
#An cli to optimize OS X to suit my need.
###Dashboard To disable
defaults write com.apple.dashboard mcx-disabled -boolean YES
To enable
for i in `gem list --no-versions`; do gem uninstall -aIx $i; done |
#Install MySQL from binary on Maverick.
mysql_install_db
with parameters you want. For example
./mysql_install_db --verbose
--user=clozed2u
--basedir=/usr/local/mysql
./configure --prefix=/usr/local --enable-rubyinterp=yes --enable-pythoninterp=yes --enable-perlinterp=yes --enable-luainterp --with-luajit --enable-multibyte --disable-gui --with-tlib=ncurses --with-features=huge [email protected] --without-x --enable-cscope && make && make install |
npm -g ls | grep -v 'npm@' | awk '/@/ {print $2}' | awk -F@ '{print $1}' | xargs npm -g rm |
for code in {0..255}; do echo -e "\e[38;05;${code}m $code: Test"; done |
fastcgi_cache_path /var/cache/nginx levels=1:2 keys_zone=microcache:10m max_size=1024m inactive=15m; | |
map $http_cookie $cache_uid { | |
default nil; # hommage to Lisp :) | |
~SESS[[:alnum:]]+=(?<session_id>[[:alnum:]]+) $session_id; | |
} | |
map $request_method $no_cache { | |
default 1; | |
HEAD 0; | |
GET 0; |