Skip to content

Instantly share code, notes, and snippets.

View simt2's full-sized avatar
🐔
magic is bad

Simon Tesar simt2

🐔
magic is bad
View GitHub Profile
@simt2
simt2 / keybase.md
Created April 24, 2018 06:46
Keybase verification

Keybase proof

I hereby claim:

  • I am simt2 on github.
  • I am simt (https://keybase.io/simt) on keybase.
  • I have a public key ASCxDYTJYyvtoY5dVaK0_xDmeqBwg30JFN0zXLbmaQM4JQo

To claim this, I am signing this object:

@simt2
simt2 / Vagrantfile
Last active December 23, 2021 05:31
Adding an additional disk to a VirtualBox machine in Vagrant via the experimental disks feature
# Enable the experimental disks feature via environment variable, requires Vagrant >=2.2.8.
ENV["VAGRANT_EXPERIMENTAL"] = "disks"
Vagrant.configure(2) do |config|
config.vm.disk :disk, name: "storage", size: "4GB"
end
@simt2
simt2 / SessionCookie.go
Created February 21, 2017 08:17
mesh-go-example SessionCookie.go
// MeshLogin logs into the mesh backend and sets the session id
func MeshLogin(username string, password string) {
body := map[string]string{
"username": USERNAME,
"password": PASSWORD,
}
payload, _ := json.Marshal(body)
r, _ := http.Post(BASEURL+"auth/login", "application/json", bytes.NewBuffer(payload))
for _, cookie := range r.Cookies() {
if cookie.Name == "mesh.session" {