Skip to content

Instantly share code, notes, and snippets.

View meeas's full-sized avatar

Justin Searle meeas

View GitHub Profile
@meeas
meeas / starship.toml
Last active April 5, 2022 04:25
Starship prompt inspired by Powerlevel10k
# IMPORTANT NOTE:
#
# You MUST install an appropriate mono-spaced Nerdfont for this to work correctly
#
# You can find download links and terminal install instructions here:
#
# https://github.com/romkatv/powerlevel10k#manual-font-installation
#
# You are not installing PowerLevel10k, you are just following the steps in this one section
@meeas
meeas / DebianSid_on_LUKS-BTRFS_with_systemd-boot.md
Last active April 4, 2024 18:15
For installing Debian Sid with LUKS2 encrypted BTRFS filesystem with Systemd-boot and rEFInd bootloaders plus an option for dualboot to Windows

For directly installing Debian Sid not supported by the Debian installer, namely:

  • Single LUKS2 encrypted partition which contains the full installation
  • Single BTRFS filesystem (integrated home partition)
  • Encrypted swapfile in BTRFS subvolume (supports laptop suspend but not hibernate)
  • Uses systemd-boot bootloader (instead of Grub2, also optional rEFInd instructions)
  • Minimal Gnome install (plus instructions for any other DE you wish)
  • Proper user groups for common security tools like sudo-less Wireshark, etc...
  • Optional removal of crypto keys from RAM during laptop suspend
  • Optional configurations for laptops (including fingerprint readers)
#!/bin/bash
if [ "$EUID" -ne 0 ]
then echo "Please run as root"
exit
fi
echo
echo "Changing Debian repository suite from testing to bullseye..."
echo 'deb http://ftp.us.debian.org/debian/ bullseye main non-free contrib' > /etc/apt/sources.list
@meeas
meeas / Online_Presentations_and_Training.adoc
Last active June 30, 2020 16:58
Misc notes for building online presentations and online trainings
@meeas
meeas / Golang-Package-Notes.adoc
Last active April 19, 2020 03:42
Golang Package Notes
Web
  • net/http has basic http2 support

  • net/http2 is newer implimentation of http2

  • github.com/lucas-clemente/quic-go is the most mature HTTP3 library in go

CLI Parameter Parsing
  • flags is the builtin

  • kingpin is supports subcommands and is architecturally sound

  • cobra and urfave/cli both enforce a globals-heavy and architecturally questionable

@meeas
meeas / completer.py
Created February 14, 2018 10:03 — forked from blark/completer.py
A really basic completer for prompt_toolkit
from __future__ import print_function, unicode_literals
from prompt_toolkit.completion import Completer, Completion
class PwnCompleter(Completer):
cmds = {'quit': None,
'exit': None,
'use': ['/foo/bar', '/herp/derp', '/baz/qux'],