Skip to content

Instantly share code, notes, and snippets.

@oddlama
oddlama / .zshrc
Created April 29, 2021 19:30
oddlama's .zshrc
# REQUIRES (execute as root):
# umask 022
# git clone https://github.com/romkatv/powerlevel10k /usr/share/zsh/repos/romkatv/powerlevel10k
# git clone https://github.com/Aloxaf/fzf-tab /usr/share/zsh/repos/Aloxaf/fzf-tab
# git clone https://github.com/zdharma/fast-syntax-highlighting /usr/share/zsh/repos/zdharma/fast-syntax-highlighting
source /usr/share/zsh/repos/romkatv/powerlevel10k/powerlevel10k.zsh-theme
source /usr/share/zsh/repos/romkatv/powerlevel10k/config/p10k-lean-8colors.zsh
# Use emacs-like key bindings by default:
@oddlama
oddlama / .zprofile
Created April 29, 2021 19:32
oddlama's .zprofile
# Environment
export PATH="$HOME/.local/share/npm-global/bin:$PATH"
# GPG as ssh agent
[[ -z "$SSH_AUTH_SOCK" ]] \
&& export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)"
export GPG_TTY="$(tty)"
@oddlama
oddlama / kitty.conf
Created April 29, 2021 19:37
oddlama's kitty.conf
# Set font family and size
font_family FiraCode Nerd Font
bold_font auto
italic_font auto
bold_italic_font auto
font_size 10.0
# Use xterm-256color because copying terminfo-kitty is painful.
term xterm-256color
@oddlama
oddlama / init.vim
Last active May 3, 2021 17:58
oddlama's neovim config
" ╓────────────────────────────────────────────────────────────────────────────────╖
" ║ ║
" ║ ▒█████ ▓█████▄ ▓█████▄ ██▓ ▄▄▄ ███▄ ▄███▓ ▄▄▄ ▄█ ▒██████ ║
" ║ ▒██▒ ██▒▒██▀ ██▌▒██▀ ██▌▓██▒ ▒████▄ ▓██▒▀█▀ ██▒▒████▄ █ ▒██ ║
" ║ ▒██░ ██▒░██ █▌░██ █▌▒██░ ▒██ ▀█▄ ▓██ ▓██░▒██ ▀█▄ ▓██▄ ║
" ║ ▒██ ██░░▓█▄ ▌░▓█▄ ▌▒██░ ░██▄▄▄▄██ ▒██ ▒██ ░██▄▄▄▄██ ▒██▒ ║
" ║ ████▓▒░░▒████▓ ░▒████▓ ░██████▒▓█ ▓██▒▒██▒ ░██▒ ▓█ ▓██▒▒██████▒ ║
" ║ ║
" ║ ███▄ █ ▓█████ ▒█████ ██▒ █▓ ██▓ ███▄ ▄███▓ ║
" ║ ██ ▀█ █ ▓█ ▀ ▒██▒ ██▒▓██░ █▒▓██▒▓██▒▀█▀ ██░ ║
@oddlama
oddlama / git-resign-history.sh
Created November 25, 2021 00:44
Resign git history and tags while preserving (or faking) the GPG signature date.
#!/bin/bash
# This is free and unencumbered software released into the public domain.
# This script (re)signs all commits in a git repository, while preserving
# commit dates, even in the gpg signature. If a commit didn't have a signature,
# the signature time is faked to be 3-15 seconds after the commit.
#
# usage:
#
# ./git-resign-history.sh
#
@oddlama
oddlama / wired.ron
Last active October 14, 2023 22:07
oddlama's base16 wired theme
// oddlama's base16 wired theme (rendered with decay-dark)
// Generated with: https://github.com/oddlama/nix-config/blob/main/users/myuser/graphical/wired-notify.nix
(
debug: false,
history_length: 60,
layout_blocks: [
(
hook: Hook (parent_anchor: TR, self_anchor: TR),
name: "general_root",
offset: Vec2 (x: -50, y: 50),