Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

const something = () => {
throw new Error('I LEIK MILK!1!1!ONE1!!ELEVEN!!!!')
}
try {
something()
} catch (e) {
window.location.href = `http://stackoverflow.com/search?q=[js] ${e.message}`
}
@joshmanders
joshmanders / README.md
Last active November 9, 2020 13:48
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.

Keybase proof

I hereby claim:

  • I am joshmanders on github.
  • I am joshmanders (https://keybase.io/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: