These scripts use fzf
and sqlite
to efficiently query your firefox history and bookmarks.
This is heavily inspired by a post from the creator of fzf
: https://junegunn.kr/2015/04/browsing-chrome-history-with-fzf/.
fzf
allows you to select multiple items and the results returned will be the URLs.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <Adafruit_MotorShield.h> | |
#include <stdarg.h> | |
/* Serial Port Print Helpers for string formatting */ | |
#define SERIAL_PRINTF_MAX_BUFF 256 | |
void serialPrintf(const char *fmt, ...); | |
void serialPrintf(const char *fmt, ...) { | |
char buff[SERIAL_PRINTF_MAX_BUFF]; | |
va_list pargs; | |
va_start(pargs, fmt); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# vim: sw=4 ts=4 et tw=100 cc=+1 | |
# | |
#################################################################################################### | |
# DESCRIPTION # | |
#################################################################################################### | |
# | |
# Decompressor/compressor for files in Mozilla's "mozLz4" format. Firefox uses this file format to | |
# compress e. g. bookmark backups (*.jsonlz4). | |
# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -euo pipefail | |
function exit_error() { | |
echo "${1}"; | |
exit 1 | |
} | |
git diff --quiet || exit_error "Working tree not clean, aborting" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
read -r -d '' USAGE <<- EOM | |
Dumps an lightroom catalogue to an sql file, then recreates a new one from it. | |
Idea taken from: http://mein-lightroom-tag.blogspot.com/2014/02/einen-katalog-reparieren-welchen.html | |
Example: | |
$ fix-lightroom XYZ.lrcat |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
CURRENT_DIR=$(pwd) | |
for f in .bashrc \ | |
.bash_profile \ | |
.gitconfig \ | |
.gitignore_global \ | |
.git-completion.bash \ | |
.vimrc |