Skip to content

Instantly share code, notes, and snippets.

@nuess0r
nuess0r / btrfs-raid-boot.md
Last active May 19, 2025 16:49
Btrfs in RAID1 as a root filesystem on Debian

Btrfs in RAID1 as a root filesystem on Debian

Migrating Debian from a single disk with ext4 to two disks with btrfs and RAID1.

Source: https://gist.github.com/jirutka/990d25662e729669b3ce (for Gentoo and syslinux)

Partitioning scheme

Partition Filesystem Size Description
@nuess0r
nuess0r / config.defect
Created January 12, 2018 22:10
Smoothieware configuration files for a K40 laser cutter
# Smoothieboard configuration file, see http://smoothieware.org/configuring-smoothie
# NOTE Lines must not exceed 132 characters, and '#' characters mean what follows is ignored
## Robot module configurations : general handling of movement G-codes and slicing into moves
# Basic motion configuration
default_feed_rate 4000 # Default speed (mm/minute) for G1/G2/G3 moves
default_seek_rate 4000 # Default speed (mm/minute) for G0 moves
mm_per_arc_segment 0.0 # Fixed length for line segments that divide arcs, 0 to disable
#mm_per_line_segment 5 # Cut lines into segments this size
mm_max_arc_error 0.01 # The maximum error for line segments that divide arcs 0 to disable
@nuess0r
nuess0r / shoutcast.sh
Created November 12, 2017 15:51 — forked from hSammir/shoutcast.sh
Shoutcast Server Initscript.
#!/bin/sh
# kFreeBSD do not accept scripts as interpreters, using #!/bin/sh and sourcing.
if [ true != "$INIT_D_SCRIPT_SOURCED" ] ; then
set "$0" "$@"; INIT_D_SCRIPT_SOURCED=true . /lib/init/init-d-script
fi
### BEGIN INIT INFO
# Provides: skeleton
# Required-Start: $remote_fs $syslog $network
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5