A local, tag-searchable notebook for shell commands, URLs, and other snippets. Data is stored in YAML at ~/.usefuldb/db.yaml.
Requires Ruby 3.0+.
gem install usefuldbFrom source:
bundle install
make installusefuldb help
usefuldb help searchFind entries whose tags match all given terms (use --any for OR):
usefuldb search git push
usefuldb search git commit --value-only
usefuldb search docker --jsonusefuldb list
usefuldb show 42
usefuldb count
usefuldb add --tags git,commit --value "git commit -m 'msg'" --description "Commit changes"
usefuldb add # interactive prompts
usefuldb remove 42
usefuldb remove --tags git,push --value "git push origin main"usefuldb export backup.yaml
usefuldb export backup.json --format json
usefuldb export -o - --format yaml # stdout
usefuldb import backup.yaml # merge (default)
usefuldb import backup.yaml --replace # overwrite
usefuldb import - # read from stdinusefuldb --db /path/to/db.yaml search git
usefuldb -q search git # quiet
usefuldb -v search git # verbose
usefuldb --versionmake build
make install
make cleanOr use the equivalent rake tasks (build, install, clean).
GPL-2.0-only. See COPYING.