Skip to content

Instantly share code, notes, and snippets.

monokal

Block or report user

Report or block monokal

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
@monokal
monokal / parasite.py
Last active Dec 26, 2017
Automatically stop completed/seeding torrents in Transmission.
View parasite.py
#!/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 / sshc.sh
Last active Mar 14, 2017
Wrap ssh-copy-id and ssh together.
View sshc.sh
#!/bin/bash
#
# sshc.sh
# Wrap ssh-copy-id and ssh together.
# Daniel Middleton <d@monokal.io>
#
# Installation:
# curl -k -X GET -H "Content-Type: application/json" https://gist.githubusercontent.com/monokal/81e93c9151319de1aa3b399f1cd562c4/raw/7735dd823a17ca8cd9a8f2795aaebc0608e706cc/sshc.sh > /usr/local/bin/sshc && chmod +x /usr/local/bin/sshc
#
@monokal
monokal / Dockerfile
Created Feb 1, 2017
A Dockerfile to generate FPM packages via Docker Build.
View Dockerfile
FROM centos:centos7
MAINTAINER Daniel Middleton <d@monokal.io>
# Yum packages to install.
ENV YUM_PACKAGES \
which \
gcc \
libffi-devel \
openssl-devel \
git \
@monokal
monokal / before-install.sh
Created Feb 1, 2017
FPM before-install script to install PyPI dependancies.
View before-install.sh
#!/usr/bin/env bash
modules=( \
daemonize \
requests \
)
package_managers=( \
pip \
easy_install \
@monokal
monokal / FPM Dockerfile example
Last active Jan 23, 2017
An example Dockerfile which spits out an RPM package on build.
View FPM Dockerfile example
FROM centos:centos7
MAINTAINER Daniel Middleton <d@monokal.io>
# Yum packages to install.
ENV YUM_PACKAGES \
which \
gcc \
libffi-devel \
openssl-devel \
git \
@monokal
monokal / flanneld.conf
Last active Sep 16, 2015
flannel upstart script
View flanneld.conf
# /etc/init/flanneld.conf
description "flanneld - overlay network daemon."
author "monokal <d@monokal.io>"
start on (local-filesystems and net-device-up and runlevel [2345])
stop on runlevel [016]
respawn
respawn limit 10 5
You can’t perform that action at this time.