Skip to content

Instantly share code, notes, and snippets.

View sneak's full-sized avatar

Jeffrey Paul sneak

View GitHub Profile
# 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 "eeqj.de"
# wpa-psk "REDACTED"
#!/bin/bash
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
sneak / grub.conf
Last active April 18, 2020 13:46
/boot/efi/EFI/grub/grub.conf
set timeout=1
set default=0
insmod part_gpt
insmod fat
insmod efi_gop
insmod efi_uga
insmod cryptodisk
insmod luks
insmod zfs
@sneak
sneak / webkittime.go
Created September 22, 2020 00:19
webkit time conversion
package main
import (
"fmt"
"time"
)
func main() {
//2020-09-21 22:49:02
const wk int64 = 13245202142853170
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>berlin.sneak.runit</string>
<key>ProgramArguments</key>
<array>
<string>/nix/store/z19ahyrb7fgzsmysxiz81q7q55m6sza2-runit-2.1.2/bin/runsvdir</string>
@sneak
sneak / cleanup-mm.sh
Created December 8, 2022 13:14
mattermost message retention crontab
#!/bin/bash
CID="$(docker ps | grep srv-captain--mm-postgres | awk '{print $1}')"
CMD="
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);
"
{
allowUnsupportedSystem = true;
allowUnfree = true;
fonts = pkgs: with pkgs; {
enableFontDir = true;
fonts = [
ibm-plex
noto-fonts
noto-fonts-cjk