Skip to content

Instantly share code, notes, and snippets.

View bluedragon1221's full-sized avatar
🌪️
Ephemeral

Collin Williams bluedragon1221

🌪️
Ephemeral
View GitHub Profile

Arch Install Guide

This is my guide to installing Arch Linux. In my eyes, this is the minimum-viable setup necessary to boot into a solid base without headaches. Where the Arch Wiki's install guide tends to cover every edge case and give you multiple options, this guide is opinionated and ignores many edge cases. In the case where the guide breaks for you, refer back to the Arch Wiki for help.

Get Arch Linux

You can download the Arch Linux ISO image from their website. If you're doing this from a Linux system, you can use this command to write to the drive, assuming the usb drive is /dev/sdb, this would be your command:

sudo dd if=~/Downloads/archlinux-*-x86_64.iso of=/dev/sdb

Next, boot from your USB drive. It's different for every computer, but in general, you will press a key at boot, and it will give you a boot device menu, from which you will select your USB drive.

@bluedragon1221
bluedragon1221 / file-picker.md
Created August 8, 2024 15:30
File picker thing with kitty splits, helix, and yazi

You'll need to install yazi (terminal file browser), and jq (for json queries)

create a directory at ~/.config/yazi/filetree_config. This is where we'll store the configs for this file picker so it doens't mess with the main config.

in filetree_config/config.toml:

[manager]
ratio = [ 0, 8, 0 ]
@bluedragon1221
bluedragon1221 / config.toml
Last active June 19, 2024 00:57
My helix configuration
theme = "tokyonight"
[editor]
# gutters = ["diagnostics", "spacer", "line-numbers", "spacer", "diff"]
gutters = ["diff", "diagnostics", "line-numbers", "spacer", "spacer"]
cursorline = true
[editor.lsp]
display-inlay-hints = true
@bluedragon1221
bluedragon1221 / min-linux.md
Last active April 13, 2025 19:21
Create a minimal linux from scratch with initramfs and busybox.

https://www.youtube.com/watch?v=QlzoegSuIzg

The Three Parts

To build a minimal linux distro, we need three parts:

  1. The Kernel
  2. Userspace (busybox)
  3. Bootloader (syslinux)

When the system boots, it loads the kernel, which loads busybox.

@bluedragon1221
bluedragon1221 / dna.py
Created October 22, 2023 20:31
super over-engineered library for creating DNA strands
class Base:
def __init__(self, base):
assert base in ["A", "T", "G", "C"], "Base must be A, T, G, or C"
self.__base: str = base
def compliment(self) -> "Base":
sup = {
"G": "C",
"C": "G",
"A": "T",
@bluedragon1221
bluedragon1221 / aliases.bash
Created October 14, 2023 20:47
My aliasrc file
#!/bin/bash
# doas
alias su="gum confirm 'root?' && sudo -s || echo 'never mind'"
# exa
alias ls="exa -a1 --icons --group-directories-first"
alias tree="exa -T"
# cd