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
#!/bin/bash | |
echo "Removing exited containers:" | |
docker ps -f "status=exited" -q | xargs docker rm | |
echo "Removing dangling images:" | |
docker images -f "dangling=true" -q | xargs docker rmi |
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
#!/bin/bash | |
if [ $# -ne 2 ]; then | |
echo "Usage: tor-onion-auth <onion_address> <client_name>" | |
echo "" | |
echo "Creates v3 hidden service authorization files." | |
exit | |
fi | |
ONION_ADDRESS=$(echo $1 | sed -e 's/\.onion//') |
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
#!/bin/bash | |
# Creates Debian-based LXD containers for Ansible management via SSH. | |
# | |
# The user "ansible" is given password-less sudo access in the container | |
# and configured with the current user's Ed25519 or RSA key by default. | |
# | |
# Parameters: | |
# -k Use a different SSH key. | |
# -p Add the given profile. |
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
#! /bin/bash | |
### BEGIN INIT INFO | |
# Provides: tor | |
# Required-Start: $local_fs $remote_fs $network $named $time | |
# Required-Stop: $local_fs $remote_fs $network $named $time | |
# Should-Start: $syslog | |
# Should-Stop: $syslog | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 |