Skip to content

Instantly share code, notes, and snippets.

💭
White Mage

Douglas Muth dmuth

💭
White Mage
Block or report user

Report or block dmuth

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@dmuth
dmuth / s3-undelete.sh
Created Dec 11, 2016
Script to undelete files from Amazon S3
View s3-undelete.sh
#!/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.
#
@dmuth
dmuth / backup-website
Created Jan 26, 2019
A shell script to back up an entire website with wget
View backup-website
#!/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
You can’t perform that action at this time.