Skip to content

Instantly share code, notes, and snippets.

View SyNeto's full-sized avatar

Ernesto Jiménez Villaseñor SyNeto

  • Bedu
  • CDMX, México
View GitHub Profile
@SyNeto
SyNeto / guinicorn_app_start
Last active November 6, 2016 00:34 — forked from leplatrem/yourapp
gunicorn virtualenv init.d script (could be simpler with upstart)
#! /bin/bash
### BEGIN INIT INFO
# Provides: yourapp
# Required-Start: nginx
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: The main django process
# Description: The gunicorn process that receives HTTP requests
# from nginx
@SyNeto
SyNeto / _etc_init.d_autosshd
Created October 4, 2015 17:07 — forked from suma/_etc_init.d_autosshd
Autossh init script(Ubuntu) for reverse ssh tunneling
#! /bin/sh
### BEGIN INIT INFO
# Provides: autosshd
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: autosshd initscript
# Description: This file should be used to construct scripts to be
# placed in /etc/init.d.
@SyNeto
SyNeto / tmux-cheatsheet.markdown
Last active August 29, 2015 14:25 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname