This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
import requests | |
import subprocess | |
home = requests.get("https://content.services.pbskids.org/v2/kidspbsorg/home/").text | |
home = json.loads(home) | |
shows = {} | |
episodes = {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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 = "[email protected]"; | |
$authkey = "YOURCLOUDFLAREAPIKEY"; | |
// Old IP address to find | |
$oldip = "ooo.ooo.ooo.ooo"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//// 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]; |