Skip to content

Instantly share code, notes, and snippets.

@jhazelwo-charter
jhazelwo-charter / nginx.conf
Created October 3, 2017 14:54
NGINX FreeIPA authentication
worker_processes 4;
pid /app/run/nginx.pid;
error_log /app/log/error.log;
events {
worker_connections 768;
}
http {
@johnnyg
johnnyg / transplant.py
Created January 19, 2012 12:53
Deluge transplant script - allows you to selectively import & export torrents
from deluge._libtorrent import lt
from deluge.core.torrentmanager import TorrentManagerState
from shutil import copy, _samefile
import cPickle
import os
class Transplant(object):
def __init__(self, config_dir="", torrent_ids=None, torrents=None):
self.state_dir = ""
self.torrents = {}