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
fleetctl stop #{fetch(:application)}-#{fetch(:app_env)}.service | |
printf "waiting:> for %s to stop #{fetch(:application)}-#{fetch(:app_env)};" | |
is_running=1 | |
while [ $is_running -ne 0 ] | |
do is_running=`fleetctl list-units | grep running | grep #{fetch(:application)}-#{fetch(:app_env)} | wc -l` | |
sleep 1 | |
printf "." | |
done | |
echo "" | |
fleetctl start #{fetch(:application)}-#{fetch(:app_env)}.service |
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
IFS=$'\n' | |
rm -rf GRAYSCALE | |
for D in `ls -1 -d -- */ ` | |
do | |
echo "Creating $D/collection.desktop" | |
echo "[Desktop Entry]" > "$D/collection.desktop" | |
echo "Name=AWS_${D%?}" >> "$D/collection.desktop" | |
echo "Name[en_US]=AWS_${D%?}" >> "$D/collection.desktop" | |
done |
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
:80 { | |
redir 301 { | |
/ https://{host}{uri} | |
} | |
} | |
:443 { | |
gzip | |
proxy / backend:80 { | |
policy round_robin |
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
docker service rm rdb-primary rdb-secondary rdb-proxy | |
docker network rm rdb-net | |
sleep 5 | |
docker network create --driver overlay rdb-net | |
sleep 2 | |
docker service create \ | |
--name rdb-primary \ | |
--network rdb-net \ |
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 | |
CREATED=$(docker ps -qa --no-trunc --filter "status=created") | |
if [ -n "$CREATED" ]; then | |
echo "Removing created conteiners - $HOSTNAME" | |
for ID in $CREATED ; do docker rm $ID ; done | |
fi | |
EXITED=$(docker ps -qa --no-trunc --filter "status=exited") | |
if [ -n "$EXITED" ]; then |
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
### Keybase proof | |
I hereby claim: | |
* I am mabitt on github. | |
* I am mabitt (https://keybase.io/mabitt) on keybase. | |
* I have a public key ASAP5ehMFisoLQL8qtjatofTVu06fOp8gAFktJNyNffLGwo | |
To claim this, I am signing this object: |
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
version: "3.5" | |
services: | |
cloudflared: | |
container_name: cloudflared | |
image: visibilityspots/cloudflared:amd64 | |
restart: unless-stopped | |
networks: | |
openvpn_net: | |
ipv4_address: 10.0.0.2 |