Skip to content

Instantly share code, notes, and snippets.

View Ex-32's full-sized avatar

Jenna Fligor Ex-32

  • University of Illinois Urbana-Champaign
  • 19:19 (UTC -05:00)
View GitHub Profile
@Ex-32
Ex-32 / brainfuck.asm
Last active March 13, 2024 02:42
A brainfuck interpreter written in x86_64 assembly for linux.
; this file is licensed under the MIT license, copyright 2024 Jenna Fligor,
; see the bottom of the file for the full text.
;
; build instructions:
; nasm -felf64 brainfuck.asm
; ld brainfuck.o -o brainfuck
bits 64
global _start
extern end
@Ex-32
Ex-32 / starship.toml
Last active January 7, 2024 00:14
my starship.rs config
add_newline = false
continuation_prompt = "▶▶ "
format = "$nix_shell$username$hostname$jobs$directory$fossil_branch$git_branch$git_commit$git_state$git_metrics$git_status$hg_branch$fill$shlvl$singularity$kubernetes$vcsh$pijul_channel$docker_context$package$c$cmake$cobol$daml$dart$deno$dotnet$elixir$elm$erlang$fennel$golang$guix_shell$haskell$haxe$helm$java$julia$kotlin$gradle$lua$nim$nodejs$ocaml$opa$perl$php$pulumi$purescript$python$raku$rlang$red$ruby$scala$swift$terraform$vlang$vagrant$zig$buf$conda$meson$spack$aws$gcloud$openstack$azure$env_var$crystal$container$memory_usage$battery$sudo$cmd_duration$time$shell$line_break$os$character"
palette = "catppuccin-mocha"
right_format = "$status"
[aws]
format = "[$symbol($profile)(($region))($duration )]($style) "
symbol = " "
@Ex-32
Ex-32 / snapper_backup.py
Last active September 30, 2023 02:16
a quick and dirty script designed to be placed on a btrfs backup disk and send snapper-made snapshots to the backup disk
#!/usr/bin/env python3
import os
from os.path import join as p_join
import shutil
import sys
import json
import subprocess
import platform
def mkdir_p(path: str):
@Ex-32
Ex-32 / xzbin.sh
Last active March 6, 2024 18:04
Linux Transparent Binary Compressor
#!/bin/sh
# This file is licensed under the MIT license,
# see the bottom of the file for the full text.
#
# script dependencies: sed, xz-utils, gcc/clang
# generated binary dependencies: xz-util
# *note* if using gcc version < 12, every invocation of `cc -Oz` needs to be
# changed to `cc -Os`
#
# this script takes an executable and compresses it using `xz` into a binary