Skip to content

Instantly share code, notes, and snippets.

View dshnkao's full-sized avatar

Dennis Kao dshnkao

View GitHub Profile
@dshnkao
dshnkao / umenu
Last active September 20, 2024 16:30
open firefox history using fzf or rofi
#!/usr/bin/env bash
# Relying on rofi / fzf is a bit limited
# e.g
# umenu "places.sqlite" "rofi -dmenu --no-sort"
# umenu "places.sqlite" "fzf --no-sort --exact"
DB_PATH=${1:?ARG 1: path to firefox database}
@dshnkao
dshnkao / passf
Created November 20, 2017 15:29
use fzf for pass
#!/usr/bin/env bash
# use fzf to find pass .gpg
find ~/.password-store/* -type f | \
grep -E '\.gpg$' | \
sed -e "s/.*password-store\///" | \
sed -e "s/\.gpg$//" | \
fzf
@dshnkao
dshnkao / nixos.md
Created November 18, 2017 02:54 — forked from martijnvermaat/nixos.md
Installation of NixOS with encrypted root