Skip to content

Instantly share code, notes, and snippets.

@monokal
monokal / parasite.py
Last active December 26, 2017 11:09
Automatically stop completed/seeding torrents in Transmission.
#!/usr/bin/env python3
#
# Please don't use this unless you have a legitimate reason.
# Give back. Don't be a cunt.
#
import sys
import time
from termcolor import colored
@monokal
monokal / FPM Dockerfile example
Last active September 1, 2020 13:51
An example Dockerfile which spits out an RPM package on build.
FROM centos:centos7
# Yum packages to install.
ENV YUM_PACKAGES \
which \
gcc \
libffi-devel \
openssl-devel \
git \
ruby-devel \
@monokal
monokal / before-install.sh
Created February 1, 2017 15:40
FPM before-install script to install PyPI dependancies.
#!/usr/bin/env bash
modules=( \
daemonize \
requests \
)
package_managers=( \
pip \
easy_install \