Skip to content

Instantly share code, notes, and snippets.

@x1ppy
x1ppy / torrent2origin.py
Last active May 24, 2022 14:51
Create origin files from existing .torrents
import bencoding
import hashlib
import io
import os
import sys
import time
from origin import GazelleAPI
# Before running this script:
# pip install bencoding
@x1ppy
x1ppy / red2gazelle.py
Last active April 10, 2020 05:07
red-origin to gazelle-origin migration script
import subprocess
import time
from pathlib import Path
# Replaces origin.txt with origin.yaml in every directory under DIR.
# Directory containing albums.
# Set this manually.
DIR = '~/music'
@x1ppy
x1ppy / openssh_no_privsep.patch
Created August 21, 2021 18:52
Disable privilege separation in OpenSSH
diff --git a/trunk/PKGBUILD b/trunk/PKGBUILD
index a7c3f0d..9abf71b 100644
--- a/trunk/PKGBUILD
+++ b/trunk/PKGBUILD
@@ -64,6 +64,8 @@ build() {
--with-pid-dir=/run \
--with-default-path='/usr/local/sbin:/usr/local/bin:/usr/bin' \
+ patch --strip=1 < ../../junest.patch
+