Skip to content

Instantly share code, notes, and snippets.

View justenwalker's full-sized avatar

Justen Walker justenwalker

View GitHub Profile
@justenwalker
justenwalker / damon-example.ps1
Last active November 8, 2018 21:33
Damon run example
#!powershell
$env:DAMON_CPU_LIMIT="2048" # MHz
$env:DAMON_MEMORY_LIMIT="2048" # MB
# Run my.exe inside a job object
& damon.exe my.exe
@justenwalker
justenwalker / damon-example-snip.hcl
Created November 8, 2018 21:31
Damon example raw_exec config section
driver = "raw_exec"
config {
command = "damon.exe" # Damon is the new task entry-point (it should be on the PATH)
args = ["my.exe","arg1","arg2"] # Your command + Args here
}
@justenwalker
justenwalker / Vagrantfile
Created January 10, 2014 18:01
Vagrant file for testing graphite
# -*- mode: ruby -*-
# vi: set ft=ruby :
$script = <<eos
#! /bin/bash
REQUIREMENTS="Django<1.7"
# Prerequisites
apt-get update

Keybase proof

I hereby claim:

  • I am justenwalker on github.
  • I am justenwalker (https://keybase.io/justenwalker) on keybase.
  • I have a public key whose fingerprint is DF04 3245 AE35 DBE3 0890 1D49 6AA4 DD62 7E5E 24EE

To claim this, I am signing this object:

@justenwalker
justenwalker / docker
Created November 12, 2014 23:44
boot2docker shim
#! /bin/bash
if [ "running" = `boot2docker status` ]; then
IP=`boot2docker ip 2>/dev/null`
export DOCKER_CERT_PATH="$HOME/.boot2docker/certs/boot2docker-vm"
export DOCKER_TLS_VERIFY=1
export DOCKER_HOST="tcp://$IP:2376"
/usr/local/bin/docker "$@"
else
echo "boot2docker is not running"
@justenwalker
justenwalker / PasswordChecker.coffee
Last active August 29, 2015 14:05
Password Checker
###*
* @namespace PasswordChecker
*
* Utility class to check a password's complexity
*
*
* {@link PasswordChecker.strength} returns an object containing:
*
* - *summary* The results of {@link PasswordChecker.summary}
* - *total* The total raw score for the password