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
ghing / dropbox_on_ubuntu.md
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.
View dropbox_on_ubuntu.md

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
ghing / README.md
Created Oct 8, 2019
Installing landsat-util on MacOS with Python 3.7
View README.md

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
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 &&
_make()
{
@ghing
ghing / tamper2py.py
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
ghing / dailygraphics_markdown_links.js
Created Oct 10, 2017
Dailygraphics markdown links bookmarklet
View dailygraphics_markdown_links.js
@ghing
ghing / .block
Last active Oct 6, 2017
West Virginia Referendum Results Choropleth Example
View .block
height: 800
View export_appalachia.sh
#!/bin/bash
latest_date_file=.last-statement-date
while [[ $# -gt 1 ]]
do
key="$1"
case $key in
-s|--since)
@ghing
ghing / capture_id.sh
Last active Jun 24, 2017
Filter tweets stored by https://github.com/ghing/congressional-tweets to predefined list of screen names
View capture_id.sh
#!/bin/bash
# Read one line of ndjson from stdin
read -r line
last_id_file=$1
if [ -z "$last_id_file" ]; then
last_id_file=.last-tweet-id
fi
@ghing
ghing / cases.json
Last active Jun 3, 2016
portal.iprachicago.org in one JSON file, as of 2016-06-03T13:45:00
View cases.json
[{"incident_datetime": "2016-01-31T04:25:00", "url": "http://portal.iprachicago.org/1079080-2/", "media": [{"url": "https://player.vimeo.com/video/165083122", "id": "165083122", "title": "Video Clip"}, {"url": "https://player.vimeo.com/video/165083123", "id": "165083123", "title": "Video Clip"}, {"url": "https://player.vimeo.com/video/165083121", "id": "165083121", "title": "Video Clip"}, {"url": "https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/262611603&auto_play=false&hide_related=false&show_comments=true&show_user=true&show_reposts=false&visual=true", "id": "262611603", "title": "Audio Clip"}, {"url": "https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/262611600&auto_play=false&hide_related=false&show_comments=true&show_user=true&show_reposts=false&visual=true", "id": "262611600", "title": "Audio Clip"}, {"url": "https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/262464114&auto_play=fals
You can’t perform that action at this time.