Skip to content

Instantly share code, notes, and snippets.

@kevinraymond
kevinraymond / gitpod+rke2.md
Last active September 5, 2022 02:52
Gitpod+RKE2 Deployment Notes

Gitpod Self-hosted + RKE2

My journey so far making Gitpod play nice with RKE2, and other notes. This is what I've got working in the very small amount of time I have to work on this. Hopefully this helps as a starting point for a more robust and supported Gitpod+RKE2 solution.

This only documents some of the specific configurations, not everything needed to create the cluster itself (e.g., VPC; DNS).

I will update as time permits along the way!

Reference: gitpod-io/gitpod#5410

@yorickdowne
yorickdowne / README.md
Last active May 12, 2025 16:49
Ubuntu Desktop 20.04 with mirrored ZFS boot drive

Ubuntu 24.04

From the comments: "These exact instructions are not working on Ubuntu 24.04. Ubuntu has changed the naming of ZFS partitions, partition 2 and 3 are switched around, and the boot/efi folder is now different."

I don't have my dual-disk test system any longer, and so can't adjust these steps myself.

Overview

Ubuntu Desktop 20.04 supports a single ZFS boot drive out of the box. I wanted a ZFS mirror, without going through an entirely manual setup of Ubuntu as described by OpenZFS in their instructions for Ubuntu 20.04 and instructions for Ubuntu 22.04

@yvesh
yvesh / proxmox-zfs-encryption.md
Last active February 27, 2025 13:09
Proxmox 6.1 ZFS native full disk (ZFS root) encryption.

Simple guide for fulldisk encryption with Proxmox and ZFS native encryption

Install normally using the installer, after the setup reboot into recovery mode (from the USB stick). Make sure to install in UEFI mode (you need systemd-boot).

If the USB stick is not working for you, because of the old Kernel version (2.6.x), you can also use an Ubuntu 19.10 / 20.04 boot stick. ZFS suport is enabled there out of the box.

Steps:

@psifertex
psifertex / 1_Snippet_Instructions.txt
Last active April 15, 2025 11:17
my current collection of snippets
Welcome to Jordan's grab-bag of common Binary Ninja Snippets.
These snippest are meant to run with the Binary Ninja Snippets Plugin
(http://github.com/Vector35/snippets) though they can all also be pasted
directly into the python console or turned into stand-alone plugins if needed.
To install the entire collection at once, just install the Snippets plugin via
the plugin manager (CMD/CTL-SHIFT-M), confirm the Snippet Editor works
(Tool/Snippets/Snippet Editor), and unzip this bundle (Download ZIP above) into
your Snippets folder.
@silver-xu
silver-xu / ts-boilerplate.md
Last active May 3, 2025 23:57
Setup a Node.js project with Typescript, ESLint, Prettier, Husky

Setup a Node.js project with Typescript, ESLint, Prettier, Husky

1_D8Wwwce8wS3auLAiM3BQKA

Starting a personal node project could be easy; starting a team node project could be challenging.

I am a developer currently working in SEEK Australia.

In my experience, common mistakes developer make when starting a projects are:

  • No Linting
@zoilomora
zoilomora / README.md
Last active April 15, 2025 01:56
How to disable cloud-init in Ubuntu

How to disable cloud-init in Ubuntu

Prevent start

  • Create an empty file to prevent the service from starting

      sudo touch /etc/cloud/cloud-init.disabled
    

Uninstall

@joeytwiddle
joeytwiddle / async-await-forEach-alternatives.md
Last active May 9, 2025 11:39
Do not use forEach with async-await

Do not use forEach with async-await

TLDR: Use for...of instead of forEach() in asynchronous code.

For legacy browsers, use for...i or [].reduce()

To execute the promises in parallel, use Promise.all([].map(...))

The problem

@smoser
smoser / README.md
Last active May 7, 2025 22:35
Boot a specific installed Ubuntu kernel using grub-reboot and grub-set-default

Ubuntu Grub Boot Kernel

Boot a specific installed Ubuntu kernel using grub-reboot and grub-set-default.

This allows you to pick what kernel you want to boot on next reboot, or set the default, without having to know much about how grub works or editing config files.

Usage

  Usage: boot-kernel [options] [kernel]

call grub-reboot or grub-set-default to boot the provided kernel.

@systemfreund
systemfreund / stream-twitter.sh
Last active November 9, 2021 17:14
Twitter stream integration for mattermost
#!/bin/bash
# dependencies:
# curl
# culicue - curl wrapper to make oauthv1 requests (https://github.com/decklin/curlicue/blob/master/curlicue)
# jq - filter json from twitter api and transform to a structure mattermost is expecting
# credentials file can be created with the curlicue-setup script
credentials=/home/me/credentials.conf
webhook='https://yourmattermost.server/hooks/1mjxx6amd52q8doxzy16o75adh'
@brwyatt
brwyatt / findNewestFile.sh
Last active January 22, 2025 19:20
BASH script to find the newest file under a directory structure
#!/bin/bash
if [[ "x${1}" == "x" ]]; then
dir="."
else
dir="${1}"
fi
# Based on https://stackoverflow.com/questions/10575665/linux-find-command-find-10-latest-files-recursively-regardless-of-time-span
# with additions to return only the date of the newest file