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
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
driftfile /var/lib/ntp/ntp.drift | |
leapfile /usr/share/zoneinfo/leap-seconds.list | |
# Enable this if you want statistics to be logged. | |
statsdir /var/log/ntpstats/ | |
statistics loopstats peerstats clockstats | |
filegen loopstats file loopstats type day enable | |
filegen peerstats file peerstats type day enable | |
filegen clockstats file clockstats type day enable |
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
#!/bin/bash | |
set -x | |
RAWDISKS=$( | |
cd /dev/disk/by-id ; | |
ls -1 nvme-SAMSUNG* | grep -v part | |
) | |
FULLPATHS="" |
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 [email protected]:/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 [email protected] "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 [email protected]:/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 [email protected] "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
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
#!/usr/bin/env python3 | |
from email import message_from_file | |
import json | |
import os | |
import requests | |
import sys | |
import syslog |