Skip to content

Instantly share code, notes, and snippets.

View leetrout's full-sized avatar
🎸

Lee Trout leetrout

🎸
View GitHub Profile
@leetrout
leetrout / 1_hour_dry_cleaning.lbrn2
Created August 2, 2024 21:51
1 Hour Dry Cleaning
<?xml version="1.0" encoding="UTF-8"?>
<LightBurnProject AppVersion="1.6.03" FormatVersion="1" MaterialHeight="0" MirrorX="False" MirrorY="False">
<Thumbnail Source="iVBORw0KGgoAAAANSUhEUgAAAQAAAAEACAYAAABccqhmAAAACXBIWXMAABYlAAAWJQFJUiTwAAAgAElEQVR4nO2deXycVb3/P+dZZ0kymaxN0qb7RpuWFmpboIDsiKLsIGhRQa+iqFe91+XFxatcr16vVxFF/SH3trIjO8oighQoW1taOm3TNWn2PTOZZLZnO78/nmyTmSSTZGaemcl5v155QWee55zvJHM+zznf8z3fL6GUUjCyH8NA9549kN1uKH4/enfvhrO6Gs4FCyC5XNBVFXnV1VZbycgwBKsNYEwPxefDkd/9DiefeAKq34/+EyfAiyIc1dWQCgoQ7u6GVFgIQ1Gg9PUh0t0NUIqi9evhXrMGHM+j8uKLUX3FFVZ/FIaFEDYDyB766+qw5zvfQc/evVC8XhStW4eqiy/G/KuuQv6SJZPer4VC8Hk88O7fj5YXXoC3thaRzk7M++Qnkb9wIdbccUcaPgUjk2ACkAW897Wvof3116EHgyjduBErvvY1lG7enJS2I729aHr2WRz+zW/Qu28fVn7jG1h5++3Imz8/Ke0zMhsmABnMvjvvxNE//AGOefOw4Re/QPnZZ6e0P6rrqL37btT++tfQFQXn/vnPKDvzzJT2ybAWJgAZSN1DD+Gtm2/Gsltvxdo774S9vDztNtT+6lc4vn07ClevxsZf/xqS2512GxiphwlABtH6t79h1ze/iaJ16/CRu++GXFxstUmoe/BBvHvbbdh0771YdOONVpvDSDJMADKA1ldegXf/fuz/8Y9x3rPPovycc6w2KYqB+nq8fO65+Ni778JeUWG1OYwkwrYBLeavmzbBCIdRccEFuMHns9qcuO
@leetrout
leetrout / pxe-boot.md
Created July 7, 2024 17:28 — forked from Rafisto/pxe-boot.md
pxe-boot

How to easily setup PXE boot for cluster provisioning

This guide will show you how to setup a PXE boot server to provision a cluster of machines. For the sake of this guide, we will be using system agnostic docker containers to simulate the DHCP and the PXE boot server.

Featured technologies:

PXE boot description

@leetrout
leetrout / pxe-boot.sh
Created July 7, 2024 17:25 — forked from spipm/pxe-boot.sh
Create (UEFI/Secureboot) PXE boot server on interface
#!/bin/bash
# Run PXE boot server on interface
# Seems to work with UEFI and Secureboot
# Spip, 2023
#
# Most stuff from https://www.youtube.com/watch?v=E_OlsA1hF4k
#
# Check args
@leetrout
leetrout / all-the-way-downify.sh
Created April 20, 2023 17:41 — forked from lafentres/all-the-way-downify.sh
:*-all-the-way-down: Slack emoji creator, based off alisdair/intensify.sh
#!/bin/bash
# Credit to https://gist.github.com/alisdair/ffc7c884ee36ac132131f37e3803a1fe for the excellent original
# script that this one is based on. This script modifies the original to create the all-the-way-down effect.
# Generate a `:*-all-the-way-down:` Slack emoji, given a reasonable image
# input. I recommend grabbing an emoji from https://emojipedia.org/
set -euo pipefail
@leetrout
leetrout / jumboify.sh
Created April 20, 2023 17:41 — forked from lafentres/jumboify.sh
Jumbo Slack emoji creator, based off alisdair/intensify.sh
#!/bin/bash
# Credit to https://gist.github.com/alisdair/ffc7c884ee36ac132131f37e3803a1fe for the excellent original
# script that this one is based on. This script modifies the original to create the jumbo.
# Generate a jumbo Slack emoji, given a reasonable image
# input. I recommend grabbing an emoji from https://emojipedia.org/
set -euo pipefail
@leetrout
leetrout / debug.js
Created February 26, 2023 04:58
Minecraft WorldEdit debug script
/**
* Small helper script to debug via printing in WorldEdit CraftScript.
* Save this file as debug.js in your WorldEdit config folder:
* e.g. config/worldedit/craftscript/debug.js
*
* Use in the console:
* /cs debug
* /cs debug player
*
* With no arguments this script will print all globals.
@leetrout
leetrout / partyify.sh
Created July 15, 2022 12:49 — forked from lafentres/partyify.sh
:something-party: Slack emoji creator, based off alisdair/intensify.sh
#!/bin/bash
# Generate a `:something-party:` Slack emoji, given a reasonable image
# input. I recommend grabbing an emoji from https://emojipedia.org/
set -euo pipefail
if [ $# -eq 0 ]; then
echo "Usage: $0 input.png"
exit 1
@leetrout
leetrout / betteruptime.vcf
Last active May 10, 2022 17:28
BetterUptime contact card
BEGIN:VCARD
VERSION:3.0
FN;CHARSET=UTF-8:Better Uptime
N;CHARSET=UTF-8:Uptime;Better;;;
TEL;TYPE=CELL:+1 (872) 231-5748
TEL;TYPE=CELL:+1 (872) 278-6922
TEL;TYPE=CELL:+1 (872) 278-6921
TEL;TYPE=HOME,VOICE:+1 (256) 485-4958
TEL;TYPE=WORK,VOICE:+32 460 23 47 47
ORG;CHARSET=UTF-8:BetterUptime
@leetrout
leetrout / cloud-provider-migration.md
Created April 7, 2022 21:24
vidarh's cloud migration strategy

Originally from https://news.ycombinator.com/item?id=30945448 and I wanted a copy somewhere else:

Unfortunately not, but it's surprisingly straight-forward, apart from the database bit, but here's a bit more detail from memory. There are many ways of doing this and some will depend strongly on which tools you're comfortable with (e.g. nginx vs. haproxy vs. some other reverse proxy is largely down to which one you know best and/or already have in the mix) [Today I might have considered K8s, but this was before that was even a realistic option, but frankly even with K8s I'm not sure -- the setup in question was very simple to maintain]:

  • Set up haproxy, nginx or similar as reverse proxy and carefully decide if you can handle retries on failed queries. If you want true zero-downtime migration there's a challenge here in making sure you have a setup that lets you add and remove backends transparently. There are many ways of doing this of various complexity. I've tended to favour using dynamic dns updates for t
@leetrout
leetrout / since2010.md
Created March 3, 2022 16:18 — forked from shawwn/since2010.md
"What happened after 2010?"

This was a response to a Hacker News comment asking me what I've been up to since 2010. I'm posting it here since HN rejects it with "that comment is too long." I suppose that's fair, since this ended up being something of an autobiography.

--

What happened after 2010?