Skip to content

Instantly share code, notes, and snippets.

Avatar
:octocat:
Loading...

French Ben FrenchBen

:octocat:
Loading...
  • Docker inc.
  • San Francisco, CA
View GitHub Profile
@FrenchBen
FrenchBen / setup.sh
Last active Nov 10, 2020
Setup Tmux + VIM + Oh-My-Zsh
View setup.sh
# Setup was inspired from
# https://medium.com/@yash.kulshrestha/using-zsh-tmux-and-vim-for-web-development-eff7bd60e5d6
# install brew
sh -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
# install iterm2
brew cask install iterm2
# install tmux
@FrenchBen
FrenchBen / flutter.rb
Created Mar 18, 2020
Homebrew Flutter install
View flutter.rb
class Flutter < Formula
desc "Google’s UI toolkit for mobile, web, and desktop from a single codebase"
homepage "https://flutter.dev"
version "1.12.13"
url "https://storage.googleapis.com/flutter_infra/releases/stable/macos/flutter_macos_v1.12.13+hotfix.8-stable.zip"
sha256 "5b5308a400bddbc29874f8fd8de7b39bb5dd8707da499c42feb3721524e784a1"
def install
prefix.install Dir["packages",".git*"]
bin.install Dir["bin/*"]
@FrenchBen
FrenchBen / vendors.txt
Last active Sep 12, 2018
Kubernetes Dashboard missing vendors
View vendors.txt
vendor/github.com/beorn7/perks/.gitignore
vendor/github.com/beorn7/perks/README.md
vendor/github.com/beorn7/perks/quantile/exampledata.txt
vendor/github.com/docker/distribution/.gitignore
vendor/github.com/docker/distribution/.mailmap
vendor/github.com/docker/distribution/AUTHORS
vendor/github.com/docker/distribution/BUILDING.md
vendor/github.com/docker/distribution/CHANGELOG.md
vendor/github.com/docker/distribution/CONTRIBUTING.md
vendor/github.com/docker/distribution/Dockerfile
@FrenchBen
FrenchBen / main.go
Created Aug 9, 2018
Simple pFlag go test
View main.go
package main
import (
"flag"
"fmt"
"github.com/spf13/pflag"
)
var (
@FrenchBen
FrenchBen / encryptor.go
Created Apr 4, 2018
Encrypting/Decrypting a string using golang, from https://stackoverflow.com/a/14944339
View encryptor.go
package main
import (
"crypto/rand"
"crypto/rsa"
"crypto/sha1"
"crypto/x509"
"encoding/pem"
"flag"
"io/ioutil"
View docker-compose.yml
version: '3'
services:
db:
restart: always
image: postgres:alpine
### Uncomment to enable DB persistance
# volumes:
# - ./postgres:/var/lib/postgresql/data
@FrenchBen
FrenchBen / vendor.yaml
Created Jan 27, 2017
Vendor file created via govend -v -l
View vendor.yaml
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
@FrenchBen
FrenchBen / vimrc
Last active Apr 5, 2018
Current vim pluggins and settings
View vimrc
"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 / index.html
Last active Jul 30, 2016
GDI blank Reveal template
View index.html
<!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 / aliash.sh
Created Jun 29, 2016
Golang go alias
View aliash.sh
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'
You can’t perform that action at this time.