Skip to content

Instantly share code, notes, and snippets.

@rkjha
rkjha / unicorn.rb
Created January 6, 2013 16:18
unicorn.rb
root = "/home/mrhuman/apps/YOUR_APP_NAME/current"
working_directory root
pid "#{root}/tmp/pids/unicorn.pid"
stderr_path "#{root}/log/unicorn.log"
stdout_path "#{root}/log/unicorn.log"
# change the YOUR_APP_NAME to your application name
listen "/tmp/unicorn.YOUR_APP_NAME.sock"
worker_processes 2
timeout 30
@rkjha
rkjha / ggg.pl
Created July 18, 2012 16:25 — forked from avar/ggg.pl
Goose Goose Go
#!/usr/bin/env perl
use v5.10;
use warnings FATAL => "all";
use Dancer;
use URI::Escape qw(uri_escape_utf8);
# This is all the search engine does
get '/search' => sub {
given (param("q")) {
when (/^(?:!(?:ducky)?\s+|\\)(.*)/) { redirect 'http://www.google.com/search?btnI=1&q=' . uri_escape_utf8 $1 }
@rkjha
rkjha / programs-installer.sh
Created April 28, 2012 20:30
Install necessary Programs in Ubuntu 12.04 LTS
#!/bin/sh
# A simple shell script for installing my favorite stuffs on
# Ubuntu 12.04 LTS
# Author : Ramesh Jha <[email protected]>, <http://blog.sudobits.com>
# License : MIT
# update your system
sudo apt-get update
sudo apt-get upgrade
@rkjha
rkjha / style.css
Created March 22, 2012 16:52 — forked from kristi/style.css
OSQA theme style
/*
* OSQA theme style.css
* Modified the default OSQA style, removing a lot of backgrounds and drop shadows.
*
* Replace the file at osqa-server/forum/skins/default/media/style/style.css
*
* Original source from OSQA v0.9 beta2
* Last modified: Feb 23, 2011
*/