Skip to content

Instantly share code, notes, and snippets.

View FrenchBen's full-sized avatar
:octocat:
Loading...

French Ben FrenchBen

:octocat:
Loading...
  • Docker inc.
  • San Francisco, CA
View GitHub Profile
/usr/local/bin/docker-machine -D start default returned non zero exit code. Stderr: Docker Machine Version: 0.5.0-rc3 (a1e610b) Launching plugin server for driver virtualbox Found binary path at /usr/local/bin/docker-machine-driver-virtualbox Plugin server listening at address 127.0.0.1:57571 () Got msg {ServiceMethod:RpcServerDriver.GetVersion Args:{} Reply:0xc820117c80} Using API Version 1 () Got msg {ServiceMethod:RpcServerDriver.SetConfigRaw Args:[123 34 86 66 111 120 77 97 110 97 103 101 114 34 58 123 125 44 34 73 80 65 100 100 114 101 115 115 34 58 34 49 57 50 46 49 54 56 46 57 57 46 49 48 49 34 44 34 83 83 72 85 115 101 114 34 58 34 100 111 99 107 101 114 34 44 34 83 83 72 80 111 114 116 34 58 53 52 56 53 52 44 34 77 97 99 104 105 110 101 78 97 109 101 34 58 34 100 101 102 97 117 108 116 34 44 34 83 119 97 114 109 77 97 115 116 101 114 34 58 102 97 108 115 101 44 34 83 119 97 114 109 72 111 115 116 34 58 34 116 99 112 58 47 47 48 46 48 46 48 46 48 58 51 51 55 54 34 44 34 83 119 97 114 109 68 105 11
@FrenchBen
FrenchBen / request.sh
Created December 2, 2015 02:16 — forked from nuxlli/unix_socket_request.sh
Examples of http request (in unix domain socket) with bash and [nc|socat]
#!/bin/bash
# References
# http://www.computerhope.com/unix/nc.htm#03
# https://github.com/daniloegea/netcat
# http://unix.stackexchange.com/questions/26715/how-can-i-communicate-with-a-unix-domain-socket-via-the-shell-on-debian-squeeze
# http://unix.stackexchange.com/questions/33924/write-inside-a-socket-open-by-another-process-in-linux/33982#33982
# http://www.linuxjournal.com/content/more-using-bashs-built-devtcp-file-tcpip
# http://www.dest-unreach.org/socat/
# http://stuff.mit.edu/afs/sipb/machine/penguin-lust/src/socat-1.7.1.2/EXAMPLES
@FrenchBen
FrenchBen / keybase.md
Last active May 23, 2018 19:34
Keybase pub gpg

Keybase proof

I hereby claim:

  • I am FrenchBen on github.
  • I am frenchben (https://keybase.io/frenchben) on keybase.
  • I have a public key whose fingerprint is C470 8613 278D 9678 80A7 896E B606 4DB5 BC6A 2865

To claim this, I am signing this object:

@FrenchBen
FrenchBen / aliash.sh
Created June 29, 2016 20:11
Golang go alias
function go_cover() {
coverage=$(mktemp)
trap "rm -f ${coverage}" EXIT
go test -coverprofile=${coverage} "$@" && \
go tool cover -func=${coverage} && \
go tool cover -html=${coverage}
}
alias go_cover='go_cover'
@FrenchBen
FrenchBen / index.html
Last active July 30, 2016 02:35
GDI blank Reveal template
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>CLASS TITLE</title>
<meta name="description" content="DESCRIPTION GOES HERE">
<meta name="author" content="Girl Develop It San Francisco">
@FrenchBen
FrenchBen / vimrc
Last active April 5, 2018 21:20
Current vim pluggins and settings
"Begin Vundle VimBundle setup---------------------
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()
call plug#begin('~/.vim/plugged')
" let Vundle manage Vundle, required
@FrenchBen
FrenchBen / vendor.yaml
Created January 27, 2017 22:37
Vendor file created via govend -v -l
vendors:
- path: github.com/Masterminds/sprig
rev: 69011c0cd9b4d2e0733c4d9e2c8e2a5a0d0a2f2f
- path: github.com/Microsoft/go-winio
rev: 307e919c663683a9000576fdc855acaf9534c165
- path: github.com/Sirupsen/logrus
rev: 61e43dc76f7ee59a82bdf3d71033dc12bea4c77d
- path: github.com/aokoli/goutils
rev: 9c37978a95bd5c709a15883b6242714ea6709e64
- path: github.com/davecgh/go-spew
version: '3'
services:
db:
restart: always
image: postgres:alpine
### Uncomment to enable DB persistance
# volumes:
# - ./postgres:/var/lib/postgresql/data
@FrenchBen
FrenchBen / encryptor.go
Created April 4, 2018 21:52
Encrypting/Decrypting a string using golang, from https://stackoverflow.com/a/14944339
package main
import (
"crypto/rand"
"crypto/rsa"
"crypto/sha1"
"crypto/x509"
"encoding/pem"
"flag"
"io/ioutil"
@FrenchBen
FrenchBen / main.go
Created August 9, 2018 19:09
Simple pFlag go test
package main
import (
"flag"
"fmt"
"github.com/spf13/pflag"
)
var (