cd /path/to/this/gist
vagrant up --provision
After the virtual machine has started up and finished provisioning, open a web browser to http://localhost:8098 to confirm that riak is running.
#!/usr/bin/env bash | |
KUE_URL="http://localhost:9090/jobs" | |
DATE=$(date +"%Y-%m-%d") | |
FOLDER="kue-status_$DATE" | |
function get_status { | |
STATUS=$1 | |
STATUS_URL="$KUE_URL/$STATUS/0..9999" | |
FILE_PATH="$FOLDER/$STATUS.json" | |
echo "getting jobs from kue at url: $STATUS_URL" |
Bundle 'junegunn/vim-easy-align' | |
map <Leader>r :call EnterAlign()<cr> | |
function! EnterAlign() | |
let save_cursor = getpos(".") | |
let l:win_view = winsaveview() | |
:execute "normal vip\<Enter>=" | |
call winrestview(l:win_view) | |
call setpos('.', save_cursor) | |
endfunction |
{ | |
"libs": [ | |
"browser", | |
"underscore", | |
"jquery" | |
], | |
"plugins": { | |
"node": {} | |
} | |
} |
// Denver ISO 8601 Offset | |
// see https://github.com/moment/moment/issues/1422#issuecomment-32908589 | |
var DEFAULT_TIMEZONE_OFFSET = '-07:00' | |
var moment = require('moment') | |
console.log(parseTime('2013-01-01T00:00:00-02:00')) | |
console.log(parseTime('2013-01-01 00:00:00')); | |
function parseTime(input) { |
Here are some resources for learning javascript and node
You can configure esformatter by changing ~/.esformatter
See the esformatter default https://github.com/millermedeiros/esformatter/blob/master/lib/preset/default.json for configuration examples.
You will need the esformatter binary available in your path to run the indent command
npm install -g esformatter
<?xml version="1.0"?> | |
<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1"> | |
<service_bundle type="manifest" name="fleet-hub-service"> | |
<service name="site/fleet-hub-service" type="service" version="1"> | |
<create_default_instance enabled="true"/> | |
<single_instance/> | |
<dependency name="network" grouping="require_all" restart_on="refresh" type="service"> | |
<service_fmri value="svc:/milestone/network:default"/> | |
</dependency> |
<?xml version="1.0"?> | |
<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1"> | |
<service_bundle type="manifest" name="fleet-drone-service"> | |
<service name="site/fleet-drone-service" type="service" version="1"> | |
<create_default_instance enabled="true"/> | |
<single_instance/> | |
<dependency name="network" grouping="require_all" restart_on="refresh" type="service"> | |
<service_fmri value="svc:/milestone/network:default"/> | |
</dependency> |