Skip to content

Instantly share code, notes, and snippets.


Paul Lewis pjlewisuk

  • Amazon Web Services / @aws
  • London, UK
View GitHub Profile
fryfrog /
Last active Jan 6, 2022
A Sonarr post processing script to remove the video file from packed torrents, modified version of subzero79/87a347a07964390884c9
# Examples for testing
# sonarr_episodefile_sourcefolder="/data/torrent/tv/Penny.Dreadful.S01E01.720p.HDTV.x264-2HD" sonarr_episodefile_sourcepath="/data/torrent/tv/Penny.Dreadful.S01E01.720p.HDTV.x264-2HD/penny.dreadful.s01e01.720p.hdtv.x264-2hd.mkv"
# Instructions
# Put this script somewhere on your file system like /usr/local/bin and make it executable.
# In Sonarr, Settings -> Connect add a Custom Script
# On Grab: No
teppeis /
Created Mar 15, 2018 — forked from prog893/
ECS Container Instance scale-in protector
iMilnb /
Last active Jan 25, 2021
Programmatically manipulate AWS resources with boto3 - a quick hands on

boto3 quick hands-on

This documentation aims at being a quick-straight-to-the-point-hands-on AWS resources manipulation with [boto3][0].

First of all, you'll need to install [boto3][0]. Installing it along with [awscli][1] is probably a good idea as

  • [awscli][1] is boto-based
  • [awscli][1] usage is really close to boto's
nicolasembleton /
Last active Jan 20, 2022
Restart Bluetooth Daemon on Mac OS X without restarting
sudo kextunload -b
sudo kextload -b
kjoconnor /
Created Nov 6, 2013
boto script to delete snapshots matching a filter and older than X days
import sys
from boto.ec2 import connect_to_region
from datetime import datetime, timedelta
days = int(sys.argv[1])
except IndexError:
days = 7
tommeier /
Last active Jan 11, 2020
Plexconnect for Qnap (Intel - tested on 439 with Apple TV 3). Streaming media to Apple TV 3 from Qnap 439.
# /share/MD0_DATA/.qpkg/autorun/
# chmod +x /share/MD0_DATA/.qpkg/autorun/
curl -L | bash &