This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#event | |
= error_messages_for @event | |
.row | |
= form_for @event, :class => 'form-vertical' do |form| | |
.span8 | |
.row | |
.span4 | |
= form.label 'Date' | |
= form.date_select :start_date, {}, :class=>"span1" | |
.span4 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
delete-branch() | |
{ | |
for i in `echo $*`; do | |
echo "Deleting local and remote branch $i..." | |
git push origin :$i | |
git branch -D $i | |
done | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
delete-branch() | |
{ | |
for i in `echo $*`; do | |
echo "Deleting local and remote branch $i..." | |
git push origin :$i | |
git branch -D $i | |
done | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def download_image(u) | |
path = 'images/%s' % u.split('/')[-1] | |
url = URI.parse(u) | |
found = false | |
until found | |
host, port = url.host, url.port if url.host && url.port | |
query = url.query ? url.query : "" | |
req = Net::HTTP::Get.new(url.path + '?' + query) | |
res = Net::HTTP.start(host, port) {|http| http.request(req) } | |
res.header['location'] ? url = URI.parse(res.header['location']) : found = true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require 'jekyll' | |
require 'fileutils' | |
require 'net/http' | |
require 'uri' | |
require "json" | |
module Jekyll | |
module Posterous | |
def self.fetch(uri_str, limit = 10) |
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.