Skip to content

Instantly share code, notes, and snippets.

@heronrs
Last active May 1, 2021 19:44
Show Gist options
  • Save heronrs/87bd58ec369b50bdc375761f6ae353c4 to your computer and use it in GitHub Desktop.
Save heronrs/87bd58ec369b50bdc375761f6ae353c4 to your computer and use it in GitHub Desktop.
Snipṕets
#!/bin/bash
echo Intalling linux esentials...
sudo apt-get update -y
sudo apt-get install -y gcc \
gconf2 \
make \
linux-headers-$(uname -r) \
build-essential \
apt-transport-https \
ca-certificates \
curl \
gnupg2 \
software-properties-common \
libgconf-2-4 \
libindicator7 \
libappindicator1 \
libc++1 \
libssl-dev \
zlib1g-dev \
libbz2-dev \
libreadline-dev \
libsqlite3-dev \
wget \
llvm \
libncurses5-dev \
libncursesw5-dev \
xz-utils \
tk-dev \
vim \
git \
fonts-firacode
echo Installing Golang and g
curl -sSL https://git.io/g-install | sh -s
echo Installing Docker
curl -fsSL https://download.docker.com/linux/$(
. /etc/os-release
echo "$ID"
)/gpg | sudo apt-key add -
sudo add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/$(
. /etc/os-release
echo "$ID"
) \
$(lsb_release -cs) \
stable"
sudo apt-get update -y
sudo apt-get install docker-ce -y
echo Installing kubectl
snap install kubectl --classic
echo Installing kind
GO111MODULE="on" go get sigs.k8s.io/[email protected]
echo Installing VsCode
wget https://go.microsoft.com/fwlink/?LinkID=760865 -O /tmp/vscode-insiders.deb
sudo dpkg -i /tmp/vscode-insiders.deb
rm /tmp/vscode-insiders.deb
echo Installing DBeaver
sudo snap install dbeaver-ce
echo Installing Postman
wget https://dl.pstmn.io/download/latest/linux64 -O postman.tar.gz
sudo tar -xzf postman.tar.gz -C /opt
rm postman.tar.gz
sudo ln -s /opt/Postman/Postman /usr/bin/postman
cat >~/.local/share/applications/postman.desktop <<EOL
[Desktop Entry]
Encoding=UTF-8
Name=Postman
Exec=postman
Icon=/opt/Postman/resources/app/assets/icon.png
Terminal=false
Type=Application
Categories=Development;
EOL
echo Installing Slack
wget https://downloads.slack-edge.com/linux_releases/slack-desktop-3.0.5-amd64.deb -O /tmp/slack.deb
sudo dpkg -i /tmp/slack.deb
rm /tmp/slack.deb
echo Installing Pyenv and Python3.6
git clone https://github.com/pyenv/pyenv.git ~/.pyenv
echo 'export PYENV_ROOT="$HOME/.pyenv"' >>~/.bashrc
echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >>~/.bashrc
echo -e 'if command -v pyenv 1>/dev/null 2>&1; then\n eval "$(pyenv init -)"\nfi' >>~/.bashrc
source ~/.bashrc
git clone https://github.com/pyenv/pyenv-virtualenv.git $(pyenv root)/plugins/pyenv-virtualenv
echo 'eval "$(pyenv virtualenv-init -)"' >>~/.bashrc
source ~/.bashrc
pyenv install 3.7.9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment