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/sh | |
docker network create \ | |
--subnet <same-pool-address-default-docker-subnets> \ | |
--opt com.docker.network.bridge.name=docker_gwbridge \ | |
--opt com.docker.network.bridge.enable_icc=false \ | |
--opt com.docker.network.bridge.enable_ip_masquerade=true \ | |
docker_gwbridge | |
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/sh | |
docker service create --name loadbalancer \ | |
--mount type=bind,source=/data/loadbalancer,target=/etc/nginx/conf.d \ | |
--publish 80:80 --publish 443:443 nginx |
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
{ | |
"features": { | |
"buildkit": true | |
}, | |
"default-address-pools": [ | |
{ | |
"base": "172.50.0.0/24", | |
"size": 28 | |
} | |
] |
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/sh | |
sudo systemctl enable docker.service | |
sudo systemctl enable containerd.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
#!/bin/sh | |
docker swarm init --advertise-addr 172.16.0.24 --default-addr-pool 172.61.1.0/24 |
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/sh | |
# $1 argument for filename | |
ssh-keygen -t rsa -b -f $1 |
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
netsh interface portproxy set v4tov4 listenport=6379 listenaddress=0.0.0.0 connectport=6379 connectaddress=$(wsl hostname -I) |
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
ALTER TABLE ROLES MODIFY ID GENERATED BY DEFAULT ON NULL AS IDENTITY (START WITH LIMIT VALUE); |
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/sh | |
0 */2 * * * /usr/bin/docker rmi $(docker images -f dangling=true -a -q) && /usr/bin/docker system prune -f |
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
{ | |
"workbench.iconTheme": "material-icon-theme", | |
"workbench.startupEditor": "newUntitledFile", | |
"editor.tabSize": 2, | |
"editor.lineHeight": 26, | |
"editor.fontFamily": "Fira Code", | |
"editor.fontLigatures": true, | |
"explorer.compactFolders": false, |
NewerOlder