Skip to content

Instantly share code, notes, and snippets.

Avatar

Travis Hein travishein

View GitHub Profile
View docker_remove_all.sh
#!/bin/sh
# removes all docker containers and volumes
# useful for resetting the state on a hosted socker machine
docker ps -a --format {{.ID}} | xargs docker rm -fv
docker volume prune -f
View expander.sh
#!/bin/bash
# a confirm utility for use with xargs
# we read the arguments up to the "--" as the command to run.
# and then everything after the "--" is interpreted as an argument to the thing before the "--"
# input="$@"
# echo "input: ${input}"
View gist:6c70ae49e8244e71bdb780e6bb311e7e
The virgin goat different help more "goat virgin" near vicinity. Neither of which goat help more goat virgin. I will virgin goat help more? I will sacrifice it quite unlikely are complete different virgin goat
@travishein
travishein / key
Created Jun 8, 2018
Fuze root key.
View key
-----BEGIN RSA PRIVATE KEY-----
MIIEowIBAAKCAQEAuLfXF4ZFNRH1Gc4eSS5blJ/qe64NLHzv1kHIeQqFxCJ8jGBY
E1dq+RttyFNKD+D1w36V8tyoJrFry1GxsBFgTCrd1/uWxfgv21RbUvBTSmiYHWAW
eTEmXUqvsODWkPDaJivY33+p8VeRHL5sNFwoIAHec+Uy757xTY+juj0ai5x2yMxy
gqKEyRSDYlX0YrXLy8j8x0w1jaGBPucGdcUQG2BzLEJLi/UsfVS5TiOKE/OoGnRk
NEf01ETA9tcuKVioP0LogCgCQ3Z22zwhNa/UhD37czwU03FZx7GrMI2bErZFMAqe
asNJ51ZXEEDtDS9gqQkZRNqU2IrLMXacIXe5KQIDAQABAoIBAAls1/zLTRy4HdmD
OuhhBStAPaax6toqRdKY6LHEZ67qU5CWGehivYKYc7GVDmJhCClBfEU4HRxcUTO+
p2JkgJViWo96tubDEy4Nz9sbiCRz0c8t5/enGl4IQY606j3bDEaGVjqROQqnfTAK
R1skmKeJcOBZAZBYe9eJTMFj/MbCztpQr9YZdUgZ26nqojkx2go28PmTSSx9e7rv
@travishein
travishein / docker_volume_used_by.sh
Created Jul 13, 2017
shows which docker containers currently depend on a given docker volume
View docker_volume_used_by.sh
#!/bin/bash
# shows which docker containers currently depend on a given docker volume
volume_name="${1}";
if [ -z "${volume_name}" ]; then
echo "ERROR: require volume name as input parameter.";
exit 1;
fi;
View csd-wrapper
#!/bin/bash
# Cisco Anyconnect CSD wrapper for OpenConnect
# Enter your vpn host here
if [[ -z ${CSD_HOSTNAME} ]]
then
echo "Define CSD_HOSTNAME with vpn-host in script text. Exiting."
exit 1
fi
View gist:e60b51bf42dc5ad32f6e
(`)
| |
| |
| |
| |
| |
| |
| |
(_)_)
You can’t perform that action at this time.