Skip to content

Instantly share code, notes, and snippets.

View nguyen-dhn's full-sized avatar
💪
Consistency is the superpower that turns average into extraordinary.

Dang Hoang Nhu Nguyen nguyen-dhn

💪
Consistency is the superpower that turns average into extraordinary.
View GitHub Profile
@p3jitnath
p3jitnath / install-docker.sh
Last active June 26, 2025 20:17
Docker and Nvidia Docker installation in Ubuntu 20.04 LTS
# WARNING : This gist in the current form is a collection of command examples. Please exercise caution where mentioned.
# Docker
sudo apt-get update
sudo apt-get remove docker docker-engine docker.io
sudo apt install docker.io
sudo systemctl start docker
sudo systemctl enable docker
docker --version
@mihow
mihow / load_dotenv.sh
Last active October 20, 2025 01:05
Load environment variables from dotenv / .env file in Bash
# The initial version
if [ ! -f .env ]
then
export $(cat .env | xargs)
fi
# My favorite from the comments. Thanks @richarddewit & others!
set -a && source .env && set +a