Skip to content

Instantly share code, notes, and snippets.

View prurigro's full-sized avatar

Kevin MacMartin prurigro

  • WilliamsNY
  • Ottawa, Canada
View GitHub Profile
@prurigro
prurigro / bitprice.sh
Last active August 29, 2015 14:16
Bitcoin price grabber
#!/usr/bin/env bash
#
# bitprice - bitcoin price grabber
#
# Version 1.2
#
# By Kevin MacMartin ([email protected])
# Released under the MIT license
#
@prurigro
prurigro / browser-remote-watch.sh
Last active August 29, 2015 14:16
Reload the webpage in Firefox when the source file changes
#!/usr/bin/env bash
#
# browser-remote-watch: reload the page when the source changes
#
# Version 1.1
#
# Written by Kevin MacMartin ([email protected])
# Released under the MIT license
#
@prurigro
prurigro / vnotes.sh
Created March 3, 2015 13:58
Wrapper script for the Vim Notes plugin
#!/usr/bin/env bash
#
# VimNotes: Wrapper script for the Vim Notes plugin
#
# Version: 1.0
#
# Written by Kevin MacMartin <[email protected]>
# Released under the MIT license
#
@prurigro
prurigro / mkaurlive.sh
Last active August 29, 2015 14:17
Upload PKGBUILD to the AUR using burp
#!/usr/bin/env bash
user=username
# Load category from .cat, or fail if it can't be found
[[ ! -f '.cat' ]] && {
printf '%s\n' 'Error: could not find .cat' >&2
exit 1
}
category="$(<.cat)"
@prurigro
prurigro / b64.sh
Created May 7, 2015 13:49
Wrapper to simplify base64 usage
#!/usr/bin/env bash
script_name=$(egrep -o "[^\/]*$" <<< "$0")
function help {
printf '%s\n' "Usage:"
printf '%s\n' " $script_name e input output → encode to output"
printf '%s\n' " $script_name e input → encode to stdout"
printf '%s\n' " $script_name d input output → decode to output"
printf '%s\n' " $script_name d input → decode to stdout"