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 / report.txt
Created Feb 18, 2020
today's bitrot-origin-image state
View report.txt
$ bitrot-origin-image
binder fd2cc906-8938-11e3-beab-4359c665ac99 sdc-smartos@1.6.3
manta-madtom fd2cc906-8938-11e3-beab-4359c665ac99 sdc-smartos@1.6.3
manta-marlin fd2cc906-8938-11e3-beab-4359c665ac99 sdc-smartos@1.6.3
manta-marlin-dashboard fd2cc906-8938-11e3-beab-4359c665ac99 sdc-smartos@1.6.3
manta-medusa fd2cc906-8938-11e3-beab-4359c665ac99 sdc-smartos@1.6.3
manta-mola fd2cc906-8938-11e3-beab-4359c665ac99 sdc-smartos@1.6.3
manta-wrasse fd2cc906-8938-11e3-beab-4359c665ac99 sdc-smartos@1.6.3
sdc-amon fd2cc906-8938-11e3-beab-4359c665ac99 sdc-smartos@1.6.3
View gist:4c14f9d4fcca00c71c1db0438231a1cf
[root@832caf05 (buckets-mdapi) /opt/smartdc/buckets-mdapi]$ ./bin/schema-manager
INFO: Running "/usr/sbin/mdata-get SAPI_URL" ...
Jan 03 21:54:16.006 INFO sapi_url:, build-id: 0.1.0
INFO: Running "/usr/bin/zonename" ...
Jan 03 21:54:16.275 INFO pnode argument to buckets-mdplacement:tcp://, build-id: 0.1.0
Jan 03 21:54:16.275 INFO buckets-mdplacement, build-id: 0.1.0
Jan 03 21:54:16.298 DEBG starting decoherence task, interval 300 seconds, component: CueballConnectionPool, build-id: 0.1.0
Jan 03 21:54:16.298 DEBG starting connection health task, interval 30 seconds, component: CueballConnectionPool, build-id: 0.1.0
Jan 03 21:54:16.298 DEBG run() method entered, component: ManateePrimaryResolver, build-id: 0.1.0
Jan 03 21:54:16.303 INFO run(): starting runtime, component: ManateePrimaryResolver, build-id: 0.1.0
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/ ver is: 3.0.0 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/]$ ./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/
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/
INFO[08-31|19:28:27] Path Data logger=settings path=/root/go/src/
INFO[08-31|19:28:27] Path Logs logger=settings path=/root/go/src/
INFO[08-31|19:28:27] Path Plugins logger=settings path=/root/go/src/
View gist:4f21165ef3044d0ada6cc04bb500c045
[root@build3:~/go/src/]$ 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 / 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 /
Created Oct 26, 2016
tweaked for mingw32
# 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
# Copyright 2016 Joyent, Inc.
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
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
You can’t perform that action at this time.