Public Gists by dstrelau

Gravatar
Sun Nov 08 09:52:12 -0800 2009
1
2
3
[~] brew install redis
/usr/local/Library/Formula/redis.rb:3: warning: already initialized constant REDIS_CONF
==> Downloading http://redis.googlecode.com/files/redis-1.02.tar.gz
Gravatar
Thu Nov 05 14:36:46 -0800 2009
1
2
3
#!/usr/bin/env ruby
require 'typhoeus'
 
Gravatar
Tue Nov 03 15:41:53 -0800 2009
1
2
3
source "http://gems.github.com"
source "http://gemcutter.org"
bundle_path "vendor/bundled_gems"
Gravatar
Thu Oct 22 15:53:25 -0700 2009
1
2
3
POSSIBLE = [('a'..'z'),('A'..'Z'),(0..9),'.','/'].inject([]) {|s,r| s+Array(r)}
 
def shadow(password)
Gravatar
Thu Oct 08 12:52:59 -0700 2009
1
2
3
[~] gem i mysql
Building native extensions. This could take a while...
ERROR: Error installing mysql:
Gravatar
Tue Sep 01 07:26:45 -0700 2009
1
2
3
#!/bin/sh
 
NAME=nginx
Gravatar
Fri Aug 28 11:10:50 -0700 2009
1
2
3
[~] gem env
RubyGems Environment:
  - GEM PATHS:
Gravatar
Thu Aug 27 13:39:58 -0700 2009
1
2
3
[~] rvm install 1.8.6 -d
++ which curl
+ rvm_curl=/usr/bin/curl
Gravatar
Thu Aug 27 13:13:24 -0700 2009
1
2
3
$ ruby -v
ruby 1.8.7 (2009-06-12 patchlevel 174) [i686-darwin9.8.0]
$ rake -v
gist: 143210 contexts for active record ...
Gravatar
Wed Jul 08 14:34:50 -0700 2009
1
2
3
class User < ActiveRecord::Base
  include ValidationContexts
 
gist: 131491 Configurable - make any obj...
Gravatar
Wed Jun 17 13:38:48 -0700 2009
1
2
3
require 'ostruct'
 
module Configurable
gist: 86347 Basic Hoptoad Notifier as R...
Gravatar
Thu Mar 26 14:16:26 -0700 2009
1
2
3
require 'rack/hoptoad_notifier'
 
use Rack::HoptoadNotifier do |config|
Gravatar
Tue Mar 03 09:21:03 -0800 2009
1
2
3
== 0. Create and checkout local development branch
 
You've probably done this already.
gist: 67564 mysql backups with duplicity
Gravatar
Fri Feb 20 08:58:56 -0800 2009
1
2
CREATE USER 'backup'@'localhost';
GRANT SELECT, LOCK TABLES ON *.* TO 'backup'@'localhost';
Gravatar
Tue Feb 17 08:06:18 -0800 2009
1
2
3
#!/usr/bin/env ruby
#
# mongrel_process_memory - A munin plugin to monitor memory size of
Gravatar
Tue Feb 17 08:04:12 -0800 2009
1
2
3
#!/usr/bin/env ruby
#
# mongrel_process_memory - A munin plugin to monitor memory size of
Gravatar
Thu Feb 05 14:24:20 -0800 2009
1
2
3
#!/usr/bin/env ruby
require 'rubygems'
require 'thor'
Gravatar
Mon Dec 15 16:55:36 -0800 2008
1
convert -crop 509x1+0+0 top-row.png txt:- | grep -v 'black$' | ruby -e 'STDIN.each {|line| print $1.to_i.chr if line =~ /0,\s?(\d{2,3})\)/}'
Gravatar
Tue Dec 02 08:45:16 -0800 2008
1
2
3
# module: source
 
class Source < Thor
Gravatar
Mon Nov 03 13:05:12 -0800 2008
1
2
3
From 1cff7685f5a2013d3e3b13a7407ea64e21aae4de Mon Sep 17 00:00:00 2001
From: dean <dean@26634371-c258-0410-a0b0-f38a24f56ed3>
Date: Fri, 31 Oct 2008 21:50:16 +0000