Skip to content

Instantly share code, notes, and snippets.

View travishein's full-sized avatar

Travis Hein travishein

View GitHub Profile
@travishein
travishein / docker-compose-compose output
Last active April 28, 2021 03:20
docker-compose-compose : Yo dawg, i heard you like to use docker-compose to compose your compose files
$>./scripts/docker-compose-compose
INFO:root:Dependencies file: /home/thein/Documents/stack/docker-compose-files/v2/dependencies.json
INFO:root:Found stack: {'name': 'butler', 'render_file': 'butler_stack.yml', 'services': ['butler']}
INFO:root:Found stack: {'name': 'portal-frontend', 'description': 'The Fucking Portal', 'render_file': 'portal_stack.yml', 'services': ['portal-frontend']}
INFO:root:Found stack: {'name': 'foundry', 'render_file': 'foundry_stack.yml', 'services': ['foundry']}
INFO:root:Found stack: {'name': 'mint', 'render_file': 'mint_stack.yml', 'services': ['mint']}
INFO:root:Found stack: {'name': 'scribe', 'render_file': 'scribe_stack.yml', 'services': ['scribe']}
INFO:root:Found service: {'name': 'aqa-reporting-site', 'depends': []}
INFO:root:Found service: {'name': 'billing', 'depends': ['core', 'portal-mysql']}
INFO:root:Found service: {'name': 'butler', 'depends': ['core']}
#!/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
@travishein
travishein / expander.sh
Created June 18, 2019 21:14
xargs-expander
#!/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}"
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 June 8, 2018 19:12
Fuze root 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 July 13, 2017 13:44
shows which docker containers currently depend on a given docker volume
#!/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;
#!/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
@travishein
travishein / gist:e60b51bf42dc5ad32f6e
Created February 10, 2016 20:50
Something for Diego
(`)
| |
| |
| |
| |
| |
| |
| |
(_)_)