Some Python and shell scripts to automate frequent tasks
Python Shell
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
khaeru
old
.gitignore
README.md
bib
biogeme.sh
biosim.sh
ceic
crem
crem_report
db-push
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
reas_hdf5.py
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–2017 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.
  • git-all — locate directories under $HOME which are git-controlled and have uncommitted changes.
  • 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
  • packages — generate lists of apt and pip packages.
  • new-machine — configure a new Ubuntu machine.

Python

  • bib — BibTeX bibliography management.
  • ceic — process data exported from the CEIC database.
  • db-push — upload files using the Dropbox Python SDK.
  • disqus-export
  • 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.
  • reas_hdf5.py — convert the Regional Emissions inventory in ASia (REAS) v2.1 into a HDF5 file. Broken.
  • task-dedupe — snippets to assist with removing duplicate tasks in Taskwarrior.
  • task-notify — shameless lift from https://github.com/flickerfly/taskwarrior-notifications.
  • 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