Skip to content

Instantly share code, notes, and snippets.

View thomasxd24's full-sized avatar
🙃
Speedrunning all the projects

Thomas Tse thomasxd24

🙃
Speedrunning all the projects
View GitHub Profile
apt install sudo -y
apt update && apt upgrade -y
locale-gen --purge en_US.UTF-8
echo -e 'LANG="en_US.UTF-8"\nLANGUAGE="en_US:en"\n' > /etc/default/locale
sudo apt-get -y install ca-certificates
cd /tmp && wget https://apt.puppet.com/puppet6-release-buster.deb
sudo dpkg -i /tmp/puppet6-release-buster.deb
echo "deb http://deb.theforeman.org/ buster nightly" | sudo tee /etc/apt/sources.list.d/foreman.list
echo "deb http://deb.theforeman.org/ plugins nightly" | sudo tee -a /etc/apt/sources.list.d/foreman.list
sudo apt-get -y install ca-certificates gpg
#!/bin/bash
apt update
wget https://s3.amazonaws.com/cfengine.packages/quick-install-cfengine-enterprise.sh && sudo bash ./quick-install-cfengine-enterprise.sh $1
sudo /var/cfengine/bin/cf-agent --bootstrap $2
/var/cfengine/bin/cf-promises --version
socat \
-v -d -d \
TCP-LISTEN:1234,crlf,reuseaddr,fork \
SYSTEM:"
echo HTTP/1.1 200 OK;
echo Content-Type\: text/plain;
echo;
cat /home/cloud/token;
"
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp
auto eth1
iface eth1 inet dhcp
gateway 10.0.10.100
version: "3.3"
networks:
traefik:
external: true
mongodb_mongo:
external: true
services:
foodtime-service:
version: '3'
services:
pritunl:
image: 'jippi/pritunl:latest'
privileged: true
ports:
- '1194:1194/udp'
- '1194:1194/tcp'
networks:
version: "3"
services:
mongo1:
image: mongo:4.2
command: mongod --replSet rs1 --noauth --oplogSize 3
ports:
- 27017:27017
environment:
TERM: xterm
version: "3.3"
networks:
traefik:
external: true
services:
traefik:
image: "traefik:v2.2"
@thomasxd24
thomasxd24 / teststack1.yml
Last active May 29, 2020 09:17
Traefik Stack yml
version: "3.3"
networks:
traefik:
external: true
services:
traefik:
image: "traefik:v2.2"
networks:
apt install curl -y
curl -fsSL https://get.docker.com -o get-docker.sh
sh get-docker.sh