This assumes you have a proper Framework'd Python installation.
brew install python --framework
Install Qt v4.7.1
| " Vim color file | |
| " Converted from Textmate theme Twilight using Coloration v0.2.5 (http://github.com/sickill/coloration) | |
| set background=dark | |
| highlight clear | |
| if exists("syntax_on") | |
| syntax reset | |
| endif |
| sfdisk -uS /dev/sdc <<EOF | |
| 64 | |
| 0,0 | |
| 0,0 | |
| 0,0 | |
| EOF |
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| """Kenneth Reitz's GitHub Syncer | |
| This script uses the GitHub API to get a list of all forked, mirrored, public, and | |
| private repos in your GitHub account. If the repo already exists locally, it will | |
| update it via git-pull. Otherwise, it will properly clone the repo. | |
| It will organize your repos into the following directory structure: |
| #! /usr/bin/env ruby | |
| # this script takes your current commit, finds all the submodules in it, | |
| # makes them static files in a new tree and updates a branch called 'heroku' | |
| # - this way you can push a project with submodules to heroku easily | |
| # just run this, then run "git push heroku heroku:master" | |
| current_commit = `git rev-parse HEAD` | |
| current_tree = `git rev-parse HEAD^{tree}` | |
| puts "Starting at tree #{current_tree}" |
| # 5 minutes Lisp in Python | |
| # Pepijn de Vos <http://pepijndevos.nl> | |
| # | |
| # Inspired by 30 minutes Lisp in Ruby | |
| # http://gist.github.com/562017 | |
| # | |
| # This Lisp does not read or parse anything at all. | |
| # A generator and a Decorator are abused to run sexps. | |
| # | |
| # Usage: |
| task :finish do | |
| next if ENV['NOCAMPFIRE'] | |
| require "#{rails_root}/lib/campfire" | |
| branch_name = branch.split('/', 2).last | |
| msg = "#{deploying_user}'s #{rails_env} deployment of #{branch_name} is done!" | |
| if rand > 0.7 | |
| msg.sub! /done\!$/, 'NOW DIAMONDS!' | |
| end | |
| Campfire.notify msg | |
| end |
| # credit: http://news.ycombinator.com/item?id=1543915 | |
| # in ipythonrc: | |
| # execfile copy_and_paste.py | |
| def copy(data): | |
| from subprocess import Popen, PIPE | |
| Popen(["xclip", "-selection", "clipboard"], stdin=PIPE).communicate(str(data)) | |
| def paste(): |
| local g="$(git rev-parse --git-dir 2>/dev/null)" | |
| if [ -n "$g" ]; then | |
| local r | |
| local b | |
| if [ -d "$g/../.dotest" ] | |
| then | |
| if test -f "$g/../.dotest/rebasing" | |
| then | |
| r="|REBASE" | |
| elif test -f "$g/../.dotest/applying" |
"Other developers are just like us - weird"
"If you ever need to deploy Django, you're good. If you know Capistrano and Unicorn they've got rip-offs of all that stuff."
"I think we should all admit we're horrible coders and move on" "We're all drug addicts - we're fighting methods..."
"It's easy to learn to play the guitar and be able to play Bob Dylan and Weezer and never get better."
"This is basically a talk that was given 30 years ago. We just have to keep giving it every few years because young guys come along and forget it."