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
# set l2arc fill rate to 300MB/sec until full and 100MB/sec thereafter | |
# more info: https://github.com/zfsonlinux/zfs/wiki/ZFS-on-Linux-Module-Parameters#zfs_compressed_arc_enabled | |
D="/sys/module/zfs/parameters" | |
echo 200000000 > $D/l2arc_write_boost | |
echo 100000000 > $D/l2arc_write_max |
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
Mar 27 06:53:51 REDACTED postfix/smtp[16574]: 4F78D16021D: to=<[email protected]>, orig_to=<[email protected]>, relay=inbound-smtp.us-east-1.amazonaws.com[205.251.243.46]:25, delay=9.8, delays=0.01/0/7.9/1.9, dsn=5.7.1, status=bounced (host inbound-smtp.us-east-1.amazonaws.com[205.251.243.46] said: 550 5.7.1 IP address blacklisted by recipient (in reply to RCPT TO command)) |
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
# put this file in /etc/sysctl.d | |
# and run `sysctl -p /etc/sysctl.d/99-10ge.conf` | |
net.core.rmem_max = 134217728 | |
# Maximum send socket buffer size | |
net.core.wmem_max = 134217728 | |
# | |
# # Minimum, initial and max TCP Receive buffer size in Bytes | |
net.ipv4.tcp_rmem = 4096 87380 134217728 |
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
ssh-keygen -t rsa -b 4096 -o -a 500 |
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 | |
watch --interval=1 'uptime; free -h; arcstat; zpool iostat -y -v 1 1 ; zpool status -v' |
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 | |
export STNODEFAULTFOLDER=1 | |
export STNOUPGRADE=1 | |
export HOME=/secure/sneak/sync | |
if [[ ! -d "$HOME" ]]; then | |
echo "sync dir not mounted, exiting" > /dev/stderr | |
sleep 10 | |
exit 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
certbot --nginx -d example.com -d www.example.com --non-interactive --agree-tos -m [email protected] |
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
-- open new textedit document | |
-- open safari, open prefs, go to password list view and enter password/unlock | |
-- run this script | |
-- credit to Joseph Rees, MrC, pken, nickhass | |
-- | |
-- if it fails, stop everything, put the selection in textedit on a new line, put the safari pw selection on the last good item in the textedit file, and rerun | |
-- does not get the first entry in the list, didn't feel like fixing it | |
set x to 1 | |
repeat while (x ≤ 5000) | |
-- Switch To Safari -- |
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"' |
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 |