Skip to content

Instantly share code, notes, and snippets.

View ellipse42-archived's full-sized avatar

ellipse42 ellipse42-archived

View GitHub Profile
# coding=utf-8
from __future__ import unicode_literals
import re
import sys
import time
import traceback
from datetime import datetime
from Queue import Queue
{
"cmd": ["node", "$file"],
"file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
"selector": "source.js"
}
[unix_http_server]
file=/tmp/supervisor.sock ; path to your socket file
[supervisord]
logfile=/var/log/supervisord/supervisord.log ; supervisord log file
logfile_maxbytes=50MB ; maximum size of logfile before rotation
logfile_backups=10 ; number of backed up logfiles
loglevel=error ; info, debug, warn, trace
pidfile=/var/run/supervisord.pid ; pidfile location
nodaemon=false ; run supervisord as a daemon
@ellipse42-archived
ellipse42-archived / api_client.py
Last active August 29, 2015 14:06
Some Api Script
#! /usr/bin/env python
# coding=utf-8
import sys
import json
import traceback
import hashlib
import requests
from collections import OrderedDict

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
[
{
"keys": [
"alt+j"
],
"command": "move",
"args": {
"by": "characters",
"forward": false
}
@ellipse42-archived
ellipse42-archived / .gitconfig
Last active August 29, 2015 14:05
Git Config
[alias]
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
unstage = reset HEAD
st = status
ci = commit
co = checkout
[user]
name = mhg
email = mhg@abc.com
[color]
{
"auto_complete": false,
"caret_style": "solid",
"color_scheme": "Packages/Color Scheme - Default/Solarized (Dark).tmTheme",
"draw_white_space": "all",
"ensure_newline_at_eof_on_save": true,
"file_exclude_patterns":
[
".DS_Store",
"*.pid",
@ellipse42-archived
ellipse42-archived / gist:4094493
Created November 17, 2012 09:32 — forked from lucasfais/gist:1207002
Sublime Text 2 - Useful Shortcuts

Sublime Text 2 – Useful Shortcuts (Mac OS X)

General

⌘T go to file
⌘⌃P go to project
⌘R go to methods
⌃G go to line
⌘KB toggle side bar
⌘⇧P command prompt