Skip to content

Instantly share code, notes, and snippets.

Jeffrey Paul sneak

Block or report user

Report or block sneak

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
sneak /
Created Oct 5, 2019
syncthing runscript
export HOME=/secure/sneak/sync
if [[ ! -d "$HOME" ]]; then
echo "sync dir not mounted, exiting" > /dev/stderr
sleep 10
exit 1
watch --interval=1 'uptime; free -h; arcstat; zpool iostat -y -v 1 1 ; zpool status -v'
View 99-10ge.conf
# 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
sneak / gist:1458ad848f57d9f0bb441835cf6d98ef
Created Mar 27, 2019
slack's SMTP service does not allow me to send mail to it :/
View gist:1458ad848f57d9f0bb441835cf6d98ef
Mar 27 06:53:51 REDACTED postfix/smtp[16574]: 4F78D16021D: to=<>, orig_to=<>,[]:25, delay=9.8, delays=0.01/0/7.9/1.9, dsn=5.7.1, status=bounced (host[] said: 550 5.7.1 IP address blacklisted by recipient (in reply to RCPT TO command))
View gist:58410961f15f693c1be0b318a81dbf16
# set l2arc fill rate to 300MB/sec until full and 100MB/sec thereafter
# more info:
echo 200000000 > $D/l2arc_write_boost
echo 100000000 > $D/l2arc_write_max
sneak / gist:a2198b2980b81054c9652d099cbcf39b
Created Mar 26, 2019
monitor zfs l2arc rates in realtime
View gist:a2198b2980b81054c9652d099cbcf39b
watch --interval=1 'cat /proc/spl/kstat/zfs/arcstats | grep l2_'
docker run \
--name ubuntu-mirror \
-e \
-e MIRROR_CATEGORIES=main,universe,restricted,multiverse \
-e UBUNTU_MIRROR_PROJECTS=bionic,bionic-updates,bionic-security,bionic-backports \
-v /storage/mirrors/ubuntu/ubuntu:/var/mirror/ubuntu \
-p \
-d sneak/ubuntumirror
sneak / vimrc
Created Oct 25, 2018
20181025 sneak vimrc
View vimrc
"execute pathogen#infect()
silent !mkdir -p ~/Library/Vim/backup > /dev/null 2>&1
silent !mkdir -p ~/Library/Vim/undo > /dev/null 2>&1
silent !mkdir -p ~/Library/vim/swap > /dev/null 2>&1
silent !mkdir -p ~/Documents/sync/vim/autoload > /dev/null 2>&1
silent !mkdir -p ~/Documents/sync/vim/plugged > /dev/null 2>&1
if empty(glob('~/Documents/sync/vim/autoload/plug.vim'))
silent !curl -fLo ~/Documents/sync/vim/autoload/plug.vim --create-dirs
sneak / gist:b467c9e9e14b21edaaa5bc73938ca8eb
Created Oct 9, 2018
nokogiri fix for osx jekyll bundler ruby
View gist:b467c9e9e14b21edaaa5bc73938ca8eb
bundle config build.nokogiri --use-system-libraries=true --with-xml2-include="$(xcrun --show-sdk-path)"/usr/include/libxml2
You can’t perform that action at this time.