Skip to content

Instantly share code, notes, and snippets.

View maatthc's full-sized avatar
😓

MaaT maatthc

😓
  • MaaT Tech
  • Melbourne
  • 09:22 (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
@mohanpedala
mohanpedala / bash_strict_mode.md
Last active December 5, 2025 10:58
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