Skip to content

Instantly share code, notes, and snippets.

View srijan's full-sized avatar

Srijan Choudhary srijan

View GitHub Profile
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 / deploy.php
Created March 24, 2013 21:09
Deploy webhook
class Deploy {
* A callback function to call after the deploy has finished.
* @var callback
srijan / astar.erl
Created August 2, 2013 18:48
An implementation of A* in Erlang
-type cnode() :: {integer(), integer()}.
-define(MINX, 0).
-define(MINY, 0).
-define(MAXX, 10).
-define(MAXY, 10).
srijan /
Created August 12, 2013 19:14
Exports related to libreoffice development
export CCACHE_DIR=/mnt/archextra/libreoffice/ccache
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)
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 / rootaufs
Created September 23, 2014 09:18
# Copyright 2008 Nicholas A. Schembri State College PA USA
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
srijan / supervisord.conf
Created March 4, 2015 20:22
Supervisor conf for starting uwsgi
logfile=/var/log/supervisord.log ; (main log file;default $CWD/supervisord.log)
logfile_maxbytes=50MB ; (max main logfile bytes b4 rotation;default 50MB)
logfile_backups=10 ; (num of main logfile rotation backups;default 10)
loglevel=info ; (log level;default info; others: debug,warn,trace)
pidfile=/var/run/supervisor/ ; (supervisord pidfile;default
nodaemon=false ; (start in foreground if true;default false)
srijan / myapp.conf
Created March 4, 2015 20:32
Nginx conf for uwsgi
upstream myapp {
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 {