Skip to content

Instantly share code, notes, and snippets.

View skipzero's full-sized avatar
Seeking new opportunities

Skip McBride skipzero

Seeking new opportunities
View GitHub Profile
@skipzero
skipzero / mocha-guide-to-testing.js
Created March 13, 2018 23:43 — forked from samwize/mocha-guide-to-testing.js
Explain Mocha's testing framework - describe(), it() and before()/etc hooks
// # Mocha Guide to Testing
// Objective is to explain describe(), it(), and before()/etc hooks
// 1. `describe()` is merely for grouping, which you can nest as deep
// 2. `it()` is a test case
// 3. `before()`, `beforeEach()`, `after()`, `afterEach()` are hooks to run
// before/after first/each it() or describe().
//
// Which means, `before()` is run before first it()/describe()
@skipzero
skipzero / setup.sh
Last active March 11, 2018 08:28
Bootstrapping file for Ubuntu/*nix 'chines...
#! /usr/bin/zsh
# A script to set up ubuntu. Uses zsh, homebrew, etc.
# Includes many utilities/apps:
# - homebrew, nvm/node
# - DB: mysql
# - Server: NGINX
# Settings
@skipzero
skipzero / bureau.zsh-theme
Created March 6, 2018 20:25
Bureau Theme - slight modification to the ohMyZsh bureau theme bundled with ohMyZsh. just add this to ~/.oh-my-zsh/custom
# oh-my-zsh Bureau Theme
### NVM
ZSH_THEME_NVM_PROMPT_PREFIX="%{$fg[green]%}%B⬡%b "
ZSH_THEME_NVM_PROMPT_SUFFIX="%{$reset_color%}"
### Git [±master ▾●]
ZSH_THEME_GIT_PROMPT_PREFIX="[%{$fg_bold[green]%}±%{$reset_color%}%{$fg_bold[white]%}"
@skipzero
skipzero / .tmux.conf
Last active September 28, 2019 18:09 — forked from olexpono/.tmux.conf
tmux.conf 2017
# use 256 term for pretty colors
set -g default-terminal "xterm-256color"
set -g status-bg black
set -g status-fg green
set-window-option -g clock-mode-colour brightyellow
# increase scroll-back history
set -g history-limit 1000000
# ~use vim key bindings~
@skipzero
skipzero / osx-setup.sh
Last active March 20, 2018 18:51 — forked from somebox/osx-setup.sh
WIP: Set up an OSX machine from zero to awesome. Uses Homebrew (and cask, fonts, etc). includes editor fonts, Atom, and many others.
#!/bin/zsh
# A script to set up a new mac. Uses zsh, homebrew, etc.
# Includes many utilities and apps:
# - homebrew, node
# - terminal fonts
# - browsers: chrome, firefox
# - dev: iterm2, atom, postgres, chrome devtools, etc.
# - team: slack, dropbox, google drive, etc
@skipzero
skipzero / URLParams.js
Created January 6, 2018 00:00
simple way to get and use URL Parameters.
const parseQueryString = (url) => {
const urlParams = {};
url.replace(
/([^?=&]+)(=([^&]*))?/g, ($0, $1, $2, $3) => {
urlParams[$1] = $3;
}
);
return urlParams;
}
@skipzero
skipzero / README.md
Created November 21, 2017 23:00 — forked from hofmannsven/README.md
My simply MySQL Command Line Cheatsheet
@skipzero
skipzero / redstone.lua
Last active November 7, 2017 05:16
Lua redstone interaction in openComputers.
local component = require('component')
local sides = require('sides')
local colors = require('colors')
local rs = component.redstone -- get primary redstone component
print(rs.getInput(sides.back))
--rs.setBundledOutput(sides.bottom, colors.green, rs.getBundledInput(sides.top, colors.red))
@skipzero
skipzero / .gitconfig
Last active October 13, 2017 18:44 — forked from pksunkara/config
Example .gitconfig
[user]
name = skip zero
email = skip+zero@angerbunny.com
[core]
editor = nano
whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol
excludesfile = ~/.gitignore
#[sendemail]
# smtpencryption = tls
# smtpserver = smtp.gmail.com
@skipzero
skipzero / standup.md
Created July 7, 2017 19:09
Digital Standup - CM - skip

Digital Standup - M/D - Skip

[Standup July 7 '17]

[Yesterday]
  • Continuing to separate synthetics to it's own subdirectory
[Today]