sudo yum remove docker \
docker-client \
docker-client-latest \
docker-common \
docker-latest \
docker-latest-logrotate \
docker-logrotate \
docker-engine
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/env bash | |
if [ "$EUID" -ne 0 ]; then | |
echo "Installing system-wide apps requires sudo privileges. Do you have any?" | |
exit 1 | |
fi | |
# Create a temporary directory | |
temp_dir=$(mktemp -d) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list' | |
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add - | |
sudo apt-get update | |
sudo apt-get -y install postgresql |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
sudo date -s "$(wget -qSO- --max-redirect=0 google.com 2>&1 | grep Date: | cut -d' ' -f5-8)Z" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
# Stop all containers | |
docker stop `docker ps -aq ` | |
# Remove all containers | |
docker rm `docker ps -aq ` | |
# Remove all images | |
docker rmi -f `docker images -aq ` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Download Latest Go Binary | |
wget https://dl.google.com/go/go1.13.4.linux-amd64.tar.gz | |
# Install Go Language | |
sudo tar -C /usr/local -xzf go1.13.4.linux-amd64.tar.gz | |
# Add /usr/local/go/bin to the PATH | |
echo 'export PATH=$PATH:/usr/local/go/bin' >> ~/.profile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# LTS Release | |
sudo apt-get install curl software-properties-common | |
curl -sL https://deb.nodesource.com/setup_14.x | sudo bash - | |
# Install Node.js | |
sudo apt-get install -y nodejs npm |
NewerOlder