Skip to content

Instantly share code, notes, and snippets.

Avatar

Paul Lewis pjlewisuk

  • Amazon Web Services / @aws
  • London, UK
View GitHub Profile
@fryfrog
fryfrog / sonarr_cleanup_packed_torrent.sh
Last active Jan 6, 2022
A Sonarr post processing script to remove the video file from packed torrents, modified version of subzero79/87a347a07964390884c9
View sonarr_cleanup_packed_torrent.sh
#!/bin/bash
# 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
teppeis / README.md
Created Mar 15, 2018 — forked from prog893/README.md
ECS Container Instance scale-in protector
View README.md
@iMilnb
iMilnb / boto3_hands_on.md
Last active Jan 25, 2021
Programmatically manipulate AWS resources with boto3 - a quick hands on
View boto3_hands_on.md

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
nicolasembleton / restart_bluetooth.sh
Last active Jan 20, 2022
Restart Bluetooth Daemon on Mac OS X without restarting
View restart_bluetooth.sh
#!/bin/bash
sudo kextunload -b com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport
sudo kextload -b com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport
@kjoconnor
kjoconnor / delete_snapshots.py
Created Nov 6, 2013
boto script to delete snapshots matching a filter and older than X days
View delete_snapshots.py
import sys
from boto.ec2 import connect_to_region
from datetime import datetime, timedelta
try:
days = int(sys.argv[1])
except IndexError:
days = 7
@tommeier
tommeier / autorun-plexconnect.sh
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.
View autorun-plexconnect.sh
#!/bin/sh
# /share/MD0_DATA/.qpkg/autorun/autorun-plexconnect.sh
# chmod +x /share/MD0_DATA/.qpkg/autorun/autorun-plexconnect.sh
curl -L https://gist.github.com/tommeier/6255771/raw/update_plex_connect.sh | bash &