Skip to content

Instantly share code, notes, and snippets.

@oddlama
oddlama / git-resign-history.sh
Created Nov 25, 2021
Resign git history and tags while preserving (or faking) the GPG signature date.
View git-resign-history.sh
#!/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 / kitty.conf
Created Apr 29, 2021
oddlama's kitty.conf
View 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 / .zprofile
Created Apr 29, 2021
oddlama's .zprofile
View .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 / .zshrc
Created Apr 29, 2021
oddlama's .zshrc
View .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 / init.vim
Last active May 3, 2021
oddlama's neovim config
View init.vim
" ╓────────────────────────────────────────────────────────────────────────────────╖
" ║ ║
" ║ ▒█████ ▓█████▄ ▓█████▄ ██▓ ▄▄▄ ███▄ ▄███▓ ▄▄▄ ▄█ ▒██████ ║
" ║ ▒██▒ ██▒▒██▀ ██▌▒██▀ ██▌▓██▒ ▒████▄ ▓██▒▀█▀ ██▒▒████▄ █ ▒██ ║
" ║ ▒██░ ██▒░██ █▌░██ █▌▒██░ ▒██ ▀█▄ ▓██ ▓██░▒██ ▀█▄ ▓██▄ ║
" ║ ▒██ ██░░▓█▄ ▌░▓█▄ ▌▒██░ ░██▄▄▄▄██ ▒██ ▒██ ░██▄▄▄▄██ ▒██▒ ║
" ║ ████▓▒░░▒████▓ ░▒████▓ ░██████▒▓█ ▓██▒▒██▒ ░██▒ ▓█ ▓██▒▒██████▒ ║
" ║ ║
" ║ ███▄ █ ▓█████ ▒█████ ██▒ █▓ ██▓ ███▄ ▄███▓ ║
" ║ ██ ▀█ █ ▓█ ▀ ▒██▒ ██▒▓██░ █▒▓██▒▓██▒▀█▀ ██░ ║