Public Gists by Lalit

Gravatar
Fri Oct 09 22:15:58 -0700 2009
1
2
3
# unicorn_rails -c /data/github/current/config/unicorn.rb -E production -D
 
rails_env = ENV['RAILS_ENV'] || 'production'
Gravatar
Mon Jul 13 10:41:27 -0700 2009
1
2
3
# download and git methods swiped from http://github.com/Sutto/rails-template/blob/07b044072f3fb0b40aea27b713ca61515250f5ec/rails_template.rb
 
require 'open-uri'
Gravatar
Thu Jul 09 22:34:45 -0700 2009
1
2
3
namespace :tags do
  task :generate do
    puts 'Generating tags...'
Gravatar
Sun Jun 07 21:02:40 -0700 2009
1
2
3
def run_spellcheck(file,interactive=false)
  if interactive
    cmd = "aspell -p ./config/devver_dictionary -H check #{file}"
Gravatar
Thu May 28 20:30:11 -0700 2009
1
2
3
/*
On the page, there will be a number of tabs. Each of the tabs will correspond with a panel.
When a tab is selected, it becomes "active" -- the previously active tab becomes inactive.
Gravatar
Thu May 28 20:29:36 -0700 2009
1
2
3
// Creating a new dialog plugin
var dialog = new $.Widget("<div class='dialog'></div>");
dialog.insertInto = "body";
Gravatar
Thu Apr 16 09:04:20 -0700 2009
1
2
3
// Takes a bucket of behaviors and runs them with optional options.
//
// Example:
Gravatar
Tue Apr 14 01:29:59 -0700 2009
1
2
3
require 'net/http'
require 'uri'
require 'time'
Gravatar
Wed Apr 01 21:21:20 -0700 2009
1
2
3
#
# Usage:
# rake db:rollback_to_common branch=production
Gravatar
Fri Mar 13 20:57:00 -0700 2009
1
2
3
module AssertionExtensions
  def method_missing(method_id, *arguments, &block)
    return super unless method_id.to_s =~ /^assert_(not_)?(.*)$/
Gravatar
Fri Mar 06 12:52:32 -0800 2009
1
2
3
# ~/.bash_profile
 
export GEMDIR=`gem env gemdir`
Gravatar
Fri Mar 06 12:44:55 -0800 2009
1
2
3
module SeleniumHelpers
  # Execute JavaScript in the context of your Selenium window
  def run_javascript(javascript)
Gravatar
Thu Mar 05 21:32:41 -0800 2009
1
2
3
commit ed20f4dcc656ac55adbe9515466ef19d102e9ead
Author: Pratik Naik <pratiknaik@gmail.com>
Date: Thu Mar 5 22:45:04 2009 +0000
Gravatar
Fri Feb 27 01:26:53 -0800 2009
1
2
3
# by bryan helmkamp with slight modification by chris wanstrath
# from http://www.brynary.com/2008/8/3/our-git-deployment-workflow
 
Gravatar
Thu Feb 26 09:36:30 -0800 2009
1
2
3
#!/usr/bin/env ruby
#
# usage: script/server_restarter
Gravatar
Sat Feb 21 12:17:32 -0800 2009
1
2
3
#!/bin/sh
 
mkdir -p /usr/local/src && cd /usr/local/src
Gravatar
Sat Feb 07 00:42:18 -0800 2009
1
2
3
# Author: Cyril Rohr
require 'rubygems'
require 'rest_client' # sudo gem install rest-client
Gravatar
Fri Jan 09 05:01:41 -0800 2009
1
2
3
# 1) Point *.example.com in your DNS setup to your server.
#
# 2) Setup an Apache vhost to catch the star pointer:
Gravatar
Tue Jan 06 10:02:50 -0800 2009
1
2
3
# Why build a site? Why do your customers care?
 
The core purpose of a website is to help your customers answer the questions necessary to do business with you.
Gravatar
Wed Dec 24 05:35:34 -0800 2008
1
2
3
# SUPER DARING APP TEMPLATE 1.0
# By Peter Cooper