Skip to content

Instantly share code, notes, and snippets.

Geoffrey Hing ghing

Block or report user

Report or block ghing

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
ghing /
Created Dec 6, 2019
Log of steps I took when installing Ubuntu 18.04 in such a way that I could use Dropbox after they dropped support for many Linux filesystems.

This is an excerpt from an install log notebook I kept when reinstalling my system that includes just the parts relevent to Dropbox.

WTF Dropbox

This whole OS installation was precipitated by the fact that Dropbox dropped support for all Linux filesystems except for plain ext4, so it wasn't working with ecryptfs and LVM and all the default ways Ubuntu sets up the filesystem.

However, Dropbox does work with full-disk encryption and an ext4 filesystem. The technology for full disk encryption under Linux is LUKS.

The key things I need to make sure happen when setting up my partitions and installing the system are:

ghing /
Created Oct 8, 2019
Installing landsat-util on MacOS with Python 3.7

Installing landsat-util on MacOS with Python 3.7

Last updated October 8, 2019.

Or don't

If you have expereince with Docker, running the Dockerized landsat-util is probably the easiest way to avoid all these dependency issues.

The problem

ghing / .bash_completion
Last active Jul 5, 2019
Make and Bash completion
View .bash_completion
# bash completion for GNU make
# This has been modified from the version in
# `/usr/local/etc/bash_completion.d/make` so that file paths are also
# autocompleted.
# To use, copy or append this to `~/.bash_completion`
have make || have gmake || have gnumake || have pmake &&
ghing /
Created Apr 4, 2011
Simple script to convert a HTTP post data copied from the Tamper Data Firefox extension into Python code that can be used in a script using the mechanize library.
We couldn’t find that file to show.
ghing / dailygraphics_markdown_links.js
Created Oct 10, 2017
Dailygraphics markdown links bookmarklet
View dailygraphics_markdown_links.js
ghing / .block
Last active Oct 6, 2017
West Virginia Referendum Results Choropleth Example
View .block
height: 800
while [[ $# -gt 1 ]]
case $key in
ghing /
Last active Jun 24, 2017
Filter tweets stored by to predefined list of screen names
# Read one line of ndjson from stdin
read -r line
if [ -z "$last_id_file" ]; then
ghing / cases.json
Last active Jun 3, 2016 in one JSON file, as of 2016-06-03T13:45:00
View cases.json
[{"incident_datetime": "2016-01-31T04:25:00", "url": "", "media": [{"url": "", "id": "165083122", "title": "Video Clip"}, {"url": "", "id": "165083123", "title": "Video Clip"}, {"url": "", "id": "165083121", "title": "Video Clip"}, {"url": "", "id": "262611603", "title": "Audio Clip"}, {"url": "", "id": "262611600", "title": "Audio Clip"}, {"url": "
You can’t perform that action at this time.