Skip to content

Instantly share code, notes, and snippets.

View DonRichards's full-sized avatar

Don Richards DonRichards

  • Johns Hopkins University
  • Knoxville, TN
  • 01:18 (UTC -04:00)
  • X @highlander411
View GitHub Profile
#!/bin/bash
# Convert file from iso-8859-* to UTF8 if needed
#
# @link https://gist.github.com/lavoiesl/432827990d78c3764f50
if [[ $# -lt 1 ]]; then
echo "Usage: $0 input-file" >&2
exit 1
fi
@DonRichards
DonRichards / 0_reuse_code.js
Created December 19, 2016 22:02
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
#!/bin/sh
# Just copy and paste the lines below (all at once, it won't work line by line!)
# MAKE SURE YOU ARE HAPPY WITH WHAT IT DOES FIRST! THERE IS NO WARRANTY!
function abort {
echo "$1"
exit 1
}
set -e