Skip to content

Instantly share code, notes, and snippets.

@ljfranklin
ljfranklin / build-glibc-alpine-arm64.md
Last active April 4, 2024 10:24
Steps to build glibc for alpine ARM64

Steps

One-time setup

# Enable emulation for cross-platform images
sudo apt-get install -y binfmt-support qemu-user-static

# Enable cross-build commands in docker
docker buildx create --use
@ljfranklin
ljfranklin / arch-install.md
Last active November 16, 2021 18:38
Bootstrapping an Arch Linux installation

Install Arch Linux

Create a bootable Arch Linux USB

  1. Download arch ISO from https://www.archlinux.org/download/
  2. Copy the ISO to the USB drive:
    • From a Linux machine:
    # replace sdX with usb drive listed by `fdisk -l`,
    

e.g. /dev/sdb, do NOT append a partition number

@ljfranklin
ljfranklin / boot.txt
Last active September 20, 2020 16:18
U-boot ODroid iPXE setup
# Start ethernet
usb start
# U-Boot Parameters
setenv initrd_high "0xffffffff"
setenv fdt_high "0xffffffff"
# Mac address configuration
setenv macaddr "00:1e:06:61:7a:39"
@ljfranklin
ljfranklin / compile-ipxe.sh
Last active September 20, 2020 12:08
iPXE SNP configuration failure
DEBUG='embedded,' \
DEBUG+='netdevice,' \
DEBUG+='netdev_settings,' \
DEBUG+='image,' \
DEBUG+='dhcp,' \
DEBUG+='efi_acpi,' \
DEBUG+='efi_autoboot,' \
DEBUG+='efi_block,' \
DEBUG+='efi_bofm,' \
DEBUG+='efi_debug,' \
@ljfranklin
ljfranklin / README.md
Created April 10, 2020 21:24
Setup snapcast

Install snapserver/snapclient.

Create /etc/systemd/system/snapfifo.service with contents:

[Unit]
Description=Pipes line-in to /tmp/snapfifo pipe
After=snapserver.service

[Service]
@ljfranklin
ljfranklin / SETUP-orange-pi.md
Created April 1, 2019 01:36
Setup instructions for Orange Pi Zero
Instance control/7eb695e4-cfb6-47ab-bbe2-8d77cd299e18
Exit Code 1
Stdout Running smoke tests...
Running binaries smoke/isolation_segments/isolation_segments.test
smoke/logging/logging.test
smoke/runtime/runtime.test
[1544651752] CF-Isolation-Segment-Smoke-Tests - 4 specs - 4 nodes
------------------------------
[2018-12-12 21:55:52.75 (UTC)]> cf api https://api.sys.pale-talon.gcp.releng.cf-app.com
## Bash Prog Intro Notes
http://tldp.org/HOWTO/Bash-Prog-Intro-HOWTO.html
http://tldp.org/LDP/abs/html/
http://mywiki.wooledge.org/BashPitfalls
## Intro:
I feel like writing bash is like building something with hot glue.
When try it for the first time, you'll probably make a big mess and burn yourself.
As you get a little more experienced, you can slap things together really quickly but the end result won't be very sturdy or pretty.
@ljfranklin
ljfranklin / add_key
Last active December 18, 2017 00:10
Script for OSX and Linux to add an SSH key and eject the disk
#!/usr/bin/env bash
set -e
HOURS=$1
green='\033[32m'
yellow='\033[33m'
nc='\033[0m'