Skip to content

Instantly share code, notes, and snippets.

upstream cheapr{
server 127.0.0.1:3000;
server 127.0.0.1:3000;
}
server
{
root /root/cheapr/public;
server_name cheapr.me cheapr.in;
location / {
proxy_set_header X-Real-IP $remote_addr;
@antani
antani / etcnginxnginx.conf
Created August 12, 2012 12:32
nginx.conf
gzip on;
gzip_disable "msie6";
gzip_vary on;
gzip_proxied any;
gzip_comp_level 6;
gzip_buffers 16 8k;
gzip_http_version 1.1;
gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;
include /etc/nginx/conf.d/*.conf;
include /etc/nginx/sites-enabled/*;
# Path to your oh-my-zsh configuration.
ZSH=$HOME/.oh-my-zsh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
ZSH_THEME="robbyrussell"
# Set to this to use case-sensitive completion
# CASE_SENSITIVE="true"
# Comment this out to disable weekly auto-update checks
@antani
antani / gist:1095178
Created July 20, 2011 15:27
Less Error -2
ved@ved-ubuntu:~/rails_projects/Resume$ ./resume.rb -s webrick
== Sinatra/1.2.6 has taken the stage on 4567 for development with backup from WEBrick
[2011-07-20 20:56:45] INFO WEBrick 1.3.1
[2011-07-20 20:56:45] INFO ruby 1.9.2 (2010-12-25) [i686-linux]
[2011-07-20 20:56:45] INFO WEBrick::HTTPServer#start: pid=5561 port=4567
127.0.0.1 - - [20/Jul/2011 20:56:57] "GET / HTTP/1.1" 302 - 0.0040
localhost.localdomain - - [20/Jul/2011:20:56:57 IST] "GET / HTTP/1.1" 302 0
- -> /
127.0.0.1 - - [20/Jul/2011 20:56:57] "GET /index.html HTTP/1.1" 200 5462 0.0024
localhost.localdomain - - [20/Jul/2011:20:56:57 IST] "GET /index.html HTTP/1.1" 200 5462
@antani
antani / gist:1095152
Created July 20, 2011 15:16
LESS Error
Using git (1.2.5)
Installing github-markup (0.5.3)
Installing launchy (2.0.3)
Using mime-types (1.16)
Installing rest-client (1.6.3)
Installing term-ansicolor (1.0.5)
Installing heroku (2.3.6)
Using libv8 (3.3.10.2)
Using therubyracer (0.9.2)
Using less (2.0.5)
user root;
worker_processes 1;
#error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;
#pid logs/nginx.pid;
@antani
antani / ddls
Created January 12, 2011 11:52
DDL Statements
CREATE TABLE "calendars" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "event" varchar(255), "where" varchar(255), "created_at" datetime, "updated_at" datetime, "when" datetime, "whendate" date, "important" boolean DEFAULT 'f', "latitude" float, "longitude" float, "done" boolean DEFAULT 'f', "sync" boolean DEFAULT 'f', "twitter_shared" boolean DEFAULT 'f', "facebook_shared" boolean DEFAULT 'f', "foursquare_shared" boolean DEFAULT 'f', "remind_before" integer DEFAULT 10, "remind_before_what" varchar DEFAULT 'Minutes');
INSERT INTO calendars VALUES(760,30,'test event','EGL Business Park Domlur Bangalore','2011-01-08 17:46:17.756840','2011-01-12 11:04:09.702325','2011-01-10 15:56:17.000000','2011-01-10','f',12.9566921,77.6407258,'f','f','t','f','t',5,'Minutes');
INSERT INTO calendars VALUES(762,30,'Next important event','Leela Palace Bangalore','2011-01-09 07:50:53.917524','2011-01-12 11:04:27.700482','2011-01-09 07:50:53.000000','2011-01-09','t',12.9998071,77.5695311,'f','f','t','f','t',5