Skip to content

Instantly share code, notes, and snippets.

View lepinkainen's full-sized avatar
💭
Hmm?

Riku Lindblad lepinkainen

💭
Hmm?
View GitHub Profile
#/usr/bin/python
# -*- coding: utf-8 -*-
# ascii megaman by HeGeXa
_sini = "\x1b[0m\x1b[44;34m"
_cyan = "\x1b[0m\x1b[46;36m"
_valko = "\x1b[0m\x1b[47;37m"
_kelta = "\x1b[0m\x1b[43;33m"
_musta = "\x1b[0m\x1b[40;30m"
bold = "\x1b[1m"
@lepinkainen
lepinkainen / gist:7096456
Last active December 26, 2015 04:49
Have postfix listen only to loopback interface
# Keep postfix running
service { "postfix":
ensure => 'running',
enable => 'true',
}
# Allow connections from localhost only
augeas { "postfix_localhost_only":
context => "/files/etc/postfix/main.cf/",
changes => [
"set inet_interfaces 127.0.0.1",
@lepinkainen
lepinkainen / config,yml
Created October 20, 2013 19:26
Flexget Nyaa.eu discover setup
nyaa-anime:
discover:
what:
- emit_series: yes
from:
- nyaa: anime
preset: [basic, anime, trakt_tv, notify, limit_ratio]
series:
- Kill la Kill:
from_group: horriblesubs
#!/usr/bin/env python
from __future__ import with_statement
import os
import re
import shutil
import subprocess
import sys
import tempfile
@lepinkainen
lepinkainen / gist:6283335
Created August 20, 2013 15:52
tellstick.conf
user = "nobody"
group = "plugdev"
ignoreControllerConfirmation = "false"
device {
id = 1
name = "Desk light"
protocol = "arctech"
model = "selflearning-switch"
parameters {
house = "29478"
@lepinkainen
lepinkainen / rtorrent.rc
Created April 25, 2010 22:37 — forked from ion1/rtorrent.rc
rtorrent finished events
# http://libtorrent.rakshasa.no/wiki/RTorrentRatioHandling
# Ratio 2.0, close & erase when done - erasing deletes torrents from rtorrent
ratio.enable =
ratio.min.set = 200
ratio.max.set = 0
ratio.upload.set = 0
system.method.set = group.seeding.ratio.command, d.close=, d.erase=
# On completion, move the torrent to the directory from custom1.