Public Gists by parolkar

Gravatar
Thu Oct 01 03:06:38 -0700 2009
1
2
3
$ git checkout 76a62f50f5831fe8be17ef6fa4e3e3e6d4dc3cbd (working old commit)
$ script/console
Loading development environment (Rails 2.3.2)
Gravatar
Tue Aug 25 10:45:43 -0700 2009
1
2
3
#!/bin/sh
 
########
Gravatar
Tue Aug 25 05:02:32 -0700 2009
1
2
3
require 'redis'
 
module Nanite
Gravatar
Mon Aug 24 09:28:17 -0700 2009
1
2
3
Poor Man's Deploy
=================
 
Gravatar
Mon Aug 03 11:27:35 -0700 2009
1
2
3
#!/bin/bash
 
echo "Setting up chef..."
Gravatar
Thu Jul 30 12:05:09 -0700 2009
1
2
3
class UsersController < ApplicationController
  respond_to :html, :xml, :json
 
Gravatar
Thu Jul 23 23:38:46 -0700 2009
1
2
3
In response to all the responses to:
 
http://twitter.com/rtomayko/status/1155906157
Gravatar
Wed May 06 02:50:28 -0700 2009
1
2
3
#!/usr/bin/env ruby
#
# Example:
Gravatar
Thu Apr 16 01:14:04 -0700 2009
1
2
3
#! /bin/bash
# Usage:
# cd /path/to/rails_app
Gravatar
Thu Apr 16 00:20:58 -0700 2009
1
2
3
#!/usr/bin/env ruby
# Patched mongrel for Garbage Collection
require 'mongrel'
Gravatar
Fri Apr 03 20:39:13 -0700 2009
1
2
3
# SUPER DARING APP TEMPLATE 1.0
# By Peter Cooper
 
Gravatar
Fri Apr 03 20:35:42 -0700 2009
1
2
3
# urlmonitor - print out the URLs requested system wide on the main network interface
 
# Accept a network interface name as an optional argument
Gravatar
Fri Apr 03 20:35:08 -0700 2009
1
2
3
# Monitor HTTP requests being made from your machine with a one-liner..
# Replace "en1" below with your network interface's name (usually en0 or en1)
sudo tcpdump -i en1 -n -s 0 -w - | grep -a -o -E "Host\: .*|GET \/.*"
Gravatar
Thu Apr 02 04:23:40 -0700 2009
1
2
3
class User < ActiveRecord::Base
  
  has_profile_items [:first_name]
Gravatar
Tue Mar 31 23:32:43 -0700 2009
1
2
3
require 'singleton'
 
 
Gravatar
Mon Mar 02 21:53:36 -0800 2009
1
2
3
## Rails development best practices
# An #RMM alternative, open and collaborative set of development practices we can adhere to.