Skip to content

Instantly share code, notes, and snippets.

View tschant's full-sized avatar
🤔
What does this do...

Tarryn Schantell tschant

🤔
What does this do...
View GitHub Profile
@tschant
tschant / docker-compose.yml
Last active September 3, 2023 06:05
Docker setup for server - using traefik for reverse-proxy
# start up with 'docker-compose up -d' to start in background
# update images with 'docker-compose pull'
# this assumes that you have a sibling directory to this file called 'config' that contains all of the config for these services
# you can reference 'sabnzbd' 'radarr' or 'sonarr' from inside the containers (in the apps) to reference the other containers. no need to deal with IPs or hostnames
# remember that docker is isolated from the rest of your filesystem. you need to add volumes to the entries
# in order to give the processes access to them. so if you have multiple target directories for TV or Movies,
# then make sure you add each one that you want radarr/sonarr/sabnzbd to see.
version: '3.4'
services:
@tschant
tschant / aws-search-ec2.sh
Created November 24, 2020 14:57
Search running AWS EC2 instances for tag value, return IP and tag
function aws-search-ec2() {
if [ "$1" ]
then
echo "Searching running EC2 for: $1"
aws ec2 describe-instances \
--query "Reservations[*].Instances[*].[PrivateIpAddress, Tags[*].Value]" \
--output text \
--filters Name=instance-state-name,Values=running Name=tag-key,Values=Name Name=tag-value,Values="$1"
fi
}