Skip to content

Instantly share code, notes, and snippets.

@yakaas
yakaas / set-go-at.sh
Created December 18, 2022 03:11 — forked from comradequinn/goto.sh
Script to Switch Between Active Versions of Go
#! /usr/bin/bash
go_dir="/usr/local/go"
version=${1}
version_dir="#unset#"
dl_url="#unset#"
gos_dir="/usr/local/gos"
tar_file=".temp-go.tar.gz"
temp_dir=".temp"
type T struct {
A int
B string
}
t := T{23, "skidoo"}
s := reflect.ValueOf(&t).Elem()
typeOfT := s.Type()
for i := 0; i < s.NumField(); i++ {
@yakaas
yakaas / Install-Docker-on-Linux-Mint.sh
Last active December 9, 2015 00:41 — forked from sirkkalap/Install-Docker-on-Linux-Mint.sh
Install Docker on Linux Mint
##########################################
# To run:
# curl -sSL https://gist.githubusercontent.com/yakaas/c8ed85e6e5173e5b9852/raw/5945de1f91be09302f70280d6d00d3f5f8505a42/Install-Docker-on-Linux-Mint.sh | bash -x
##########################################
# Check that HTTPS transport is available to APT
if [ ! -e /usr/lib/apt/methods/https ]; then
sudo apt-get update
sudo apt-get install -y apt-transport-https
fi