root@ip-10-0-0-212:~# # from community
root@ip-10-0-0-212:~# apk add --no-cache -X http://dl-cdn.alpinelinux.org/alpine/edge/community zerotier-one
fetch http://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.10/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.10/community/x86_64/APKINDEX.tar.gz
(1/2) Installing zerotier-one (1.4.6-r0)
(2/2) Installing zerotier-one-openrc (1.4.6-r0)
Executing busybox-1.30.1-r2.trigger
OK: 268 MiB in 94 packages
This file contains hidden or 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
| find . -name "vendor" -type d -maxdepth 3 -exec vendor-prune {} \; | |
| find . -name "node_modules" -type d -maxdepth 3 -exec node-prune {} \; |
This file contains hidden or 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
| # set /etc/hosts to 10.0.2.2 first | |
| VBoxManage list runningvms | |
| VBoxManage modifyvm "VM name" --natdnshostresolver1 on |
This file contains hidden or 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
| # Forcefully remove images that don't have tags | |
| docker rmi -f $(docker images | grep "<none>" | awk '{print $3}') | |
| # Remove dead and exited containers | |
| docker ps --filter status=dead --filter status=exited -aq \ | |
| | xargs docker rm -v | |
| # Remove images that have dependent children | |
| docker image prune -a |
This file contains hidden or 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
| zfs set acltype=posixacl lxd |
This file contains hidden or 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
| acme.sh --issue --dns dns_dnsimple -d example.com -d www.example.com |
This file contains hidden or 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
| #!/usr/bin/env bash | |
| docker run --rm --interactive --tty \ | |
| --user $(id -u):$(id -g) \ | |
| --volume $PWD:/var/www/default \ | |
| --workdir /var/www/default \ | |
| --entrypoint "composer" \ | |
| kyleparisi/larasible $1 |
This file contains hidden or 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
| APP_ENV=testing | |
| APP_KEY=base64:blahblah | |
| APP_DEBUG=true | |
| APP_LOG_LEVEL=debug | |
| APP_URL=http://localhost | |
| DB_CONNECTION=mysql | |
| DB_HOST=mysql | |
| DB_PORT=3306 | |
| DB_DATABASE=homestead |
This file contains hidden or 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
| # {:httpoison, "~> 1.6"} in mix.exs -> deps | |
| defmodule DockerEvents do | |
| use GenServer | |
| def start_link(opts \\ []) do | |
| GenServer.start_link(__MODULE__, :ok, opts) | |
| end | |
| def init(:ok) do | |
| sock = URI.encode_www_form("/var/run/docker.sock") |