Skip to content

Instantly share code, notes, and snippets.

@Neener54
Neener54 / setup.sh
Last active February 12, 2021 18:40
Computer Provisioning
#!/usr/bin/env bash
# Install some stuff before others!
important_casks=(
authy
dropbox
google-chrome
spotify
slack
zoomus
@Neener54
Neener54 / leadership_reads.md
Last active November 18, 2022 09:13
Leadership Reading Material
@Neener54
Neener54 / registry.rb
Created May 20, 2019 20:26
Self Registering Class
module Types
module Registry
REGISTRATIONS = {}
def mime_type(string)
REGISTRATIONS[string] = self
end
def self.handle_type(string)
handler_klass = REGISTRATIONS[string].new
@Neener54
Neener54 / source_vid.sh
Last active May 14, 2019 17:59
Generate HD video of source code
gource -s .02 -1920x1080 --key --highlight-users --hide mouse,progress,filenames --font-size 22 --title "Source Code History" -o - | ffmpeg -y -r 60 -f image2pipe -vcodec ppm -i - -vcodec libx264 -preset ultrafast -pix_fmt yuv420p -crf 1 -threads 0 -bf 0 source_vid.mp4
@Neener54
Neener54 / humble_bundle.js
Created February 14, 2018 06:25
Download all humble bundles
var pattern = /(MOBI|EPUB|PDF( ?\(H.\))?|CBZ|Download)$/i;
var nodes = document.getElementsByTagName('a');
var downloadCmd = '';
for (i in nodes) {
var a = nodes[i];
if (a && a.text && pattern.test(a.text.trim())) {
downloadCmd += 'wget --content-disposition "' + a.href + "\"\n";
}
}
var output = document.createElement("pre");
@Neener54
Neener54 / .vimrc
Last active July 26, 2017 16:12
Vimrc
" Vundle {{{
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'gmarik/vundle'
Plugin 'scrooloose/nerdtree'
Plugin 'bling/vim-airline'
Plugin 'bkad/CamelCaseMotion'
Plugin 'tpope/vim-fugitive'
@Neener54
Neener54 / setup.sh
Created November 29, 2016 20:11
Nav Setup Script
#!/usr/bin/env bash
NODE_VERSION=6.2.1
DIR="$( cd -P "$( dirname "${BASH_SOURCE[0]}")" && pwd)"
which -s brew
if [[ $? != 0 ]] ; then
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
else
brew update
@Neener54
Neener54 / 0_reuse_code.js
Created November 18, 2016 16:08
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@Neener54
Neener54 / setup.sh
Created June 6, 2016 15:45
Setup Script for Nav Projects
#!/usr/bin/env bash
NODE_VERSION=4.4.4
DIR="$( cd -P "$( dirname "${BASH_SOURCE[0]}")" && pwd)"
which -s brew
if [[ $? != 0 ]] ; then
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
else
brew update