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
curl https://raw.githubusercontent.com/danmons/retronas/main/ansible/retronas_systems.yml | yq "(.[].[].mister | select(length!=0))" - | sort | uniq > folder.txt | |
while read p; do | |
mkdir "$p" | |
done <list.txt |
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
#!/usr/bin/env python | |
############################### | |
# Extract SHA1 file hashes from archive.org metadata files | |
# | |
# Usage: place archive.org {item_name}_files.xml in ./xml/ | |
# Run ./extract-hashes.py | |
# sha1 files get written to ./sha1 | |
############################### |
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
-=MiSTer Computer Cheat Sheet FAQ v1.8.4 by Owlnonymous=- | |
------------------ | |
Notes: On a few cores " = L Shift+2, * = ], and ? = not working. CAPITALIZED = type command or action. On most cores, leave the .xxx files name extension off the launch command. | |
Help: I could use help with the MulitComp, and Sinclair QL. | |
------------------ | |
Amstrad: files DSK, TAPE " | |
DSK file- | |
1) load DSK through OSD |
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 | |
upSeconds=`/usr/bin/cut -d. -f1 /proc/uptime` | |
secs=$(($upSeconds%60)) | |
mins=$(($upSeconds/60%60)) | |
hours=$(($upSeconds/3600%24)) | |
days=$(($upSeconds/86400)) | |
UPTIME=`printf "%d days, %02dh %02dm %02ds " "$days" "$hours" "$mins" "$secs"` | |
echo "\033[0;32m | |
.~~. .~~. \033[0;37m`date +"%A, %e %B %Y, %R"`\033[0;32m |
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
MD5 (NessusAgent-6.10.2-es7.x86_64.rpm) = 0a42d5838aac2e468663463e1133a6e3 | |
9cd362cd591eda8626ef96bdf9ece2220ee8a5c4 NessusAgent-6.10.2-es7.x86_64.rpm |
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 | |
# File: /usr/local/etc/rc.d/tler.sh | |
# Enable TLER for drives on boot of Synology | |
case $1 in | |
start) | |
smartctl -d sat -l scterc,70,70 /dev/sda | |
smartctl -d sat -l scterc,70,70 /dev/sdb | |
;; | |
stop) |
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
from fractions import gcd | |
from Crypto.PublicKey import RSA | |
from Crypto.Signature import PKCS1_v1_5 | |
from Crypto.Hash import SHA | |
def egcd(a, b): | |
if a == 0: | |
return (b, 0, 1) |
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/bash | |
POWERDNS_API_KEY="XXX" | |
POWERDNS_API_URL="http://x.x.x.x:8081" | |
POWERDNS_ZONE="example.com" | |
DNS_NAME="foo.example.com" | |
DNS_TTL="120" | |
SERVICE_IP="1.2.3.4" | |
curl --silent -X PATCH --data '{"rrsets":[{"name":"'$DNS_NAME'","type":"A","changetype":"REPLACE","records":[{"name":"'$DNS_NAME'","type":"A","content":"'$SERVICE_IP'","ttl":'$DNS_TTL',"priority":0,"disabled":false}]}]}' -H 'X-API-Key: '$POWERDNS_API_KEY'' $POWERDNS_API_URL/servers/localhost/zones/$POWERDNS_ZONE > /dev/null |
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
[Unit] | |
Description=RTL-SDR Server | |
Wants=network-online.target | |
After=network-online.target | |
[Service] | |
ExecStartPre=/bin/sleep 15 | |
ExecStart=/bin/sh -c '/usr/bin/rtl_tcp -a 0.0.0.0 -s 1024000' |
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
{ | |
"workbench.colorTheme": "Dracula", | |
"editor.fontSize": 12, | |
"presentationMode.zoomLevel": 4, | |
"editor.fontFamily": "Fira Code", | |
"files.autoSave": "onFocusChange", | |
"window.zoomLevel": 1, | |
"flow.pathToFlow": "${workspaceRoot}/node_modules/.bin/flow" | |
} |