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 python3 | |
from email import message_from_file | |
import json | |
import os | |
import requests | |
import sys | |
import syslog |
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
torsocks ./openssl s_client -connect whatever.onion:6697 | tee /tmp/out | |
# ... wait a sec, then ^C | |
cat /tmp/out | openssl x509 -sha512 -fingerprint -noout | tr -d ':' | tr 'A-Z' 'a-z' | cut -d = -f 2 |
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
Script started on Wed Feb 26 01:18:46 2020 | |
command: bash -c make run | |
rsync -avP ./disktest.sh root@fsn1.datavibe.net:/root/disktest.sh | |
sending incremental file list | |
disktest.sh | |
700 23% 0.00kB/s 0:00:00 2,977 100% 2.17MB/s 0:00:00 (xfr#1, to-chk=0/1) | |
sent 1,003 bytes received 65 bytes 712.00 bytes/sec | |
total size is 2,977 speedup is 2.79 | |
ssh root@fsn1.datavibe.net "bash /root/disktest.sh 2>&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
Script started on Wed Feb 26 01:18:46 2020 | |
command: bash -c make run | |
rsync -avP ./disktest.sh root@fsn1.datavibe.net:/root/disktest.sh | |
sending incremental file list | |
disktest.sh | |
700 23% 0.00kB/s 0:00:00 2,977 100% 2.17MB/s 0:00:00 (xfr#1, to-chk=0/1) | |
sent 1,003 bytes received 65 bytes 712.00 bytes/sec | |
total size is 2,977 speedup is 2.79 | |
ssh root@fsn1.datavibe.net "bash /root/disktest.sh 2>&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 | |
ONION="gg5kq3jrfshwr7qygs3tl5vwnwf4ocfh6jeahumejdct6frld3kvaqqd.onion" | |
PORT=6697 | |
torify openssl s_client -connect $ONION:$PORT -showcerts 2>/dev/null | | |
openssl x509 -in /dev/stdin -noout -fingerprint | | |
awk -F'=' '{print $2}' | | |
tr -d ':' |
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
if [[ ! -d /secure/sneak/sync/Sync ]]; then | |
echo "sync dir not mounted, exiting" > /dev/stderr | |
curl -X POST -H 'Content-type: application/json' --data "{\"text\":\"$(hostname) cannot access sync dir \"}" https://hooks.slack.com/services/lolno & | |
sleep 600 | |
exit 1 | |
fi | |
echo 204800 > /proc/sys/fs/inotify/max_user_watches | |
export STNODEFAULTFOLDER=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
# https://consoledonottrack.com | |
export DO_NOT_TRACK=1 | |
# the rest | |
export HOMEBREW_NO_ANALYTICS=1 | |
export GATSBY_TELEMETRY_DISABLED=1 | |
export STNOUPGRADE=1 | |
export DOTNET_CLI_TELEMETRY_OPTOUT=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
sneak@nostromo:~$ bonnie++ -d ./tmp | |
Writing a byte at a time...done | |
Writing intelligently...done | |
Rewriting...done | |
Reading a byte at a time...done | |
Reading intelligently...done | |
start 'em...done...done...done...done...done... | |
Create files in sequential order...done. | |
Stat files in sequential order...done. | |
Delete files in sequential order...done. |
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
for URL in $(curl -sf https://feeds.soundcloud.com/users/soundcloud:users:15876127/sounds.rss | tr "<>" "\n\n" | grep enclosure | awk -F'"' '{print $4}'); do wget $URL ; done |
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 | |
# converts from alac 24/96 m4a to 16/44 320 cbr mp3 for my stupid hardware | |
find . -type f -name '*.m4a' -print0 | parallel -0 'ffmpeg -i {} -vsync 0 -b:a 320k -sample_fmt s16p -ar 44100 "{.}.mp3"' |