Skip to content

Instantly share code, notes, and snippets.

View hpoul's full-sized avatar
🚴

Herbert Poul hpoul

🚴
View GitHub Profile
@rubencaro
rubencaro / setup_go.md
Last active April 28, 2024 21:52
Golang installation guide

Golang installation guide

Since Golang version 1.11 this process is finally (almost) as easy as it should (!!). You can see full docs here. For older guides see here.

These are my notes, not a generic solution. They are not meant to work anywhere outside my machines. Update version numbers to whatever are the current ones while you do this.

Installing everything needed the first time

Install asdf and its golang plugin, then install golang

@hpoul
hpoul / .gitignore
Last active June 15, 2020 11:50
Scratchbook for my favorite .gitignore
# https://gist.github.com/hpoul/b78f7a1b3cde988f3ce4d12e954367eb
#
# IDEA: Allow some configuration, which is shared across users.
/.idea/*
!.idea/runConfigurations
!.idea/runConfigurations/*
!.idea/vcs.xml
!.idea/dictionaries
!.idea/dictionaries/*
@hpoul
hpoul / upgrade-gradle-wrapper.sh
Created July 28, 2020 08:26
One liner to upgrade gradle wrapper to latest version and set sha distribution checksum.
json=$(curl -sf https://services.gradle.org/versions/current) && v=$(echo $json | jq -r '.version') && sha=$(curl -sfL $(echo $json | jq -r '.checksumUrl' | sed 's/bin/all/')) && ./gradlew wrapper --distribution-type all --gradle-distribution-sha256-sum "$sha" --gradle-version "$v"