Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

@hazbo
hazbo / .vimrc
Created September 21, 2015 15:54
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
" let Vundle manage Vundle, required
@hazbo
hazbo / check-container.sh
Created January 30, 2015 14:34
A small script to remove (force) a container if it exists
#!/bin/bash
CONTAINER=$1
RUNNING=$(docker inspect --format="{{ .State.Running }}" $CONTAINER 2> /dev/null)
if [ $? -eq 1 ]; then
echo "'$CONTAINER' does not exist."
else
/usr/bin/docker rm --force $CONTAINER
@hazbo
hazbo / main.go
Last active December 30, 2015 00:19
Basic structure with setters and getters in Go.
package main
import(
"fmt"
)
// Defining the data types we will use
// in our Person struct
type Person struct {
name string
@hazbo
hazbo / main.go
Last active December 29, 2015 16:49
First attempt of concurrency in Go
package main
import(
"fmt"
"net/http"
"time"
"io/ioutil"
)
type ResponseData struct {