Skip to content

Instantly share code, notes, and snippets.

View bluedragon1221's full-sized avatar
🌐
Immutable

Collin Williams bluedragon1221

🌐
Immutable
View GitHub Profile
@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
@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 / min-linux.md
Last active November 2, 2024 13:22
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 / 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
# 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 / kitty.conf
Created August 8, 2024 15:19
Kitty Config File
globinclude kitty.conf.d/**/*.conf
editor helix
# MISC
allow_remote_control yes
confirm_os_window_close 0
shell_integration disabled
hide_window_decorations yes
map ctrl+shift+r load_config_file
@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 / niri.kdl
Created August 8, 2024 15:32
niri configuration
output "eDP-1" {
scale 1.0
}
binds {
Mod+Shift+Q { quit skip-confirmation=true; }
Mod+F { maximize-column; }
Mod+Left { focus-column-left; }
Mod+right { focus-column-right; }