Skip to content

Instantly share code, notes, and snippets.

View bluedragon1221's full-sized avatar
🌐
Immutable

Collin Williams bluedragon1221

🌐
Immutable
View GitHub Profile
# Generated by Powerlevel10k configuration wizard on 2024-06-15 at 17:05 CDT.
# Based on romkatv/powerlevel10k/config/p10k-lean-8colors.zsh.
# Wizard options: nerdfont-v3 + powerline, small icons, unicode, lean_8colors, 2 lines,
# disconnected, left frame, white-ornaments, sparse, few icons, concise,
# transient_prompt, instant_prompt=verbose.
# Type `p10k configure` to generate another config.
#
# Config for Powerlevel10k with 8-color lean prompt style. Type `p10k configure` to generate
# your own config based on it.
#
@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
Created January 17, 2024 17:57
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