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
<%= select(:address, :state, [ | |
['Select a State', 'None'], | |
['Alabama', 'AL'], | |
['Alaska', 'AK'], | |
['Arizona', 'AZ'], | |
['Arkansas', 'AR'], | |
['California', 'CA'], | |
['Colorado', 'CO'], | |
['Connecticut', 'CT'], | |
['Delaware', 'DE'], |
# 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 |
rake db:migrate RAILS_ENV=production |
#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")" |
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) |
sudo lsof -i -P | grep -i "listen" |
/* | |
* AppController.j | |
* streams | |
* | |
* Created by You on January 28, 2011. | |
* Copyright 2011, Your Company All rights reserved. | |
*/ | |
@import <Foundation/CPObject.j> |
# | |
# 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'} |
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
[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 |