These commands are good as of 2011-07-27.
App store http://itunes.apple.com/us/app/xcode/id448457090?mt=12) The download/install takes awhile so start it first. When it finishes downloading you will still need to run it to complete installation.
| window.stainedPaper = function (func) { | |
| var canvas = document.createElement('canvas'); | |
| document.body.appendChild(canvas); | |
| paper.setup(canvas); | |
| func.call(paper); | |
| }; |
| set keymap vi-insert | |
| Control-a: beginning-of-line | |
| Control-b: backward-char | |
| Control-d: delete-char | |
| Control-e: end-of-line | |
| Control-f: forward-char | |
| Control-k: kill-line | |
| Control-n: next-history | |
| Control-p: previous-history | |
| set keymap emacs-ctlx |
| archive_github_repo() | |
| { | |
| if [ ! -d .git ]; then | |
| echo "You must run this from within the root of your git repo." | |
| exit 1 | |
| fi | |
| pwd=`pwd` | |
| repo_url=`git config --local --get remote.origin.url` | |
| repo_name=`echo $repo_url | awk -F / '{print $2}' | sed -e s/.git//` |
| #!/usr/bin/env ruby | |
| # encoding: UTF-8 | |
| require 'rubygems' | |
| # https://github.com/jnunemaker/google-weather/ | |
| # gem install google-weather | |
| require 'google_weather' | |
| # usage: outside_temp.rb [City,Province|Postal Code] | |
| if ARGV.size == 0 |
These commands are good as of 2011-07-27.
App store http://itunes.apple.com/us/app/xcode/id448457090?mt=12) The download/install takes awhile so start it first. When it finishes downloading you will still need to run it to complete installation.
| if [ $(ps aux | grep "Chromium.app" | grep -v grep | wc -l) -gt 0 ]; then | |
| echo "Please close all Chromium instances before running this script" | |
| exit 1 | |
| fi | |
| if [ $(whoami) != "root" ]; then | |
| echo "Please run this script with sudo to allow for installation into /Applications" | |
| exit 1 | |
| fi |
| delete-branch() | |
| { | |
| for i in `echo $*`; do | |
| echo "Deleting local and remote branch $i..." | |
| git push origin :$i | |
| git branch -D $i | |
| done | |
| } |
| delete-branch() | |
| { | |
| for i in `echo $*`; do | |
| echo "Deleting local and remote branch $i..." | |
| git push origin :$i | |
| git branch -D $i | |
| done | |
| } |
| ayv_deploy_dir="/Users/${USER}/Sites/ayv/deploy" | |
| make_soup() | |
| { | |
| current_branch=`git status | head -n 1 | awk '{print $4}'` | |
| echo "Pushing $current_branch to soup... (Press Ctrl-c to abort)" | |
| sleep 2 | |
| git checkout soup | |
| git fetch upstream && git merge upstream/soup | |
| git merge $current_branch && git push upstream soup || git reset --hard |