This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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)" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# | |
# bitprice - bitcoin price grabber | |
# | |
# Version 1.2 | |
# | |
# By Kevin MacMartin ([email protected]) | |
# Released under the MIT license | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env node | |
/* | |
* json2weblist: convert a heading in json to an HTML list, then tidy it up | |
* Version: 1.0.1 | |
* | |
* Requirements: | |
* Node.js: http://nodejs.org/ | |
* Tidy-HTML: http://tidy.sourceforge.net/ | |
* * Experimental version with HTML5 support : https://github.com/w3c/tidy-html5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# | |
# archroot | |
# An overlayfs chroot management script for deployable arch build environments | |
# | |
# Version 1.18 | |
# | |
# Written by Kevin MacMartin | |
# Released under the MIT license |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# | |
# Contact: A pyCardDAV toolset wrapper for improved user experience on the command-line | |
# | |
# Version 1.3.1 | |
# | |
# Written by Kevin MacMartin ([email protected]) | |
# Released under the MIT license | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# | |
# CodeGet: A zbar wrapper utility to read barcodes from various sources | |
# | |
# Version: 1.4.8 | |
# | |
# Written by Kevin MacMartin and released under the MIT license | |
# | |
# Requirements: | |
# base64 | converts to and from base64 encoding |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
MIRRORLIST="/etc/pacman.d/archassault-mirrorlist" | |
# if mirrorlist.pacnew exists, copy to mirrorlist.complete | |
[[ -f "${MIRRORLIST}.pacnew" ]] && mv "${MIRRORLIST}.pacnew" "${MIRRORLIST}.complete" && sed -i 's/^#//' "${MIRRORLIST}.complete" | |
# if mirrorlist.complete is missing, copy mirrorlist to mirrorlist.complete | |
if [ ! -f "${MIRRORLIST}.complete" ]; then | |
[[ -f "$MIRRORLIST" ]] \ |
NewerOlder