Public Gists by JackDanger

Gravatar
Tue Nov 24 10:37:54 -0800 2009
1
2
3
#!/usr/bin/env ruby
# urlmonitor - print out the URLs requested system wide on the main network interface
 
Gravatar
Sat Nov 14 08:24:10 -0800 2009
1
2
3
# If your factories are automatically signing themselves in:
 
Factory.define :user do |f|
Gravatar
Tue Nov 10 17:56:04 -0800 2009
1
2
3
diff --git a/jquery.validate.js b/jquery.validate.js
index c77350c..f9a940f 100644
--- a/jquery.validate.js
Gravatar
Thu Oct 08 12:54:18 -0700 2009

      
Gravatar
Sat Sep 26 16:50:28 -0700 2009
1
2
3
module Shoulda
  module Macros
    def should_change(expression, options = {})
Gravatar
Thu Sep 24 17:44:49 -0700 2009
1
2
3
# This works alright, I wouldn't use it without testing first though.
module KeepsCachedRecords
 
gist: 177872 simplest possible tcp liste...
Gravatar
Sat Aug 29 22:55:13 -0700 2009
1
2
3
%% NOTE: Do not use this. It's a constantly-evolving testbed for socket experiments
%% Use my socket.erl instead
-module(listen).
Gravatar
Fri Aug 28 16:22:40 -0700 2009
1
2
3
If your erlang server throws this error when a client connects:
 
    Downgrading ssl socket {sslsocket,new_ssl,<0.73.0>}
gist: 177138 wx error while installing e...
Gravatar
Fri Aug 28 11:33:15 -0700 2009
1
2
3
If you're getting errors like this when attempting to configure Erlang OTP:
 
    === Entering application wx
Gravatar
Wed Aug 26 20:01:41 -0700 2009
1
2
3
(in /www/vendor/gen_smtp)
  gen_smtp_server_session : FAILED
module 'gen_smtp_server_session'
Gravatar
Fri Jul 31 21:35:50 -0700 2009
1
2
3
BUY: Stand By Me - Ben E. King
#Staying Alive - Bee Gees
BUY: Unchained Melodies - Righteous Bros
Gravatar
Tue Jun 23 15:06:44 -0700 2009
1
2
3
apt-get update
apt-get install -y apache2
apt-get install -y apache2-prefork-dev
Gravatar
Wed Jun 03 23:38:21 -0700 2009
1
2
3
curl http://gist.github.com/raw/123391/da153dbf51dc343a9131bad6adc8a39f507c2531/app_engine_rack.sh -O
chmod +x app_engine_rack.sh
time ./app_engine_rack.sh
Gravatar
Wed Jun 03 19:20:37 -0700 2009
1
2
3
# App Engine Rack
#
# Unified Script to build an JRuby App Engine
Gravatar
Sat May 30 01:27:06 -0700 2009
1
2
3
require 'rubygems'
require 'yaml'
require 'set'
Gravatar
Wed May 27 20:39:04 -0700 2009
1
2
3
for source in `find app test lib config -name *.rb`; do
if [ 2 = `egrep -c -v "(^#)|(^\s*$)" $source` ]; then
echo $source is an empty class or module definition;
Gravatar
Tue May 26 13:32:09 -0700 2009
1
2
3
gem 'faker'
require 'faker'
 
Gravatar
Tue May 26 12:21:06 -0700 2009
1
2
3
# put this in your ~/.irbrc
class Object
  def console_reminder
Gravatar
Sat May 23 23:32:38 -0700 2009
1
2
3
# from: http://pivotallabs.com/users/alex/blog/articles/865-monkey-patch-du-jour
module ActiveRecord
  module ConnectionAdapters
gist: 100593 Make all Rake (production) ...
Gravatar
Thu Apr 23 09:45:44 -0700 2009
1
2
3
namespace :hoptoad do
  desc "Makes all Rake (production) errors go to Hoptoadapp.com"
  task :catch do