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
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
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=<REDACTED@sneakdotberlin.slack.com>, orig_to=<root@REDACTED.eeqj.de>, 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))
View gist:58410961f15f693c1be0b318a81dbf16
# 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
@sneak
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_'
View run-ubuntu-mirror.sh
docker run \
--name ubuntu-mirror \
-e UBUNTU_MIRROR_SOURCE=us.archive.ubuntu.com \
-e MIRROR_INTERVAL_SECONDS=10800 \
-e MIRROR_CATEGORIES=main,universe,restricted,multiverse \
-e MIRROR_ARCHITECTURES=amd64 \
-e UBUNTU_MIRROR_PROJECTS=bionic,bionic-updates,bionic-security,bionic-backports \
-v /storage/mirrors/ubuntu/ubuntu:/var/mirror/ubuntu \
-p 172.17.0.1:80:80/tcp \
-d sneak/ubuntumirror
@sneak
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
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
View steem virtual ops
$ http -j post https://api.steemit.com jsonrpc=2.0 id=1 method=condenser_api.get_ops_in_block params:='[20000000, true]'
@sneak
sneak / ingress-example.yml
Created Oct 2, 2018
multiple hostnames for single ingress
View ingress-example.yml
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
annotations:
traefik.ingress.kubernetes.io/redirect-permanent: "true"
traefik.ingress.kubernetes.io/redirect-regex: ^https://www.helloworld2.domain.de/(.*)
traefik.ingress.kubernetes.io/redirect-replacement: https://helloworld2.domain.de/$1
name: helloworld2
namespace: default
spec:
You can’t perform that action at this time.