Skip to content

Instantly share code, notes, and snippets.

Matt Briggs mbriggs

Block or report user

Report or block mbriggs

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View tab.vim
vmap <TAB> <esc>mbgv=`bgv
nmap <TAB> mb==`b
imap <TAB> <C-R>=HandleITab()<cr>
func! HandleITab()
if pumvisible()
return "\<c-n>"
return "\<ESC>==i"
View coc-settings.json
"languageserver": {
"golang": {
"command": "gopls",
"rootPatterns": ["go.mod"],
"filetypes": ["go"]
"dockerfile": {
"command": "docker-langserver",
View plugins.vim
if &compatible
set nocompatible " Be iMproved
call plug#begin('~/nvim/plugged')
" syntax
Plug 'othree/yajs.vim'
Plug 'othree/html5.vim'
Plug 'vim-scripts/nginx.vim'
View git.vim
nmap <leader>gg :Gstatus<cr>
nmap <leader>gb :Gblame<cr>
nmap <leader>gr :Grebase<cr>
nmap <leader>gp :Gpush<cr>
nmap <leader>gu :Gpull<cr>
nmap <leader>gw :Gbrowse<cr>
vmap <leader>gw :Gbrowse<cr>
nmap <leader>gb :Merginal<cr>
" gist
mbriggs / fixture.rb
Created Dec 12, 2018
Take 2 on handler fixtures
View fixture.rb
require_relative "../../automated_init"
context "Handle Commands" do
context "Added" do
context "Writes Added event" do
id =
account = Controls::Account::New.example
add = Controls::Commands::Add.example
time = Controls::Time::Processed.example
View event_written.rb
module Fixtures
class EventWritten
include TestBench::Fixture
attr_accessor :stream_name
attr_accessor :values
attr_accessor :command
attr_accessor :expected_version
attr_accessor :command_attributes
mbriggs / install-graphite
Created Apr 3, 2014
install graphite on mavericks
View install-graphite
#!/usr/bin/env bash
# download and install xquartz
# so deps
brew install cairo memcached
View redis.ex
defmodule Autobot.Redis do
import Exredis
def start_link do
Agent.start_link(fn ->
{:ok, client} = Exredis.start_link
end, name: __MODULE__)
mbriggs / anonymous-gist.rb
Created Jan 17, 2016
my rails helper for webpack dev server, and compiled into public
View anonymous-gist.rb
def include_js(file)
@_js_includes ||= {}
@_js_includes[file] ||= begin
manifest_path = Rails.root.join('public', 'assets', 'manifest.json')
if File.exist?(manifest_path)
manifest = JSON.parse(
path = "/assets/#{manifest[file]}"
path = "{file}"
mbriggs / anonymous-gist.js
Created Jan 17, 2016
production webpack config
View anonymous-gist.js
var webpack = require('webpack');
var path = require('path');
var ManifestPlugin = require('webpack-manifest-plugin')
function root(fragment){
return path.join(__dirname, "client", fragment);
module.exports = {
devtool: 'source-map',
You can’t perform that action at this time.