Skip to content

Instantly share code, notes, and snippets.

Clive clivegross

Block or report user

Report or block clivegross

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@clivegross
clivegross / autossh.init.sh
Created Sep 14, 2017 — forked from Clement-TS/autossh.init.sh
Autossh init script (Ubuntu) for ssh tunneling
View autossh.init.sh
#! /bin/sh
# author: Clément Désiles
# date: 01/08/2016
# source: https://gist.github.com/suma/8134207
# source: http://stackoverflow.com/questions/34094792/autossh-pid-is-not-equal-to-the-one-in-pidfile-when-using-start-stop-daemon
### BEGIN INIT INFO
# Provides: autossh
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
@clivegross
clivegross / app.py
Created Mar 28, 2016
Falcon Framework troubleshooting byte string request
View app.py
class LoginResource(object):
def __init__(self, db):
self.db = db
self.logger = logging.getLogger('test.' + __name__)
def on_post(self, req, resp):
"""Handles GET requests"""
print(req.get_header)
print(req.content_type)
You can’t perform that action at this time.