Skip to content

Instantly share code, notes, and snippets.

@nekronrt
nekronrt / dk-clean.sh
Created May 7, 2020 16:08 — forked from zeg-io/dk-clean.sh
Clean all Docker images older than 4 weeks
oldContainers="$(docker ps -f "status=exited" | grep -E 'Exited \(.*\) [5-9] h|Exited \(.*\) \d\d h' | awk '{ print $1 }')"
echo -e -n "\nRemoving containers older than 4 hours"
if [ "$oldContainers" != "" ]; then
echo ""
docker rm $oldContainers
else
echo "...none found."
fi
@nekronrt
nekronrt / docker_wordpress.md
Created September 13, 2019 18:42 — forked from bradtraversy/docker_wordpress.md
Docker Compose FIle For Wordpress, MySQL & phpmyadmin

Wordpress & Docker

This file will setup Wordpress, MySQL & PHPMyAdmin with a single command. Add the code below to a file called "docker-compose.yaml" and run the command

$ docker-compose up -d

# To Tear Down
$ docker-compose down --volumes
@nekronrt
nekronrt / gist:991abdc1ff0a0a46d1f30aeead862584
Created October 15, 2018 19:02 — forked from mikhailov/gist:9639593
Nginx S3 Proxy with caching
events {
worker_connections 1024;
}
http {
default_type text/html;
access_log /dev/stdout;
sendfile on;
keepalive_timeout 65;
@nekronrt
nekronrt / README.md
Created October 11, 2018 14:06 — forked from benjaminbarbe/README.md
Nginx proxy to S3 with caching