Skip to content

Instantly share code, notes, and snippets.

@piscisaureus
piscisaureus / pr.md
Created August 13, 2012 16:12
Checkout github pull requests locally

Locate the section for your github remote in the .git/config file. It looks like this:

[remote "origin"]
	fetch = +refs/heads/*:refs/remotes/origin/*
	url = git@github.com:joyent/node.git

Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:

@t0phr
t0phr / GetPw.py
Last active May 4, 2023 11:06
Scan script for nzbget.
#!/usr/bin/python2.7
##############################################################################
### NZBGET SCAN SCRIPT ###
#
# Scans filename of incoming NZBs for embedded passwords.
#
##############################################################################
### OPTIONS ###
# The RegEx to match the password in the filename.
#regex=(.*)\{\{(.*)\}\}.nzb
@onedr0p
onedr0p / cleanup_rtorrent.py
Last active May 22, 2024 19:06
rtorrent - remove specific torrents (set on a cron)
# Python 2.7
import re
import xmlrpclib
import httplib, urllib
# rTorrent URL
server_url = 'http://localhost:6000'
rtorrent = xmlrpclib.Server(server_url)
@JonnyWong16
JonnyWong16 / update_all_metadata.py
Last active June 10, 2024 04:52
Updates all metadata in the Tautulli database after moving Plex libraries.
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Description: Updates all metadata in the Tautulli database after moving Plex libraries.
# Author: /u/SwiftPanda16
# Requires: plexapi, requests
from plexapi.server import PlexServer
import requests
@0xallie
0xallie / lossless-stream-rip-cheatsheet.md
Last active April 27, 2024 04:41
Lossless stream rip cheatsheet

Lossless stream rip cheatsheet

Note: This guide may be slightly outdated. It may be still useful for older releases, but nowadays the vast majority of releases are correctly tagged as WEB-DL (unless it's RARBG/rartv). Protip: prefer looking at file names instead of release names, as they tend to be more accurate.

This is a short cheatsheet to help you determine whether a release from Amazon, Hulu, or Netflix contains the lossless/untouched (as in no further loss of quality compared to what the streaming services provide) video/audio or not. Most newer P2P releases are correctly tagged, but for older releases, it cannot be reliably determined based on the tags alone.

In most cases, non-lossless rips from these services are screen captures (which, when done by professional releasers, should be high quality and contain little to no glitches – see the history section for details), but in some cases they may be simply reencoded from the untouched stream, for example to crop black bars or reencode from a

@fryfrog
fryfrog / Android-SHIELD Android TV.xml
Last active November 8, 2022 18:31
A customized Plex profile for the Nvidia Shield, which goes in ./Library/Application Support/Plex Media Server/Profiles/
<!-- Put in ./Library/Application Support/Plex Media Server/Profiles/Android-SHIELD Android TV.xml -->
<!-- Author: Donald Webster fryfrog@gmail.com -->
<?xml version="1.0" encoding="utf-8"?>
<Client name="SHIELD Android TV">
<Identification>
<Header name="User-Agent" substring="SHIELD Android TV" />
</Identification>
<TranscodeTargets>
<VideoProfile container="mkv" codec="h264" audioCodec="aac" context="streaming" />
<MusicProfile container="flac" codec="flac" id="StereoMusicTranscodeProfile" />
@ljm42
ljm42 / fix_docker_client
Created September 1, 2019 16:38
Temporary fix the Docker client for Unraid
#!/bin/bash
# Version 1.0
# Latest version of this script: https://gist.github.com/ljm42/74800562e59639f0fe1b8d9c317e07ab
# This script was tested on Unraid 6.7.2, although it will likely work in previous versions as well. It should not be needed in 6.8
# It will solve the problem reported here: https://forums.unraid.net/bug-reports/stable-releases/dockers-wanting-to-update-but-dont-in-the-end-r618/
# where due to changes in the Docker Hub API, the Unraid Docker client reported that certain Dockers needed to be updated.
# Thanks for @bluemonster for coming up with the fix!
@TRaSH-
TRaSH- / docker-compose.yml
Last active December 6, 2020 14:15
synology docker-compose
version: "3.2"
services:
# Radarr - https://hotio.dev/containers/radarr/
radarr:
container_name: radarr
image: ghcr.io/hotio/radarr:latest
restart: unless-stopped
logging:
driver: json-file
network_mode: bridge
@TRaSH-
TRaSH- / docker-compose.yml
Last active April 7, 2022 02:48
docker-compose
version: "3.2"
services:
# Radarr - https://hotio.dev/containers/radarr/
radarr:
container_name: radarr
image: ghcr.io/hotio/radarr:latest
restart: unless-stopped
logging:
driver: json-file
network_mode: bridge
@TRaSH-
TRaSH- / synology-docker-compose-collection.yml
Last active August 20, 2022 22:08
synology-docker-compose-collection
# Emby - https://docs.linuxserver.io/images/docker-emby
emby:
container_name: emby
image: ghcr.io/linuxserver/emby
restart: unless-stopped
logging:
driver: json-file
network_mode: bridge
ports:
- 8096:8096/tcp