Skip to content

Instantly share code, notes, and snippets.

View maatthc's full-sized avatar
🍄

MaaT maatthc

🍄
  • MaaT Tech
  • Melbourne
  • 23:52 (UTC -12:00)
View GitHub Profile
@abrasive
abrasive / nvme-target-client.sh
Last active November 4, 2025 21:02
Set up a laptop as NVMe-over-fabric target in initramfs
#!/bin/sh
# This imports the nvme device exported by the nvme-target-mode.sh script
set -e
sudo modprobe nvme-fabrics
sudo ifconfig thunderbolt0 10.99.1.1 netmask 255.255.255.0 up
sudo nvme connect -t tcp -a 10.99.1.2 -n mylaptopname -s 4420

Installing an up-to-date AVR cross compilation toolchain for QMK on Ubuntu 20.04+

Unfortunately Ubuntu packages a fairly old (5.3.0) version of gcc-avr at the time of writing. Versions of gcc-avr from 8.3.0 onwards will produce significantly smaller binaries. The steps of building and installing a cutting-edge AVR toolchain on Ubuntu (tested on 20.04/WSL2 and 20.10/Baremetal) are outlined below.

Most of the procedure is loosely based on this manpage.

Prequisites

It's a good idea to run all of this from a folder dedicated to it.

@mohanpedala
mohanpedala / bash_strict_mode.md
Last active December 28, 2025 10:42
set -e, -u, -o, -x pipefail explanation
@raulcabero
raulcabero / gist:c63df4ec79b0a6655d0c
Created December 10, 2015 16:13
Order bare metal server with raid configuration and custom partitions
"""
Order a new server with RAID configuration.
Important manual pages:
http://sldn.softlayer.com/reference/datatypes/SoftLayer_Container_Product_Order
http://sldn.softlayer.com/reference/datatypes/SoftLayer_Hardware_Server
http://sldn.softlayer.com/reference/datatypes/SoftLayer_Product_Item_Price
http://sldn.softlayer.com/reference/services/SoftLayer_Product_Order/verifyOrder
http://sldn.softlayer.com/reference/services/SoftLayer_Product_Order/placeOrder