Skip to content

Instantly share code, notes, and snippets.

@killbus
killbus / pbskids.py
Created July 29, 2023 12:06 — forked from larsenv/pbskids.py
PBS Kids Video Downloader
import json
import requests
import subprocess
home = requests.get("https://content.services.pbskids.org/v2/kidspbsorg/home/").text
home = json.loads(home)
shows = {}
episodes = {}
@killbus
killbus / 00-update-vault.sh
Created April 4, 2023 20:27 — forked from teamblack-ci/00-update-vault.sh
Let's Encrypt certificate management using Certbot and Vault
#!/bin/sh
#
# Perform certificate updates in Vault.
set -eo pipefail
if ! vault token lookup > /dev/null; then
echo "Login to Vault first."
exit 1
fi
@killbus
killbus / cloudflare_batch.php
Last active September 24, 2023 07:54 — forked from domaingood/cloudflare_batch.php
Cloudflare Batch Edit
<?php
// Form a list of all CF IP zones
// For each zone, grab all A records and TXT records matching $oldip
// For each matching record, update it to the new IP address
$authemail = "YOU@YOUREMAIL.COM";
$authkey = "YOURCLOUDFLAREAPIKEY";
// Old IP address to find
$oldip = "ooo.ooo.ooo.ooo";
@killbus
killbus / JDxTEA.js
Created September 8, 2021 15:05 — forked from irever/JDxTEA.js
JDxTEA #JD #XTEA
//// libDecryptorJni.so TeaEncryptECB ////
function xor(a, b) {
var l = a.length,
t, ret = [];
console.log("l:" + l);
for (var i = 0; i < l; i++) {
var aa = a[i];