Skip to content

Instantly share code, notes, and snippets.

View clarkjones's full-sized avatar

Clark Jones clarkjones

View GitHub Profile

Keybase proof

I hereby claim:

  • I am clarkjones on github.
  • I am clarkjones (https://keybase.io/clarkjones) on keybase.
  • I have a public key ASBwSFNY4pUg1XCxutx86IEEevObKX9VjWiWstPw_SlDqgo

To claim this, I am signing this object:

@clarkjones
clarkjones / load-nvmrc
Created June 1, 2018 00:36
load-nvmrc with cd changes
load-nvmrc() {
local node_version="$(nvm version)"
local nvmrc_path="$(nvm_find_nvmrc)"
if [ -n "$nvmrc_path" ]; then
local nvmrc_node_version=$(nvm version "$(cat "${nvmrc_path}")")
if [ "$nvmrc_node_version" = "N/A" ]; then
nvm install
# bash <(curl -s https://gist.github.com/drye/5387341/raw/ec72cddfe43ec3d39c91a3c118cb68ab14a049f8/enable_dnsmasq_on_osx.sh)
# ----------------------
# installing dnsmasq and enable daemon
# ----------------------
brew install dnsmasq
sudo cp -v $(brew --prefix dnsmasq)/homebrew.mxcl.dnsmasq.plist /Library/LaunchDaemons
# ----------------------
# adding resolver for vbox domain
# ----------------------
@clarkjones
clarkjones / HaxeScript.hx
Last active July 12, 2018 19:55 — forked from jasononeil/HaxeScript.hx
haxex, a short shell script that can be used so you have Haxe shell scripting
#!/usr/bin/env haxex -lib mcli @
/**
Taken from mcli example https://github.com/waneck/mcli
Say hello.
Example inspired by ruby's "executable" lib example
**/
class HaxeScript extends mcli.CommandLine
{
/**