Skip to content

Instantly share code, notes, and snippets.

View samicrusader's full-sized avatar
💊
POP A PERC

samicrusader

💊
POP A PERC
View GitHub Profile

Keybase proof

I hereby claim:

  • I am samicrusader on github.
  • I am samicrusader (https://keybase.io/samicrusader) on keybase.
  • I have a public key ASDfONXmhpGeKcx60Yhd4ECaNVMq6toZ6HT7THF5Gt0Umgo

To claim this, I am signing this object:

@samicrusader
samicrusader / routes.py
Last active April 7, 2022 18:52
webtv server routes script
#!/usr/bin/env python3
import os
import subprocess
## Change me!
ServerIP = '74.76.120.18' # MattMan
#ServerIP = '51.222.164.146' # Zefie
DNSServer = '9.9.9.9' # quad9.net
@samicrusader
samicrusader / eternalrevolution.net-v4-rdns.zone
Created July 26, 2022 07:25
my bind9 config with comments
$TTL 7200
10.in-addr.arpa. IN SOA komi.eternalrevolution.net. hi.samicrusader.me. (
2022042601 ; Serial
28800 ; Refresh
1800 ; Retry
604800 ; Expire
86400) ; Negative Cache TTL
10.in-addr.arpa. IN NS komi.eternalrevolution.net.
@samicrusader
samicrusader / plex-certbot.sh
Last active March 21, 2023 06:09
plex ssl renewal hook for certbot
#!/bin/bash
# This script assumes that Plex is the only thing running on your box.
# This script automatically renews Let's Encrypt HTTPS certificates for a Plex server not running behind a proxy.
# - If Plex is the only thing running on your box, the script needs to be saved to `/etc/letsencrypt/renewal-hooks/deploy/plex-certbot.sh`.
# - If you are running other things on your box, the script can be placed in `/etc/letsencrypt/plex-certbot.sh` and needs to be called with `--deploy-hook` when you first run `certbot`.
# - Change the path to PLEX_CERTIFICATE to whereever your Plex data directory is
# - Set PLEX_CERTIFICATE_PASSWORD to a random string
# - Set PLEX_DOMAIN to the Common Name of the certificate you are using for Plex (the domain name, e.g. "plex.example.com")
@samicrusader
samicrusader / keyboard.json
Created February 19, 2023 23:41
Plex HTPC input mappings for Windows Media Center eHome remotes
{
// 2023 samicrusader.me
"name": "Windows Media Center eHome Transceiver",
"idmatcher": "Keyboard.*",
"mapping": {
"Escape": "back",
"Up": "up",
"Down": "down",
"Left": "left",
"Right": "right",
@samicrusader
samicrusader / MCERemote.txt
Created March 8, 2023 03:37
Windows Media Center eHome remote input mappings for Plex HTPC (use with keyboard.json)
000000000400270100000004001E0200000004001F030000000400200400000004002105000000040022060000000400230700000004002408000000040025090000000400260A0000000400290B0000000400280C0000000382000E00000001E2000F0000000109021000000001E9001100000001EA0012000000019C0013000000019D001400000001B3001500000001B4001600000001B0001700000001B2001800000001B1001900000001B7001A00000001B5001B00000001B6001C0000000402201D0000000402251E0000000400521F000000040051200000000400502100000004004F220000000400282300000001240226000000018D00290000000383002A0000000382003B0000000104024E0000000108026E00000001CD00
@samicrusader
samicrusader / acropalypse_wikileaks_check.py
Last active April 16, 2023 09:58 — forked from DavidBuchanan314/acropalypse_matching_sha256.py
check if a folder of screenshot got wikileaked by Android 10's undocumented API bullshit
import zlib
import os
import sys
import io
if len(sys.argv) != 4:
print(f"USAGE: {sys.argv[0]} phone_width phone_height wikileaks/")
exit()
print('this tool gonna take a bit depending on how big and girthy your screenshots( folder) is')
@samicrusader
samicrusader / pmxcfs.py
Created May 27, 2023 04:44
Proxmox Virtual Environment config.db dump utility
#!/usr/bin/env python3
import os
import sqlite3
import sys
try:
os.mkdir('config_restore')
except:
pass
@samicrusader
samicrusader / sproutvideo.py
Created August 19, 2023 06:19
videos.sproutvideo.com/embed/ downloader
# needs PyAV BeautifulSoup4 and PyCryptoDome
import av
import base64
import json
import requests
from bs4 import BeautifulSoup
from Crypto.Cipher import AES
from io import BytesIO
@samicrusader
samicrusader / glftpd-reset.service
Created April 1, 2024 04:41
glftpd systemd listen + reset timer
[Unit]
Description=glFTPd stats reset
[Service]
Type=oneshot
ExecStart=-/glftpd/bin/reset
RemainAfterExit=no