Skip to content

Instantly share code, notes, and snippets.

View memchr's full-sized avatar

memchr

View GitHub Profile
@memchr
memchr / mkvol
Last active September 9, 2023 05:42
btrfs subvolume creation and rebuild tool
#!/usr/bin/env python
import getopt
import shutil
import array
import sys
import os
import typing
from pathlib import Path
import subprocess
@memchr
memchr / import_env
Created August 28, 2023 18:43
import_env
#!/usr/bin/env bash
set -e
[[ -n $HYPRLAND_DEBUG_CONF ]] && exit 0
USAGE="\
Import environment variables
Usgae: $0 <command>
Commands:
@memchr
memchr / git-id
Last active August 18, 2023 15:36
#!/usr/bin/bash
set -e
source $HOME/.local/lib/bash/blib.sh
load color message
colorize
msg_style=1
DATA_DIR="${XDG_DATA_HOME:-$HOME/.local/share}/git-id"
IDENTITY_DATABASE="${DATA_DIR}/identities.json"