Mountain Lion (10.8) has three main difference compared to Lion (10.7):
- XCode 4.4 does not install Command Line Tools by default
- X11 isn't available anymore
- The installed version of OpenSSL has some bugs
#!/bin/bash | |
brew uninstall imagemagick jpeg libtiff jasper | |
brew install imagemagick |
#! /bin/sh | |
### BEGIN INIT INFO | |
# Provides: nginx | |
# Required-Start: $all | |
# Required-Stop: $all | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: starts the nginx web server | |
# Description: starts nginx using start-stop-daemon |
#!/bin/bash | |
ruby -run -e httpd . -p 8080 |
# Add to ~/.bash_profile | |
function _update_ps1() | |
{ | |
export PS1="$(~/bin/powerline-bash.py $?)" | |
} | |
export PROMPT_COMMAND="_update_ps1" |
irb -Ilib -rGEMNAME |
== Free Webapp icons | |
http://www.elegantthemes.com/blog/resources/elegant-icon-font | |
http://www.justbenicestudio.com/studio/websymbols/ | |
http://mortendk.github.io/iconify/ | |
http://livicons.com/ |
# ==> Configuration for :lockable | |
# Defines which strategy will be used to lock an account. | |
# :failed_attempts = Locks an account after a number of failed attempts to sign in. | |
# :none = No lock strategy. You should handle locking by yourself. | |
config.lock_strategy = :failed_attempts | |
# Defines which key will be used when locking and unlocking an account | |
config.unlock_keys = [ :email ] | |
# Defines which strategy will be used to unlock an account. |
def camel_case(txt) | |
txt.gsub(/(_*)([A-Za-z]+)(_*)/) { |m| $2.downcase.capitalize } | |
end | |
examples = [ "_foo_bar_quux_zurb_", | |
"foo_bar_quux", | |
"_foo_bar_quux", | |
"foo__bar-quux", | |
"_foo__bAr_qUUx" ] |