Skip to content

Instantly share code, notes, and snippets.

View nikhgupta's full-sized avatar
🏠
Working from home

Nikhil Gupta nikhgupta

🏠
Working from home
View GitHub Profile
@bradleyayers
bradleyayers / gist:1660182
Created January 23, 2012 02:59
Save to `/etc/dbus-1/system.d/Upstart.conf` to enable Upstart user jobs
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE busconfig PUBLIC
"-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
"http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
<busconfig>
<!-- Only the root user can own the Upstart name -->
<policy user="root">
<allow own="com.ubuntu.Upstart" />
</policy>
@nikhgupta
nikhgupta / rails_template.rb
Created July 17, 2011 03:39
Default template for new Rails applications
initializer 'generators.rb', <<-RUBY
Rails.application.config.generators do |g|
end
RUBY
@recipes = ["activerecord", "cucumber", "devise", "git", "haml", "heroku", "jammit", "jquery", "rails_admin", "sass", "settingslogic"]
def recipes; @recipes end
def recipe?(name); @recipes.include?(name) end
@nikhgupta
nikhgupta / gitolite.conf
Created January 25, 2011 13:09
a bash script which automates creation of a local git repository, modifies gitolite.conf file as needed, and then syncs the repo with an online gitolite (and github) server you must have repos defined the way in attached gitolite.conf file
# gitolite conf
# please see conf/example.conf for details on syntax and features
# do not remove hashes from the following macros
# if you add a macro, remember to update ~/bin/init-gitolite.sh
@public-readable = #
@public-writable = testing #
@client-works = #
repo @client-works