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
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;
"
#!/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
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