Skip to content

Instantly share code, notes, and snippets.

View cosmosgenius's full-sized avatar
💭
Websocket debugging

Sharat MR cosmosgenius

💭
Websocket debugging
View GitHub Profile
@cosmosgenius
cosmosgenius / nginx-compile-configure
Created October 19, 2013 19:30
nginx compilation configurations
./configure --prefix=$HOME \
--sbin-path=$HOME/sbin/nginx \
--conf-path=$HOME/etc/nginx/nginx.conf \
--error-log-path=$HOME/var/logs/nginx/error.log \
--http-log-path=$HOME/var/logs/nginx/access.log \
--pid-path=$HOME/var/logs/nginx/nginx.pid \
--lock-path=$HOME/var/logs/nginx/nginx.lock \
--http-proxy-temp-path=$HOME/tmp/nginx/proxy/ \
--http-fastcgi-temp-path=$HOME/tmp/nginx/fastcgi/ \
--http-uwsgi-temp-path=$HOME/tmp/nginx/uwsgi/ \
@cosmosgenius
cosmosgenius / nginx.conf
Last active March 31, 2017 14:10
Nginx Config
user nginx;
worker_processes auto;
worker_rlimit_nofile 65535;
error_log /var/log/nginx/error.log warn;
pid /var/run/nginx.pid;
events {
worker_connections 4096;
@cosmosgenius
cosmosgenius / xlstojson.py
Last active December 18, 2015 06:59
script to convert a expense excel sheet to json data
import xlrd
import json
import sys
import argparse
def convert(workbook):
wb = xlrd.open_workbook(workbook)
year = 2013
data = []