Skip to content

Instantly share code, notes, and snippets.

@vbauerster
vbauerster / introrx.md
Created December 11, 2015 10:24 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing
@vbauerster
vbauerster / gist:78d48f1c3fa9f430e018
Last active April 8, 2018 02:27 — forked from jordelver/gist:3073101
Set the Mac OS X SOCKS proxy on the command line

Set the Mac OS X SOCKS proxy on the command line

a.k.a. what to do when your ISP starts blocking sites :(

Set the SOCKS proxy to local SSH tunnel

networksetup -setsocksfirewallproxy "Ethernet" localhost 8080

To clear the domain and port

@vbauerster
vbauerster / .vimrc
Created September 11, 2017 10:36 — forked from diyan/.vimrc
Alexey Diyan's vim configuration file
" This must be first, because it changes other options as a side effect.
set nocompatible
" On Windows use '.vim' instead of 'vimfiles' to make sync easier
let s:ms_win = (has('win16') || has('win32') || has('win64'))
if s:ms_win
set runtimepath=$HOME/.vim,$VIM/vimfiles,$VIMRUNTIME,$VIM/vimfiles/after,$HOME/.vim/after
set shell=/bin/sh
endif

Keybase proof

I hereby claim:

  • I am vbauerster on github.
  • I am vbauerster (https://keybase.io/vbauerster) on keybase.
  • I have a public key ASB3b2WsmEzM0zEf5anFdzxVWDr9H54XJK0hOntQZP7v_go

To claim this, I am signing this object:

package main
import (
"fmt"
"io/ioutil"
"net/http"
)
func main() {
responses := make(chan string, 3)
package main
import "fmt"
type person struct {
Name string
Age int
}
func main() {
package main
import (
"fmt"
"time"
)
func main() {
inch := make(chan int)
outch := make(chan int)
package main
import (
"fmt"
"sync"
)
func main() {
var wg sync.WaitGroup
done := make(chan struct{})