- Start a Sinatra server on port 4000
- GET / to that server triggers a
git pull
and mod_rails restart - Hit port 4000 locally after pushing
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 'autotest/timestamp' | |
#require 'autotest/heckle' | |
#require 'autotest/redgreen' | |
require 'autotest/screen' | |
$VERBOSE=false | |
Autotest.add_hook :initialize do |autotest| | |
autotest.add_exception(/^\.\/vendor/) | |
autotest.add_exception(/^\.\/artwork/) | |
autotest.add_exception(/^\.\/public/) |
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
#!/bin/sh -e | |
# Usage: license | |
# Prints an MIT license appropriate for totin' around. | |
# | |
# $ license > COPYING | |
#!/bin/sh | |
echo "Copyright (c) `date +%Y` Chris Wanstrath | |
Permission is hereby granted, free of charge, to any person obtaining | |
a copy of this software and associated documentation files (the |
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
# Assume 2 branches named 'current' and 'master' | |
# Show me the commits I have in current, which are not in master | |
git log current..master --pretty=oneline | |
# Show me commits in master which are not in my current branch | |
git log master..current --pretty=oneline | |
# Show me stuff that people have pushed to 'master' which I don't have yet (we'll call it 'origin' in this case), |
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
Copy SSH public key to clipboard |
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 'codefumes_harvester' | |
include CodeFumesHarvester | |
# Start the JavaScript Specs build... | |
QuickBuild.start('javascript specs'); | |
# ... | |
# if it failed... | |
QuickBuild.finish('javascript specs', 'failed'); |
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
#!/usr/bin/ruby | |
require 'rubygems' | |
require 'codefumes_harvester' | |
def ant_success? | |
ENV['ANT_RET'] == '0' | |
end | |
pub_key = ENV['CF_PUBLIC_KEY'] |
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
#!/usr/bin/ruby | |
require 'rubygems' | |
require 'codefumes_harvester' | |
def cuc_success? | |
ENV['CUC_RET'] == '0' | |
end | |
def spec_success? |
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
# File: /etc/bash.bashrc | |
# System-wide .bashrc file for interactive bash(1) shells. | |
# To enable the settings / commands in this file for login shells as well, | |
# this file has to be sourced in /etc/profile. | |
# If not running interactively, don't do anything | |
if [[ -z "$PS1" ]]; then |