These commands are good as of 2010-11-18.
Homebrew http://mxcl.github.com/homebrew/
ruby -e "$(curl -fsS http://gist.github.com/raw/323731/install_homebrew.rb)"
http://developer.apple.com/technology/xcode.html
| [ac3 @ 0xb842fe0] frame sync error | |
| Error while decoding stream #0:1: Invalid data found when processing input | |
| [ac3 @ 0xb842fe0] exponent out-of-range | |
| [ac3 @ 0xb842fe0] error decoding the audio block | |
| [ac3 @ 0xb842fe0] frame sync error | |
| Error while decoding stream #0:1: Invalid data found when processing input | |
| [ac3 @ 0xb842fe0] exponent out-of-range | |
| [ac3 @ 0xb842fe0] error decoding the audio block | |
| [ac3 @ 0xb842fe0] frame sync error | |
| Error while decoding stream #0:1: Invalid data found when processing input |
These commands are good as of 2010-11-18.
ruby -e "$(curl -fsS http://gist.github.com/raw/323731/install_homebrew.rb)"
http://developer.apple.com/technology/xcode.html
| # | |
| # ActiveSupport patches | |
| # | |
| module ActiveSupport | |
| # Format the buffered logger with timestamp/severity info. | |
| class BufferedLogger | |
| NUMBER_TO_NAME_MAP = {0=>'DEBUG', 1=>'INFO', 2=>'WARN', 3=>'ERROR', 4=>'FATAL', 5=>'UNKNOWN'} | |
| NUMBER_TO_COLOR_MAP = {0=>'0;37', 1=>'32', 2=>'33', 3=>'31', 4=>'31', 5=>'37'} |
| /* | |
| * AppController.j | |
| * streams | |
| * | |
| * Created by You on January 28, 2011. | |
| * Copyright 2011, Your Company All rights reserved. | |
| */ | |
| @import <Foundation/CPObject.j> |
| sudo lsof -i -P | grep -i "listen" |
| Format meaning: | |
| %a - The abbreviated weekday name (``Sun'') | |
| %A - The full weekday name (``Sunday'') | |
| %b - The abbreviated month name (``Jan'') | |
| %B - The full month name (``January'') | |
| %c - The preferred local date and time representation | |
| %d - Day of the month (01..31) | |
| %H - Hour of the day, 24-hour clock (00..23) | |
| %I - Hour of the day, 12-hour clock (01..12) |
| #mysql info | |
| HOST=127.0.0.1 | |
| USER=root | |
| PASS=1234 | |
| DB=database | |
| #gzip which | |
| GZIP="$(which gzip)" | |
| # Get data in dd-mm-yyyy format | |
| NOW="$(date +"%d-%m-%Y")" |
| rake db:migrate RAILS_ENV=production |
| # local machine | |
| $ cd ~/.ssh | |
| $ ssh-keygen -t dsa | |
| Generating public/private dsa key pair. | |
| Enter file in which to save the key (/Users/user/.ssh/id_dsa): | |
| Enter passphrase (empty for no passphrase): | |
| Enter same passphrase again: | |
| Your identification has been saved in /Users/user/.ssh/id_dsa. | |
| Your public key has been saved in /Users/user/.ssh/id_dsa.pub |
| <%= select(:address, :state, [ | |
| ['Select a State', 'None'], | |
| ['Alabama', 'AL'], | |
| ['Alaska', 'AK'], | |
| ['Arizona', 'AZ'], | |
| ['Arkansas', 'AR'], | |
| ['California', 'CA'], | |
| ['Colorado', 'CO'], | |
| ['Connecticut', 'CT'], | |
| ['Delaware', 'DE'], |