Skip to content

Instantly share code, notes, and snippets.

Trent Mick trentm

Block or report user

Report or block trentm

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@trentm
trentm / output.txt
Created Feb 7, 2019
cutting python-manta 3.0.0
View output.txt
[15:39:40 trentm@bluesteel:~/pristine/python-manta (master)]
$ make cutarelease
manta/version.py ver is: 3.0.0
CHANGES.md ver is: 3.0.0
[[ -z `git status --short` ]] # If this fails, the working dir is dirty.
** Are you sure you want to tag and publish manta@3.0.0 to pypi?
** Enter to continue, Ctrl+C to abort.
ver=3.0.0 && \
date=2019-02-07 && \
View gist:0665034330e633d8ef7de0a965ed2ea1
[root@build3:~/go/src/github.com/grafana/grafana]$ ./bin/grafana-server cfg:app_mode=development
INFO[08-31|19:28:27] Starting Grafana logger=server version=5.3.0-pre1 commit=d668a922e compiled=2018-08-30T09:56:52+0000
INFO[08-31|19:28:27] Config loaded from logger=settings file=/root/go/src/github.com/grafana/grafana/conf/defaults.ini
INFO[08-31|19:28:27] Config overridden from command line logger=settings arg="app_mode=development"
INFO[08-31|19:28:27] Path Home logger=settings path=/root/go/src/github.com/grafana/grafana
INFO[08-31|19:28:27] Path Data logger=settings path=/root/go/src/github.com/grafana/grafana/data
INFO[08-31|19:28:27] Path Logs logger=settings path=/root/go/src/github.com/grafana/grafana/data/log
INFO[08-31|19:28:27] Path Plugins logger=settings path=/root/go/src/github.com/grafana/grafana/data/plugins
INFO[08-31|19:28
View gist:4f21165ef3044d0ada6cc04bb500c045
[root@build3:~/go/src/github.com/grafana/grafana]$ ptree
757243 /sbin/init
757268 /lib/svc/bin/svc.startd
757803 /usr/lib/saf/sac -t 300
757809 /usr/lib/saf/ttymon
757814 /usr/lib/saf/ttymon -g -d /dev/console -l console -m ldterm,ttcompat -h -p buil
757270 /lib/svc/bin/svc.configd
757335 /lib/inet/ipmgmtd
757566 /usr/lib/pfexecd
757609 /usr/sbin/nscd
@trentm
trentm / client.log
Last active Mar 2, 2018
node-whyyoulittle sample run of examples/server.js
View client.log
$ for i in `seq 1 10`; do sleep 0.3; (curl -i localhost:8080/slow &) ; done
HTTP/1.1 503 Service Unavailable
Content-Type: application/json
Content-Length: 64
x-request-id: 629905ae-83a0-407c-b055-52efc57e6430
Date: Fri, 02 Mar 2018 22:23:07 GMT
Connection: keep-alive
{"code":"ServiceUnavailableError","message":"request throttled"}HTTP/1.1 503 Service Unavailable
Content-Type: application/json
@trentm
trentm / sdc-docker-setup-mingw32.sh
Created Oct 26, 2016
tweaked sdc-docker-setup.sh for mingw32
View sdc-docker-setup-mingw32.sh
#!/bin/bash
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#
#
# Copyright 2016 Joyent, Inc.
#
@trentm
trentm / ben-arrayiter.js
Last active Apr 12, 2016
Slow JavaScript array iter
View ben-arrayiter.js
var ben = require('ben');
var servers = [];
for (var i = 0; i < 1000; i++) {
servers.push({"uuid": "blah", "hostname": "blah", "vms": {"foo": "blah"}});
}
var forMs = ben(function () {
var filteredServers = [];
for (var i = 0; i < servers.length; i++) {
View gist:8ee1cc7394dac3bb4c3807b36e8fb99f
root@blackduck0:~/tmp/q# ls */package.json | grep -v sdc-headnode | grep -v sdc-amon | cut -d/ -f1
aperture-config
binder
cloud-tycoon
electric-moray
eng
keyapi
mahi
manatee
manta-mackerel
@trentm
trentm / output.txt
Created Feb 23, 2016
hack to node-tape to get timestamps on TAP test results
View output.txt
ok 41 [2016-02-23T19:45:28.419Z] createMachine
ok 42 [2016-02-23T19:45:28.419Z] createMachine 201 statusCode
ok 43 [2016-02-23T19:45:28.419Z] createMachine Location header
ok 44 [2016-02-23T19:45:28.419Z] createMachine body: 7d609b77-7821-459d-894f-637f9d5a3e05
ok 45 [2016-02-23T19:45:28.420Z] headers ok
ok 46 [2016-02-23T19:45:28.420Z] headers allow-origin
ok 47 [2016-02-23T19:45:28.420Z] headers allow-methods
ok 48 [2016-02-23T19:45:28.421Z] headers date
ok 49 [2016-02-23T19:45:28.421Z] headers request-id
ok 50 [2016-02-23T19:45:28.422Z] headers response time
View manual-sdcadm-self-update.sh
updates-imgadm get-file -o latest-sdcadm.sh $(updates-imgadm list name=sdcadm --latest -H -o uuid)
bash latest-sdcadm.sh
@trentm
trentm / hacktime.js
Created Sep 8, 2015
Show a Bunyan raw stream that hacks 'rec.time' to a custom format, if desired.
View hacktime.js
var bunyan = require('./');
function HackTimeStream(stream) {
this.stream = stream || process.stderr;
}
HackTimeStream.prototype.write = function write(rec) {
rec.time += 'wallawalla';
this.stream.write(JSON.stringify(rec) + '\n');
};
You can’t perform that action at this time.