I hereby claim:
- I am dmuth on github.
- I am dmuth (https://keybase.io/dmuth) on keybase.
- I have a public key ASA3KPZ_mYWvzsYrN2KCqpRjY30CPUy1ZCuc_3CWhB1yIwo
To claim this, I am signing this object:
{{/* | |
I'm using Hugo to build the front end for https://github.com/dmuth/peco-outage-status | |
As part of that effort, I'd like to be able to have separate Javascript files thare combined into | |
a single Javascript file when I build the site. | |
The good news is that the Concat function in Hugo lets me do this. The bad news is that the key | |
is the filename, and the contents are cached. This does not lend itself well to rapid development. | |
So the trick was to create a filename based on the date so that each time a file is edited and Hugo | |
re-processes its files, a new filename is generated, which results in a cache miss in Concat, |
#!/bin/bash | |
# | |
# This script is to test specific Autobahn jumphosts. | |
# | |
# Errors are fatal | |
set -e | |
#set -x # Debugging | |
#!/bin/bash | |
# | |
# This script is to test specific Autobahn jumphosts. | |
# | |
# Errors are fatal | |
set -e | |
# |
#!/bin/bash | |
# | |
# This script will convert JPG and PNG files to HEIC format recursively. | |
# | |
# Errors are fatal | |
set -e | |
GO="" | |
DELETE="" |
#!/bin/bash | |
# | |
# This script should run in a multipass VM. | |
# Take the hosts file that was written at creation and append it to /etc/hosts. | |
# This way, the hosts that we created can talk to each other by hostname. | |
# | |
# Errors are fatal | |
set -e |
#!/usr/bin/env python3 | |
# | |
# This script will mimic tail -f functionality in Python. | |
# It will correctly handle files that haven't been created yet, as well as files that are removed. | |
# | |
# It is based heavily on an example I found at: | |
# https://newbedev.com/how-can-i-tail-a-log-file-in-python | |
# | |
# However, I did some optimization. :-) | |
# |
#!/bin/bash | |
# | |
# Download a copy of a website, with (hopefully) working links, | |
# and tar it up to a single file. | |
# | |
# Errors are fatal | |
set -e |
#!/bin/bash | |
# | |
# Download a copy of Anthrocon's website, with (hopefully) working links, | |
# and tar it up to a single file. | |
# | |
# Errors are fatal | |
set -e |
I hereby claim:
To claim this, I am signing this object:
#!/bin/bash | |
# | |
# This script can be used to undelete objects from an S3 bucket. | |
# When run, it will print out a list of AWS commands to undelete files, which you | |
# can then pipe into Bash. | |
# | |
# e.g.: s3-undelete.sh <options> > files.txt; cat files.txt | bash | |
# | |
# You will need the AWS CLI tool from https://aws.amazon.com/cli/ in order to run this script. | |
# |