Shell and Python scripts
Copyright © 2010–2018 Paul Natsuo Kishimoto firstname.lastname@example.org
Made available under the GNU General Public License v3.0.
To use these scripts, clone the repository:
$ git clone email@example.com:khaeru/scripts.git $HOME/vc/scripts
Add the directory to your
~/.bash_profile with a line like:
biosim.sh— wrappers for Biogeme.
sudoedit, but for GPG-encrypted files.
gpg-edit, but for SQLite databases.
install-gams-api— install the GAMS APIs.
install-latexmk— install the latest version of Latexmk from CTAN.
new-machine— configure a new Ubuntu machine.
packages— generate lists of apt and pip packages.
ssh-try HOST1 HOST2— SSH to the first host that connects successfully.
bib— BibTeX bibliography management. See
ceic— process data exported from the CEIC database.
git-all— locate directories under
$HOMEwhich are git-controlled and have uncommitted changes.
imgdupe— find image files in a set of directories with matching names and appearance, but possibly different EXIF metadata or size.
kdx— manage Kindle DX collections according to directory structure.
maildupe— choose duplicate files to save/remove from a Maildir mailbox, for clumsy users of OfflineIMAP.
pim— various functions for personal information management. See
rclone-push— upload files using rclone and a file
.rclone-push.yamlin the current directory.
reas_hdf5.py— convert the Regional Emissions inventory in ASia (REAS) v2.1 into a HDF5 file. Broken.
strip-replies— a script for use with the Claws Mail Python plugin to tidy reply messages by removing signatures and blocks of blank lines.
task-dedupe— snippets to assist with removing duplicate tasks in Taskwarrior.
task-notify— similar to https://github.com/flickerfly/taskwarrior-notifications, but in Python, and also reports active time from Taskwarrior.
toggle-md0— in Ubuntu 15.10, gnome-disk-utility removed md RAID support; use this with a .desktop file to have a GUI way of starting/stopping an array.
xps13— tweaks for Ubuntu on an old (~2012) Dell XPS 13. Most of these are no longer needed.
gk-query.py— query the GNOME Keyring for passphrases associated with a particular search string, from the command-line. Works headlessly (i.e. without an active GNOME session).
svante_jupyter_tunnel.sh— run a Jupyter kernel gateway using Slurm on the MIT svante cluster.
old/: unused scripts—most of which still work!
dreamhost-dns.py— dynamic DNS cron script for DreamHost.
gedit-rubber— LaTeX compile script using rubber, for the gedit plugin 'External Tools'.
h5enum.py— use xarray instead.
moin-migrate— merge MoinMoin data from multiple installations.
nm-state— retcode 0 or 1 according to whether
nm-toolsays there is a connection active.
rb-alarm.sh— play Rhythmbox from a cron script.
reflib-scavenge— for Referencer .reflib databases.
rise-and-shine.ui— alarm clock using Music Player Daemon (MPD).
synergy-kd— extreme laziness using Synergy.
tomboy2zim— convert Tomboy XML notes to Zim markup.