Skip to content

Instantly share code, notes, and snippets.

View ffleming's full-sized avatar

Forrest Fleming ffleming

View GitHub Profile
@ffleming
ffleming / bcrypter.py
Last active August 24, 2019 19:44
Bcrypt CLI
#!/usr/bin/env python3
# The bcrypt import will break if you call this file `bcrypt` or `bcrypt.py`.
import argparse
import bcrypt
import uuid
parser = argparse.ArgumentParser(description='Use bcrypt to hash a password')
parser.add_argument('password', metavar='PASS', type=str, action='store',
default='', nargs='?',
@ffleming
ffleming / vpn_psks.md
Created December 2, 2016 04:56
A compilation VPN PSKs

PSKs for VPN services

Provider PSK
Astrill way2stars
CyberGhost VPN CyberGhost
EarthVPN earthvpn
ExpressVPN 12345678
GFwVPN gfwvpn
GoldenFrog thisisourkey
@ffleming
ffleming / iterm2-ctrl-h.md
Created July 6, 2016 16:28
iterm2 setting to allow C-h to be bound in Vim
  1. Preferences -> Keys -> Add shortcut
  2. Add escape sequence of [104;5u
@ffleming
ffleming / security_spec.rb
Created March 1, 2016 21:38
Security spec
require 'open3'
RSpec.describe 'security' do
it 'should pass the audit' do
out, err, status = Open3.capture3('bundle-audit')
expect(out.strip).to eq 'No vulnerabilities found'
expect(status).to eq 0
end
end
@ffleming
ffleming / keybase.md
Created November 18, 2015 16:41
Keybase proof

Keybase proof

I hereby claim:

  • I am ffleming on github.
  • I am fsf (https://keybase.io/fsf) on keybase.
  • I have a public key whose fingerprint is E307 DE3F 4A70 7D15 9A60 2C71 3D97 B822 CEC3 9439

To claim this, I am signing this object:

@ffleming
ffleming / .vimrc
Last active October 17, 2015 18:44
Load partials in Vimscript
" Name your partials here. We'll look in e.g. ~/.vimrc.bundles, ~/.vimrc.keymaps, etc
" Order matters!
function! SourceFiles()
return ['bundles', 'functions', 'sets', 'aesthetics', 'keymaps', 'autocommands']
endfunction
" Looks in e.g. ~/.vimrc.bundles
for file in map(SourceFiles(), '"~/.vimrc." . (v:val)')
if filereadable(expand(file))
exec('source ' . file)