Skip to content

Instantly share code, notes, and snippets.

Avatar
🙃
Speedrunning all the projects

Thomas Tse thomasxd24

🙃
Speedrunning all the projects
View GitHub Profile
View gist:1dcb98ee4100af53ebfbc5ea0b5d3063
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
View install-cfengine.sh
#!/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
View gist:a68b9f1e92507f4fc8a9db45dc84ee49
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;
"
View network
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp
auto eth1
iface eth1 inet dhcp
gateway 10.0.10.100
View foodtime-service.yml
version: "3.3"
networks:
traefik:
external: true
mongodb_mongo:
external: true
services:
foodtime-service:
View pritunl.yml
version: '3'
services:
pritunl:
image: 'jippi/pritunl:latest'
privileged: true
ports:
- '1194:1194/udp'
- '1194:1194/tcp'
networks:
View mongo.yml
version: "3"
services:
mongo1:
image: mongo:4.2
command: mongod --replSet rs1 --noauth --oplogSize 3
ports:
- 27017:27017
environment:
TERM: xterm
View stacktraefik.yml
version: "3.3"
networks:
traefik:
external: true
services:
traefik:
image: "traefik:v2.2"
@thomasxd24
thomasxd24 / teststack1.yml
Last active May 29, 2020
Traefik Stack yml
View teststack1.yml
version: "3.3"
networks:
traefik:
external: true
services:
traefik:
image: "traefik:v2.2"
networks:
View gist:4b78ac24858fbfd2fa362eaff06edf46
apt install curl -y
curl -fsSL https://get.docker.com -o get-docker.sh
sh get-docker.sh