Skip to content

Instantly share code, notes, and snippets.

View dylanschmittle's full-sized avatar
🏠
Working from home

Dylan Schmittle dylanschmittle

🏠
Working from home
View GitHub Profile

Keybase proof

I hereby claim:

  • I am dylanschmittle on github.
  • I am dylanschmittle (https://keybase.io/dylanschmittle) on keybase.
  • I have a public key ASBcXSC1I-rH2TlkZVUq8QObtanBhUnGsH02IJ1-38UjZQo

To claim this, I am signing this object:

rm -f /etc/machine-id /var/lib/dbus/machine-id
dbus-uuidgen --ensure=/etc/machine-id
dbus-uuidgen --ensure
openssl genrsa -out yubico-internal-https-ca-key.pem 3744
cat>yubico-internal-https-ca.conf<<EOF
[ req ]
x509_extensions = v3_ca
distinguished_name = req_distinguished_name
prompt = no
[ req_distinguished_name ]
CN=Yubico Internal HTTPS CA
[ v3_ca ]
subjectKeyIdentifier=hash
#!/bin/bash
#
# Set some X11 configurations independent from Desktop and Windows Manager.
# By A.C.
# Needs the Arch/Artix package 'xorg-xwininfo' (Debian: x11-utils) for the X11 appearance check.
# Verify settings with: xrdb -query -all
# Script should be put in /usr/local/bin/configmyx11.sh and run by the Desktop Autorun.
# Probably: ~/.config/autostart/configmyx11.desktop
# [Desktop Entry]
# Type=Application
[broken_implementations]
# Cisco servers currently cannot handle queries larger than 1472 bytes, and don't
# truncate reponses larger than questions as expected by the DNSCrypt protocol.
# This prevents large responses from being received over UDP and over relays.
#
# Older versions of the `dnsdist` server software had a bug with queries larger
# than 1500 bytes. This is fixed since `dnsdist` version 1.5.0, but
# some server may still run an outdated version.
#

Keybase proof

I hereby claim:

To claim this, I am signing this object:

#!/bin/bash
reset_multitor () {
multitor -s -n --init 10 --user tor --socks-port 9009 --control-port 9900 --proxy privoxy --haproxy
sleep 30
}
reset_tor () {
reset_multitor
sv restart tor
}
reset_dns () {
#!/bin/sh
DIR=$(mktemp -d)
cd "$DIR"
strings ~/.local/share/dino/dino.* | grep 'youtu' | sed 's/http/\nhttp/g' | grep ^http | sed 's/\(^http[^ <]*\)\(.*\)/\1/g' | sort | uniq > new-url
cp ~/Music/master master.old
cat master.old > merge
cat new-url >> merge
cat merge | sort | uniq > ~/Music/master
cd ~/Music
youtube-dl -a updated --yes-playlist --no-overwrites --continue --write-info-json --prefer-free-formats --merge-output-format mkv --extract-audio
#!/bin/sh
DIR=$(mktemp -d)
cd "$DIR"
strings ~/.local/share/dino/dino.* | grep 'youtu' | sed 's/http/\nhttp/g' | grep ^http | sed 's/\(^http[^ <]*\)\(.*\)/\1/g' | sort | uniq > new-url
cp ~/Music/master master.old
cat master.old > merge
cat new-url >> merge
cat merge | sort | uniq > ~/Music/master
cd ~/Music
youtube-dl --proxy socks5://127.0.0.1:9009/ -i -a master --yes-playlist --no-overwrites --continue --write-info-json --prefer-free-formats --merge-output-format mkv --extract-audio
#!/bin/sh
# Check For Args
if [ $# -eq 0 ]; then
echo '"./batch-gpg.sh "Full Name" "email@domain.com"'
echo "same password each prompt"
exit 1
fi
# Make Temp Workspace
GNUPGHOME="$(mktemp -d)"
export GNUPGHOME