Some Python and shell scripts to automate frequent tasks
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
khaeru
old
.gitignore
README.md
bib
biogeme.sh
biosim.sh
ceic
crem
crem_report
dedupe
disqus-export
eppa5
git-all
gk-query
gk-query.py
gnome-terminal-tabs
gpg-edit
gpg-sqlite
imgdupe
install-basemap
install-gams-api
install-latexmk
kdx
kmbt-rename
maildupe
mailman-scrape
new-machine
packages
pim
rclone-push
reas_hdf5.py
ssh-try
strip-replies
svante_jupyter_job.sh
svante_jupyter_setup.sh
svante_jupyter_tunnel.sh
task-dedupe
task-notify
toggle-md0
xps13

README.md

Shell and Python scripts

Copyright © 2010–2018 Paul Natsuo Kishimoto mail@paul.kishimoto.name

Made available under the GNU General Public License v3.0.

To use these scripts, clone the repository:

$ git clone git@github.com:khaeru/scripts.git $HOME/vc/scripts

Add the directory to your ~/.profile or ~/.bash_profile with a line like:

export PATH=$HOME/vc/scripts:$PATH

Summary

Shell

Most of these use a #!/bin/sh line, meaning that, on Ubuntu, they run under dash, not bash. Read more: 1, 2.

  • biogeme.sh, biosim.sh — wrappers for Biogeme.
  • gpg-edit — like sudoedit, but for GPG-encrypted files.
  • gpg-sqlite — like gpg-edit, but for SQLite databases.
  • install-gams-api — install the GAMS APIs.
  • install-latexmk — install the latest version of Latexmk from CTAN.
  • mailman-scrape
  • 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.

Python

  • bib — BibTeX bibliography management. See bib --help.
  • ceic — process data exported from the CEIC database.
  • disqus-export
  • git-all — locate directories under $HOME which 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 pim --help.
  • rclone-push — upload files using rclone and a file .rclone-push.yaml in 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.

Mixed

  • gk-query, 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_job.sh, svante_jupyter_setup.sh, svante_jupyter_tunnel.sh — run a Jupyter kernel gateway using Slurm on the MIT svante cluster.

old/: unused scripts—most of which still work!