This file contains 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
#!/usr/bin/env ruby | |
require 'rubygems' | |
require 'rbosa' | |
sp = OSA.app 'System Preferences' | |
se = OSA.app 'System Events' | |
sp.current_pane = sp.panes.detect { |p| p.properties[:id] == 'com.apple.preference.keyboard' } | |
This file contains 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 'pathname' | |
p = Pathname.new(__FILE__) | |
puts "loading #{p.realpath}" | |
# Load sound effects library and sounds | |
# From http://fozworks.com/2007/7/28/autotest-sound-effects | |
require '~/.autotest_extras/sound.rb' | |
Autotest::Sound.sound_path = "~/.autotest_extras/sound_fx/" | |
# Tell autotest to ignore changes to files that infrequently change or aren't related |
This file contains 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
#!/usr/local/bin/ruby | |
# | |
# mongrel_process_memory - A munin plugin to monitor memory size of | |
# each individual mongrel process | |
# Copyright (C) 2007 Ben VandenBos and Avvo, Inc. | |
# | |
# This program is free software; you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License version 2 | |
# as published by the Free Software Foundation. | |
# |
This file contains 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
#!/bin/bash | |
# | |
# Pushes the earliest commit from the current branch (using git-svn dcommit), | |
# keeping your other unpushed commits intact and updating the pushed commit | |
# with git-svn metadata. | |
# | |
# Usage: | |
# git pushone | |
# | |
This file contains 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
#!/bin/bash | |
# | |
# ~/bin/git-notpushed | |
# | |
# Shows commits you haven't pushed to the remote yet. Optionally | |
# accepts same arguments as git-log. Assumes 'trunk' is the | |
# default remote if no branch.<current>.remote configuration exists. | |
# | |
# Uses git-svn instead of pure git; see comments below. | |
# |
This file contains 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
# By default up/down are bound to previous-history | |
# and next-history respectively. The following does the | |
# same but gives the extra functionality where if you | |
# type any text (or more accurately, if there is any text | |
# between the start of the line and the cursor), | |
# the subset of the history starting with that text | |
# is searched. | |
"\e[B": history-search-forward | |
"\e[A": history-search-backward | |
This file contains 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
// ==UserScript== | |
// @name Hide labels in story lists | |
// @namespace http://shiftcommathree.com | |
// @description Hides the small green labels before each story title | |
// @include http://www.pivotaltracker.com/projects/* | |
// @include http://pivotaltracker.com/projects/* | |
// @author Chris Kampmeier | |
// ==/UserScript== | |
function addGlobalStyle(css) { |
This file contains 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
# Template which configures a generic Rails app with Shoulda, Factory Girl, | |
# HAML, etc while commiting each step into git. | |
# | |
# Make sure you have Rails 2.3rc1 or greater installed and run: | |
# rails -d mysql -m http://gist.github.com/raw/57458/06345c42a92048e699af3140ccd28bbcd8915bc5/archfear.rb my_app | |
# Helper methods | |
# Modified version of the "gem" method which places the "config.gem..." lines | |
# after the examples in config/environment.rb. |
This file contains 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
// ==UserScript== | |
// @name Hide labels in Pivotal Tracker story lists | |
// @namespace http://shiftcommathree.com | |
// @description Hides the small green labels before each story title | |
// @include http://www.pivotaltracker.com/projects/* | |
// @include http://pivotaltracker.com/projects/* | |
// @author Chris Kampmeier | |
// ==/UserScript== | |
function addGlobalStyle(css) { |
This file contains 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
# You can use newlines as delimiters for the various | |
# %-style string quoting syntaxes (like %{}, %Q{}, etc.) | |
>> % | |
%s | |
>> % % | |
bacon | |
>> | |
=> "bacon" |
OlderNewer