Skip to content

Instantly share code, notes, and snippets.


Keybase proof

I hereby claim:

  • I am joshmanders on github.
  • I am joshmanders ( on keybase.
  • I have a public key whose fingerprint is FBDC EE75 B797 4A1C 903C 4E05 38A4 5C0F 5D24 F182

To claim this, I am signing this object:

joshmanders /
Last active Apr 24, 2016
My Docker Command

My Docker Command

When working with docker toolbox, sometimes I type get tripped up trying to type docker-machine env default and accidentally type docker machine env default instead. This bash script is a helper to allow you to do just that.

Put it in your $PATH and chmod +x my-docker. Then create an alias in your profile with alias docker="my-docker"

Now when you type docker machine env this will automatically proxy anything after machine to docker-machine.

Same goes for docker compose up proxies to docker-compose up.

View GODE_MODE.bmp.xml.js
const something = () => {
throw new Error('I LEIK MILK!1!1!ONE1!!ELEVEN!!!!')
try {
} catch (e) {
window.location.href = `[js] ${e.message}`
joshmanders /
Created Jun 20, 2016 — forked from tomhodgins/
The Hacker Code of Conduct aims to be a no-nonsense code of conduct, inclusive to all, while maintaining a focus on protecting a positive environment where collaboration is welcome.

The Hacker Code of Conduct

This project abides by the following code of conduct:

Both this project and its maintainers are inclusive to all people, and welcome all ideas. True diversity of thought builds perspective and benefits all of us. Diversity depends on the presence of differing opinions, this code of conduct establishes acceptable professional behaviour and does not police speech or opinions.

  • No ad-hominem attacks will be tolerated against any project maintainer, contributor, or user
  • No prolonged disturbance of shared collaborative space will be tolerated
  • The values we uphold are: excellence, innovation, fairness, and freedom
View server.js
const { spawn } = require('child_process')
const grunt = spawn('grunt', {
env: Object.assign({}, process.env, { PATH: `./node_modules/.bin:${process.env.PATH}` }),
stdio: 'inherit'
grunt.on('close', (code) => {
console.log(`Grunt closed with error code ${code}`)
#! /usr/bin/env bash
# Usage: git-io URL [CODE]
# Turns a URL
# into a URL
joshmanders / .md
Last active May 10, 2017
Synth Love Affair Artists
View .md

Current list of Artists in Synth Love Affair playlist.

  1. Arcade Summer
  2. Betamaxx
  3. Carpenter Brut
  4. College
  5. Crockett
  6. Dance With the Dead
View error.txt
SyntaxError: Unexpected token { in JSON at position 295
at Object.parse (native)
at DestroyableTransform.res.pipe.through.obj [as _transform] (/Users/josh/Projects/niftyco/docker/events.js:11:22)
at DestroyableTransform.Transform._read (/Users/josh/Projects/niftyco/docker/node_modules/readable-stream/lib/_stream_transform.js:159:10)
at DestroyableTransform.Transform._write (/Users/josh/Projects/niftyco/docker/node_modules/readable-stream/lib/_stream_transform.js:147:83)
at doWrite (/Users/josh/Projects/niftyco/docker/node_modules/readable-stream/lib/_stream_writable.js:313:64)
joshmanders / cask
Last active Feb 2, 2017
Homebrew Cask Upgrade
View cask
#!/usr/bin/env bash
readonly local caskroom="/usr/local/Caskroom"
upgrade () {
casks=($(brew cask list))
for cask in ${casks[@]}; do
current="$(brew cask info ${cask} | sed -n '1p' | sed -n 's/^.*: \(.*\)$/\1/p')"
installed=($(ls ${caskroom}/${cask}))
View 1.js
const doSomething = () => new Promise((resolve, reject) => resolve('hi'))
doSomething().then((result) => console.log(result)) // hi
You can’t perform that action at this time.