Skip to content

Instantly share code, notes, and snippets.

View srijan's full-sized avatar

Srijan Choudhary srijan

View GitHub Profile
@srijan
srijan / tmux.conf
Created July 23, 2014 10:49
Tmux config file
unbind C-b
set -g prefix ^A
bind a send-prefix
# Bind appropriate commands similar to screen.
unbind ^X
bind ^X lock-server
unbind x
bind x lock-server
# screen ^C c
unbind ^C
@srijan
srijan / myapp.conf
Created March 4, 2015 20:32
Nginx conf for uwsgi
upstream myapp {
least_conn;
server unix:///var/run/uwsgi_myapp0.sock;
server unix:///var/run/uwsgi_myapp1.sock;
server unix:///var/run/uwsgi_myapp2.sock;
server unix:///var/run/uwsgi_myapp3.sock;
server unix:///var/run/uwsgi_myapp4.sock;
}
server {
Verifying I am +srijan on my passcard. https://onename.com/srijan
@srijan
srijan / .vimrc
Created May 16, 2012 12:18
My G/Vim Config File
filetype off
let mapleader = ","
" call pathogen#infect()
" Use pathogen.vim to manage and load plugins
call pathogen#runtime_append_all_bundles()
call pathogen#helptags()
syntax on
music_directory "/home/srijan/Music"
playlist_directory "/home/srijan/.mpd/playlists"
db_file "/home/srijan/.mpd/database"
log_file "/home/srijan/.mpd/log"
pid_file "/home/srijan/.mpd/pid"
state_file "/home/srijan/.mpd/state"
user "srijan"
group "users"
save_absolute_paths_in_playlists "yes"
follow_outside_symlinks "yes"
@srijan
srijan / deploy.php
Created March 24, 2013 21:09
Deploy webhook
<?php
date_default_timezone_set('UTC');
class Deploy {
/**
* A callback function to call after the deploy has finished.
*
* @var callback
@srijan
srijan / astar.erl
Created August 2, 2013 18:48
An implementation of A* in Erlang
-module(astar).
-type cnode() :: {integer(), integer()}.
-define(MINX, 0).
-define(MINY, 0).
-define(MAXX, 10).
-define(MAXY, 10).
-export([
@srijan
srijan / exports.sh
Created August 12, 2013 19:14
Exports related to libreoffice development
export CCACHE_DIR=/mnt/archextra/libreoffice/ccache
export CCACHE_COMPRESS=1
export ICECC_VERSION=/mnt/archextra/libreoffice/i386.tar.gz
; init.el
; Remove GUI extras
(menu-bar-mode -1)
(tool-bar-mode -1)
(scroll-bar-mode -1)
; Add line numbers
(global-linum-mode 1)

Keybase proof

I hereby claim:

  • I am srijan on github.
  • I am srijan (https://keybase.io/srijan) on keybase.
  • I have a public key whose fingerprint is 8AA7 807A 24E4 86E3 B9E5 C3E6 EF0A 2393 6B5F 8EF0

To claim this, I am signing this object: