Skip to content

Instantly share code, notes, and snippets.

View mkuchak's full-sized avatar

Marcos Kuchak mkuchak

View GitHub Profile
@mkuchak
mkuchak / docker-wait-for-mysql-alt.sh
Last active April 29, 2022 12:15 — forked from valmayaki/docker-wait-for-mysql-alt.sh
Wait for Connection ready
#!/bin/sh
until docker-compose exec mysql mysql -h 127.0.0.1 -u $DB_USERNAME -p$DB_PASSWORD -D $DB_DATABASE --silent -e "show databases;"
do
echo "Waiting for database connection..."
sleep 5
done
@mkuchak
mkuchak / update-golang.md
Last active January 7, 2023 16:55 — forked from nikhita/update-golang.md
How to update the Go version

How to update the Go version

System: Debian/Ubuntu/Fedora. Might work for others as well.

1. Uninstall the exisiting version

As mentioned here, to update a go version you will first need to uninstall the original version.

To uninstall, delete the /usr/local/go directory by: