Skip to content

Instantly share code, notes, and snippets.

View will118's full-sized avatar

Will Bartlett will118

  • London
View GitHub Profile
const net = require('net');
const readline = require('readline');
const COLUMN_WIDTH = 13;
const COLORS = {
red: '31',
green: '32',
cyan: '36',
};
const TIMEOUT = 60 * 1000;
#!/usr/bin/env node
// Creates pipes from different ports to a single sync_gateway
// Useful for debugging syncing/conflicts
//
// ❯ node scripts/syncpipes.js
//
// syncpipes> status
// [1]: 3984 => 4984 | 1 connection | 8 seconds ago
// [2]: 5984 => 4984 | 1 connection | 7 seconds ago
//
# my werid aliases
#alias cat="ccat --bg=dark"
alias reddy="redis-server /usr/local/etc/redis.conf"
alias vi="vim"
alias vim="nvim"
alias watchtest="clear && fswatch -o test build | xargs -n1 -I{} npm test"
alias mong="mongod --config /usr/local/etc/mongod.conf"
alias rimraf="rm -rf"
alias ag="ag --color-path \"1;34\" --color-line-number \"3;34\""
alias pizza="~/pizza/pizza.sh"
TRACKING_ID=$1
prep=$(cat <<EOF
▄▄▄▄▄▄ ▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄
██▀▀▀▀█▄ ██▀▀▀▀██ ██▀▀▀▀▀▀ ██▀▀▀▀█▄
██ ██ ██ ██ ██ ██ ██
██████▀ ███████ ███████ ██████▀
██ ██ ▀██▄ ██ ██
██ ██ ██ ██▄▄▄▄▄▄ ██

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

@will118
will118 / jails.md
Last active October 27, 2019 08:42
freebsd zfs jails

#Jails

Setup network

# /etc/rc.conf

pf_enable="YES"

cloned_interfaces="lo1"
ifconfig_lo1="inet 172.16.1.1 netmask 255.255.255.0"
# use C-a, since it's on the home row and easier to hit than C-b
set-option -g prefix C-a
unbind-key C-a
bind-key C-a send-prefix
set -g base-index 1
# vi is good
setw -g mode-keys vi
# mouse behavior
@will118
will118 / .vimrc
Last active November 6, 2015 21:05
let mapleader = ','
map <C-h> <C-w>h
map <C-j> <C-w>j
map <C-k> <C-w>k
map <C-l> <C-w>l
set background=dark
colorscheme PaperColor
filetype off
# use C-a, since it's on the home row and easier to hit than C-b
set-option -g prefix C-a
unbind-key C-a
bind-key C-a send-prefix
set -g base-index 1
# vi is good
setw -g mode-keys vi
# mouse behavior
@will118
will118 / gist:d45589acc9f4f6bba5c6
Created May 5, 2014 09:59
Solarized FSharp Depth Colorizer Visual Studio Colour Scheme
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\10.0\Text Editor\FSharpDepthColorizer]
"Depth0"="25,30,31,25,30,31"
"Depth1"="22,31,34,22,31,34"
"Depth2"="20,33,36,20,33,36"
"Depth3"="17,35,39,17,35,39"
"Depth4"="14,36,42,14,36,42"
"Depth5"="11,38,45,11,38,45"
"Depth6"="8,40,48,8,40,48"