Skip to content

Instantly share code, notes, and snippets.

2018/08/31 21:45:59 [DEBUG] (logging) enabling syslog on LOCAL5
2018/08/31 21:45:59.846544 [INFO] consul-template v0.19.5 (57b6c71)
2018/08/31 21:45:59.846605 [INFO] (runner) creating new runner (dry: false, once: false)
2018/08/31 21:45:59.846999 [DEBUG] (runner) final config: {"Consul":{"Address":"","Auth":{"Enabled":false,"Username":"","Password":""},"Retry":{"Attempts":12,"Backoff":250000000,"MaxBackoff":60000000000,"Enabled":true},"SSL":{"CaCert":"","CaPath":"","Cert":"","Enabled":false,"Key":"","ServerName":"","Verify":true},"Token":"","Transport":{"DialKeepAlive":30000000000,"DialTimeout":30000000000,"DisableKeepAlives":false,"IdleConnTimeout":90000000000,"MaxIdleConns":100,"MaxIdleConnsPerHost":3,"TLSHandshakeTimeout":10000000000}},"Dedup":{"Enabled":true,"MaxStale":2000000000,"Prefix":"consul-template/my-proxy/dedup/","TTL":15000000000},"Exec":{"Command":"","Enabled":false,"Env":{"Blacklist":[],"Custom":[],"Pristine":false,"Whitelist":[]},"KillSignal":2,"KillTimeout":30000000000,"ReloadSignal":null,"
Statistical profiling result from www/node/isolate-0x102000000-v8.log, (29594 ticks, 37 unaccounted, 0 excluded).
[Unknown]:
ticks total nonlib name
37 0.1%
[Shared libraries]:
ticks total nonlib name
3947 13.3% 0.0% /Users/mblakele/.nvm/versions/io.js/v2.3.3/bin/node
622 2.1% 0.0% /usr/lib/system/libsystem_kernel.dylib
0 info it worked if it ends with ok
1 verbose cli [ '/home/ubuntu/.nvm/versions/io.js/v2.3.3/bin/iojs',
1 verbose cli '/home/ubuntu/.nvm/versions/io.js/v2.3.3/bin/npm',
1 verbose cli 'install' ]
2 info using npm@2.11.3
3 info using node@v2.3.3
4 verbose readDependencies loading dependencies from /tmp/npm3-npm2-compat-test/package.json
5 verbose readDependencies npm-shrinkwrap.json is overriding dependencies
6 info shrinkwrap file "/tmp/npm3-npm2-compat-test/npm-shrinkwrap.json"
7 verbose readDependencies returned deps { 'ansi-green': 'https://registry.npmjs.org/ansi-green/-/ansi-green-0.1.1.tgz',
--- npm-shrinkwrap@2.13.5.json 2015-08-20 14:17:55.000000000 -0700
+++ npm-shrinkwrap@3.0.0.json 2015-08-20 14:36:05.000000000 -0700
@@ -2,313 +2,265 @@
"name": "npm3-npm2-compat-test",
"version": "0.0.1",
"dependencies": {
+ "ansi-green": {
+ "version": "0.1.1",
+ "from": "ansi-green@>=0.1.1 <0.2.0",
+ "resolved": "https://registry.npmjs.org/ansi-green/-/ansi-green-0.1.1.tgz"
{
"name": "npm3-npm2-compat-test",
"version": "0.0.1",
"dependencies": {
"ansi-green": {
"version": "0.1.1",
"from": "ansi-green@>=0.1.1 <0.2.0",
"resolved": "https://registry.npmjs.org/ansi-green/-/ansi-green-0.1.1.tgz"
},
"ansi-wrap": {
{
"name": "npm3-npm2-compat-test",
"version": "0.0.1",
"dependencies": {
"chokidar": {
"version": "1.0.5",
"from": "chokidar@*",
"resolved": "https://registry.npmjs.org/chokidar/-/chokidar-1.0.5.tgz",
"dependencies": {
"anymatch": {
{
"name": "npm3-npm2-compat-test",
"version": "0.0.1",
"private": true,
"license": "apache",
"dependencies": {
"chokidar": "^1.0.5"
}
}
@mblakele
mblakele / aws-ec2-report-termination-protection.sh
Created May 5, 2015 00:35
check termination status on all my ec2 instances
#!/bin/bash
#
set -e
# It seems to be important to keep each json dict small enough for one line.
for o in $(aws ec2 describe-instances | jq '.Reservations[].Instances[]' \
| jq -c '{ InstanceId, Tags }'); do
id=$(echo $o | jq -e -r '.InstanceId')
name=$(echo $o | jq -e -r '.Tags[]|select(.Key == "Name").Value')
"dependencies": {
"connect-marklogic": "git://github.com/withjam/connect-marklogic.git",
"express": "^4.11.2",
"express-session": "^1.10.3",
"marklogic": "^1.0.1"
},
@mblakele
mblakele / forest-migrate-with-spawn.xqy
Last active August 29, 2015 13:57
Use the task server to migrate a forest.
xquery version "1.0-ml";
import module namespace ts="http://marklogic.com/xdmp/tieredstorage"
at "/MarkLogic/tieredstorage.xqy";
xdmp:spawn-function(
function() {
ts:forest-migrate(
xdmp:forest("my-forest"),
xdmp:host(),
'/media/xvdg/mldata',