Skip to content

Instantly share code, notes, and snippets.

Jonathan Brink jonbri

Block or report user

Report or block jonbri

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
jonbri /
Created Jun 14, 2019
install node as a one-liner
sudo apt-get update && sudo apt-get install -y curl && sudo curl -sL | sudo bash - && sudo apt-get install -y nodejs
jonbri / FormatSwitch.vim
Created Dec 12, 2017
Switch statement formatting
View FormatSwitch.vim
function! FormatSwitch()
:normal j
:normal vi}>
nnoremap <silent> <Plug>FormatSwitchPlug :call FormatSwitch()<CR>
\:call repeat#set("\<Plug>FormatSwitchPlug")<CR>
nmap cFS <Plug>FormatSwitchPlug
jonbri / vaderTemplate.vim
Created Nov 15, 2017
Blank template for VimScript/Vader testing
View vaderTemplate.vim
" Blank template for Vader testing
" Invoke with `:Vader`
" Resources:
function! FooBecomesBar()
:silent! %s/foo/bar/
jonbri / playAudio.js
Created Apr 26, 2017
NodeJS: play audio file
View playAudio.js
var player = require('play-sound')(opts = {});
var sFile = 'hello.wav';
// access the node child_process in case you need to kill it on demand
var audio =, function(err) {
if (err && !err.killed) throw err
setTimeout(function() {
sudo apt-key adv --keyserver hkp:// --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
sudo apt-add-repository 'deb ubuntu-xenial main'
sudo apt-get update
apt-cache policy docker-engine
sudo apt-get install -y docker-engine
sudo systemctl status docker
jonbri /
Created Jan 11, 2017
Install NodeJS on Xenial
apt-get update && apt-get install -y curl \
&& curl -sL | bash - \
&& apt-get install -y nodejs
You can’t perform that action at this time.