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
| # ==> 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. |
| == 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/ |
| irb -Ilib -rGEMNAME |
| # Add to ~/.bash_profile | |
| function _update_ps1() | |
| { | |
| export PS1="$(~/bin/powerline-bash.py $?)" | |
| } | |
| export PROMPT_COMMAND="_update_ps1" |
| #!/bin/bash | |
| ruby -run -e httpd . -p 8080 |
| #! /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 | |
| brew uninstall imagemagick jpeg libtiff jasper | |
| brew install imagemagick |
| class FooStruct | |
| def initialize(attrs) | |
| # Create a Singleton Class (Anonymous Class) inheriting from FooStruct | |
| klass = ( class << self; self; end ) | |
| # Loop through the attributes | |
| attrs.each do |attr| | |
| # Within the context of the anonymous class... | |
| klass.class_eval do | |
| # Define accessors for each of the attributes | |
| attr_accessor attr.to_sym |