Skip to content

Instantly share code, notes, and snippets.

View ecnepsnai's full-sized avatar
🏳️‍🌈

Ian Spence ecnepsnai

🏳️‍🌈
View GitHub Profile
@ecnepsnai
ecnepsnai / update_node.sh
Created June 10, 2024 18:24
Update Node
#!/bin/bash
set -e
VERSION=$(curl -Ss https://nodejs.org/download/release/index.json | jq -r '.[0].version')
INSTALL_DIR="/usr/local/node"
if [[ ! -d ${INSTALL_DIR} ]]; then
echo "Install directory '${INSTALL_DIR}' does not exist, sudo required to create it..."
sudo mkdir -p ${INSTALL_DIR}
fi
@ecnepsnai
ecnepsnai / update_go.sh
Last active June 14, 2025 22:48
Script to manage go versions easily
#!/bin/bash
set -e
VERSION=$(curl -sS "https://go.dev/dl/?mode=json" | jq -r '.[0].version' | sed 's/go//')
INSTALL_DIR="/usr/local/go"
if [[ ! -d ${INSTALL_DIR} ]]; then
echo "Install directory '${INSTALL_DIR}' does not exist, sudo required to create it..."
sudo mkdir -p ${INSTALL_DIR}
fi
@asukakenji
asukakenji / 0-go-os-arch.md
Last active June 5, 2025 03:56
Go (Golang) GOOS and GOARCH

Go (Golang) GOOS and GOARCH

All of the following information is based on go version go1.17.1 darwin/amd64.

GOOS Values

GOOS Out of the Box
aix
android