Skip to content

Instantly share code, notes, and snippets.

View radeksimko's full-sized avatar

Radek Simko radeksimko

View GitHub Profile
@radeksimko
radeksimko / README.md
Last active November 23, 2016 17:20
Initial Mac Bootstrap

Initial setup

  1. Enable FileVault
  2. Enable Screen Saver after 5mins + lock screen immediately, set Hot Corner
  3. Disable Guest account
  4. Set hostname via sudo scutil --set HostName xxx && sudo scutil --set ComputerName xxx && sudo scutil --set LocalHostName xxx
  5. Make 1st backup via TimeMachine
  6. Install any OS updates
  7. Install Homebrew
# GIT bash current branch
export PATH=/opt/local/bin:/usr/local/bin:/opt/local/sbin:/usr/local/sbin:$PATH
export GOPATH=$HOME/gopath
export PATH=$GOPATH/bin:$PATH # Go
export LANG=en_GB.UTF-8
# Prompt
export PS1="\\u@local:\\W $ "
export HISTFILESIZE=5000
@radeksimko
radeksimko / README.md
Last active February 4, 2019 10:46
Go import path to repo root

Small hacky script to help verify govendor -> go modules migration

How to run

cd $GOPATH/src/.../where-you-place-main.go
go install .
./go-deps.sh vendor/vendor.json | sort | uniq
@radeksimko
radeksimko / main.go
Last active August 2, 2022 15:01
Windows paths test
package main
import (
"io/fs"
"log"
"os"
"path"
)
func main() {