Skip to content

Instantly share code, notes, and snippets.

@govindsharma7
govindsharma7 / uploader.py
Created March 27, 2018 09:27 — forked from JordanReiter/uploader.py
Python snippet for uploading file to another server
import errno
import os
import paramiko
class Uploader(object):
def __init__(self, host, basepath='', username=None, password=None, keyfile=None, *args, **kwargs):
self.host = host
self.basepath = basepath
self.username = username
@quamilek
quamilek / api.py
Created August 31, 2015 20:19
Example Python app implement simple REST API running through Gunicorn
import argparse
import json
import falcon
from gunicorn.app.base import BaseApplication
from gunicorn.six import iteritems
class StandaloneApplication(BaseApplication):
@subfuzion
subfuzion / redis-autostart-osx.md
Last active April 26, 2024 21:40
redis auto start OS X

Install with Homebrew

brew install redis

Set up launchctl to auto start redis

$ ln -sfv /usr/local/opt/redis/*.plist ~/Library/LaunchAgents

/usr/local/opt/redis/ is a symlink to /usr/local/Cellar/redis/x.y.z (e.g., 2.8.7)