1p can now be found at
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 | |
while [ $# -gt 0 ]; do | |
jq -nc --arg k "$1" --arg v "$2" '{($k): (try ($v|fromjson) catch $v)}' | |
shift; shift | |
done | jq -sc add |
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
" serial.vim | |
" Noel Cower | |
" | |
" Plugin to insert serial strings based on a local timestamp. | |
" | |
" For example: | |
" Serial 20181227100403 | |
" | |
" The above is this file's serial, inserted using :SerialUpdate. It can | |
" be updated with subsequent calls to :SerialUpdate. You can create |
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 | |
# FIXME: Names with non-ASCII characters can throw off alignment of | |
# columns. | |
usage() { | |
cat <<HELPTXT 1>&2 | |
git-wordiness [OPTIONS] | |
List general sums about commit messages (i.e., wc output). |
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 | |
# Copyright 2018 Noel Cower | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to deal | |
# in the Software without restriction, including without limitation the rights | |
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
# copies of the Software, and to permit persons to whom the Software is | |
# furnished to do so, subject to the following conditions: | |
# |
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 | |
case "$1" in | |
-h|--help) | |
echo 'Usage: jsonkv [-h|--help] [--] KEY VALUE...' 1>&2 | |
exit 2 | |
;; | |
--) | |
shift | |
;; | |
esac |
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 | |
set -e | |
usage() { | |
echo 'Usage: gce-inventory [--help|--list|--host HOSTNAME]' 1>&2 | |
} | |
LIST_MODE=true | |
LOOKUP_HOST= |
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 | |
prog="$(basename "$0")" | |
## Defaults | |
# : ${FUP_BUCKET:=YOUR-BUCKET} | |
# : ${FUP_URL_PREFIX:=https://CUSTOM-URL/} | |
: ${FUP_PAR_UPLOAD_THRESHOLD:=100M} | |
: ${FUP_URL_PREFIX:=https://storage.googleapis.com/${FUP_BUCKET}/} |
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
// This is an example message reader/writer with length prefixes and digests | |
// (in the example's case, using hmac-sha1) to try to confirm that the entire | |
// correct message was read. | |
package main | |
import ( | |
"bytes" | |
"crypto/hmac" | |
"crypto/sha1" |
I hereby claim:
- I am nilium on github.
- I am nilium (https://keybase.io/nilium) on keybase.
- I have a public key ASA9ZYQ-ovUYaqBiWNB9MPYWyy-cDcIQZym8orvks3qGvAo
To claim this, I am signing this object: