Skip to content

Instantly share code, notes, and snippets.

@collosi
Last active March 14, 2024 21:41
Show Gist options
  • Save collosi/672330a6b2c3694280f0ca1bf2235c4c to your computer and use it in GitHub Desktop.
Save collosi/672330a6b2c3694280f0ca1bf2235c4c to your computer and use it in GitHub Desktop.
#!/bin/bash
set -e
set -o pipefail
# rm -rf /workspace/home/dev
# apt update && apt -y install fish sudo curl && mkdir -p /workspace/home && useradd -d /workspace/home/dev -s /usr/bin/fish -G sudo -m dev && passwd dev
# sudo su - dev
# curl U -sSf | bash -s
sudo apt update
sudo apt install -y software-properties-common
sudo add-apt-repository -y ppa:maveonair/helix-editor
sudo apt update
sudo apt install -y helix
sudo apt install -y git wget iproute2 htop unzip
RUSTUP_HOME=/workspace/rustup
sudo mkdir -p $RUSTUP_HOME
mkdir -p /workspace/home/dev/.config/fish/conf.d
curl https://sh.rustup.rs -sSf | sh -s -- -y
sudo add-apt-repository -y ppa:longsleep/golang-backports
sudo apt update
sudo apt install -y golang-go
ssh-keygen -t ed25519 -N "" -C "temp github key" -f ~/.ssh/id_ed25519
curl -fsSL https://deno.land/install.sh | sh
wget -O ~/mkcert "https://github.com/FiloSottile/mkcert/releases/download/v1.4.4/mkcert-v1.4.4-linux-amd64"
chmod a+x ~/mkcert
IP=`ip -4 addr show eth0 | awk '/inet / {print $2}' | cut -d/ -f1`
~/mkcert -key-file key.pem -cert-file cert.pem "$IP"
cat ~/.ssh/id_ed25519.pub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment