Skip to content

Instantly share code, notes, and snippets.

View sneak's full-sized avatar

Jeffrey Paul sneak

View GitHub Profile
allowUnsupportedSystem = true;
allowUnfree = true;
fonts = pkgs: with pkgs; {
enableFontDir = true;
fonts = [
sneak /
Created July 17, 2015 07:26
spamassassin config
# spamassassin local config as of 2015-07-17
# Add *****SPAM***** to the Subject header of spam e-mails
rewrite_header Subject *****SPAM*****
# Save spam messages as a message/rfc822 MIME attachment instead of
# modifying the original message (0: off, 2: use text/plain instead)
report_safe 1
add_header all RelaysUntrusted _RELAYSUNTRUSTED_
set -x
cd /dev/disk/by-id ;
ls -1 nvme-SAMSUNG* | grep -v part
sneak /
Created December 8, 2022 13:14
mattermost message retention crontab
CID="$(docker ps | grep srv-captain--mm-postgres | awk '{print $1}')"
delete from posts where createat < extract(epoch from (now() - interval '1 months'))::int8 * 1000;
delete from reactions where postid not in (select id from posts);
delete from fileinfo where postid not in (select id from posts);
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "">
<plist version="1.0">
sneak / webkittime.go
Created September 22, 2020 00:19
webkit time conversion
package main
import (
func main() {
//2020-09-21 22:49:02
const wk int64 = 13245202142853170
sneak / grub.conf
Last active April 18, 2020 13:46
set timeout=1
set default=0
insmod part_gpt
insmod fat
insmod efi_gop
insmod efi_uga
insmod cryptodisk
insmod luks
insmod zfs
dracut \
-v \
--no-compress \
--force \
--show-modules \
--kernel-cmdline "root=zfs:AUTO rootfstype=zfs" \
/boot/5.4.28-gentoo/initrd.dracut 5.4.28-gentoo-x86_64
sneak / ntp.conf
Created January 11, 2020 21:25
ntpd stratum 1 timeserver config
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
# ifupdown has been replaced by netplan(5) on this system. See
# /etc/netplan for current configuration.
# To re-enable ifupdown on this system, you can run:
# sudo apt install ifupdown
#auto wlx801f02ee7727
#iface wlx801f02ee7727 inet dhcp
# wpa-ssid ""
# wpa-psk "REDACTED"