cd $GOPATH/src/.../where-you-place-main.go
go install .
./go-deps.sh vendor/vendor.json | sort | uniq| package main | |
| import ( | |
| "io/fs" | |
| "log" | |
| "os" | |
| "path" | |
| ) | |
| func main() { |
| # 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 |
sudo scutil --set HostName xxx && sudo scutil --set ComputerName xxx && sudo scutil --set LocalHostName xxx| cask 'virtualbox' do | |
| version '5.0.26-108824' | |
| sha256 'e8836a98adea9350917a41e754dfec4fe2df7c4a0224fd8beca72cbc5d778437' | |
| url "http://download.virtualbox.org/virtualbox/#{version.sub(%r{-.*}, '')}/VirtualBox-#{version}-OSX.dmg" | |
| appcast 'http://download.virtualbox.org/virtualbox/LATEST.TXT', | |
| checkpoint: '280bd9701a0fcbe1d7ef2e23ffede42d31db69bedaeb7b46084e450e653d8224' | |
| name 'Oracle VirtualBox' | |
| homepage 'https://www.virtualbox.org' |
| cask 'terraform' do | |
| version '0.6.16' | |
| sha256 '23feb79263126877e6128a03c600cd626f6691a118a474694c5ad45cc5da9366' | |
| url "https://releases.hashicorp.com/terraform/#{version}/terraform_#{version}_darwin_amd64.zip" | |
| appcast 'https://github.com/hashicorp/terraform/releases.atom', | |
| checkpoint: 'afab489bef8c160cb685e558bc30f1e1b8225f42b4a84febf93bfbbed688b860' | |
| name 'Terraform' | |
| homepage 'https://www.terraform.io/' | |
| license :mpl |
| cask 'terraform' do | |
| version '0.7.2' | |
| sha256 '2a441124efd097007414545714927a9239980a5b0707384b0ee07badbae781cf' | |
| # hashicorp.com/terraform was verified as official when first introduced to the cask | |
| url "https://releases.hashicorp.com/terraform/#{version}/terraform_#{version}_darwin_amd64.zip" | |
| appcast 'https://github.com/hashicorp/terraform/releases.atom', | |
| checkpoint: '249f260a8fda094ce3d50512f8922a07a5a676e52a6a64896fa89fdcaeef84c7' | |
| name 'Terraform' | |
| homepage 'https://www.terraform.io/' |
| #!/bin/bash | |
| HOMEBREW_PREFIX="/usr/local" | |
| sudo rm -rf \ | |
| $HOMEBREW_PREFIX/etc/libvirt \ | |
| $HOMEBREW_PREFIX/var/cache/libvirt \ | |
| $HOMEBREW_PREFIX/var/lib/libvirt \ | |
| $HOMEBREW_PREFIX/var/log/libvirt \ | |
| $HOMEBREW_PREFIX/var/run/libvirt |
I hereby claim:
To claim this, I am signing this object:
| package main | |
| import ( | |
| "fmt" | |
| "net/http" | |
| "os" | |
| "sync" | |
| "time" | |
| ) |