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 | |
# --------------- | |
# Example output: | |
# --------------- | |
# Date/Hour Error Count % of Total | |
# 3-Oct 03 code=H12 98 73.68% | |
# 3-Oct 04 code=H12 35 26.32% | |
LOG=${1:-/var/log/heroku} |
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 'formula' | |
class Pdftk < Formula | |
url 'http://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/pdftk-1.44-src.zip' | |
homepage 'http://www.pdflabs.com/' | |
md5 '9eb50fffcd621a627d387750c60982b4' | |
depends_on 'gcc' # with "--enable-java" option , required "Homebrew-alt" . | |
# via : https://github.com/adamv/homebrew-alt/ | |
def install |
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
stuff: | |
built: | |
- tested | |
- implemented | |
- broke | |
- fixed | |
delegated to: | |
- people | |
- groups | |
- machines |
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
[__TICKET_NUMBER__] |
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
# bash completion for Guard groups | |
# | |
# INSTALL | |
# | |
# Place in your bash completions.d and/or source in your .bash_profile | |
# | |
# USAGE | |
# | |
# Type 'guard' and hit tab twice to get completions. | |
# To clear the cache, run guard_cache_clear() in your shell. |
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
~/.rvm/rubies/jruby-1.6.5/bin/ruby | |
before singleton method definition | |
0.991000 0.000000 0.991000 ( 0.990000) | |
after singleton method definition | |
0.641000 0.000000 0.641000 ( 0.641000) | |
~/.rvm/rubies/jruby-1.6.7.2/bin/ruby | |
before singleton method definition | |
0.554000 0.000000 0.554000 ( 0.555000) |
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
$ echo $DRIP_INIT_CLASS | |
org.jruby.main.DripMain | |
$ cat dripmain.rb | |
require File.expand_path('./config/environment', __FILE__) | |
$ bundle exec guard | |
16:07:29 - INFO - Guard uses Growl to send notifications. | |
16:07:29 - INFO - Guard uses TerminalTitle to send notifications. | |
16:07:29 - INFO - Guard is now watching at '/Users/jrogers/Documents/Programming/samasource/sh3' |
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
[27-Nov 22:18] ~/.rvm/rubies/jruby-1.7.0 (111.872 Kb) ] | |
! ./bin/jruby -v | |
jruby 1.6.5 (ruby-1.8.7-p330) (2011-10-25 9dcd388) (OpenJDK 64-Bit Server VM 1.7.0-u12-b02) [darwin-x86_64-java] |
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
class SequelReconnector | |
RETRY_LIMIT = 10 # Match this to your connection pool size. | |
def initialize(app, db) | |
@app = app | |
@db = db | |
end | |
def call(env) | |
retries = 0 |
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
exampleWithNumber: x | |
"A method that illustrates every part of Smalltalk method syntax | |
except primitives. It has unary, binary, and keyword messages, | |
declares arguments and temporaries, accesses a global variable | |
(but not and instance variable), uses literals (array, character, | |
symbol, string, integer, float), uses the pseudo variables | |
true false, nil, self, and super, and has sequence, assignment, | |
return and cascade. It has both zero argument and one argument blocks." |