Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@iamruinous
iamruinous / openpgp.md
Created January 15, 2022 04:09
OpenPGP proof

Keybase proof

I hereby claim:

  • I am iamruinous on github.
  • I am jademeskill (https://keybase.io/jademeskill) on keybase.
  • I have a public key whose fingerprint is 2193 FEE4 5B4D B6E5 4C3F 4FA4 7348 357F E221 D551

To claim this, I am signing this object:

@iamruinous
iamruinous / mongodb-core-max-call-stack.js
Last active December 9, 2015 21:43
mongodb-core RangeError: Maximum call stack size exceeded
var async, col, conn, max, mongojs;
async = require('async');
mongojs = require('mongojs');
max = 1000;
conn = mongojs("localhost/testmeout");
@iamruinous
iamruinous / gist:766bc1a9c00497b77a40
Created September 17, 2015 20:29
journalctl -b -u docker --no-pager
This file has been truncated, but you can view the full file.
-- Logs begin at Thu 2015-09-17 15:41:34 UTC, end at Thu 2015-09-17 20:19:43 UTC. --
Sep 17 17:13:26 ip-172-31-23-161.us-west-2.compute.internal systemd[1]: Started Docker Application Container Engine.
Sep 17 17:13:26 ip-172-31-23-161.us-west-2.compute.internal systemd[1]: Starting Docker Application Container Engine...
Sep 17 17:13:26 ip-172-31-23-161.us-west-2.compute.internal dockerd[786]: time="2015-09-17T17:13:26.822078733Z" level=info msg="Loading containers: start."
Sep 17 17:13:26 ip-172-31-23-161.us-west-2.compute.internal dockerd[786]: time="2015-09-17T17:13:26.822332995Z" level=info msg="Loading containers: done."
Sep 17 17:13:26 ip-172-31-23-161.us-west-2.compute.internal dockerd[786]: time="2015-09-17T17:13:26.822348369Z" level=info msg="Daemon has completed initialization"
Sep 17 17:13:26 ip-172-31-23-161.us-west-2.compute.internal dockerd[786]: time="2015-09-17T17:13:26.822366474Z" level=info msg="Docker daemon" commit=df2f73d-dirty execdriver=native-0.2 graphdriver=overlay version=1.7.1
Sep 17
@iamruinous
iamruinous / gist:2d95ee70983ede94db45
Created September 17, 2015 20:29
journalctl -b -t docker --no-pager
This file has been truncated, but you can view the full file.
-- Logs begin at Thu 2015-09-17 15:41:34 UTC, end at Thu 2015-09-17 20:20:10 UTC. --
Sep 17 17:13:26 ip-172-31-23-161.us-west-2.compute.internal docker[776]: Error response from daemon: no such id: docker-logentries
Sep 17 17:13:26 ip-172-31-23-161.us-west-2.compute.internal docker[776]: Error: failed to kill containers: [docker-logentries]
Sep 17 17:13:26 ip-172-31-23-161.us-west-2.compute.internal docker[792]: Error response from daemon: no such id: vulcand
Sep 17 17:13:26 ip-172-31-23-161.us-west-2.compute.internal docker[792]: Error: failed to kill containers: [vulcand]
Sep 17 17:13:26 ip-172-31-23-161.us-west-2.compute.internal docker[848]: Error response from daemon: no such id: journal-2-logentries
Sep 17 17:13:26 ip-172-31-23-161.us-west-2.compute.internal docker[848]: Error: failed to kill containers: [journal-2-logentries]
Sep 17 17:13:27 ip-172-31-23-161.us-west-2.compute.internal docker[878]: Error response from daemon: no such id: docker-logentries
Sep 17 17:13:27 ip-172-31-23-161.us-west-2.compu
@iamruinous
iamruinous / gist:51a657793a7726a94b2e
Created September 17, 2015 20:27
journalctl -b --no-pager
This file has been truncated, but you can view the full file.
-- Logs begin at Thu 2015-09-17 15:41:34 UTC, end at Thu 2015-09-17 20:21:02 UTC. --
Sep 17 17:13:11 localhost systemd-journal[104]: Runtime journal is using 8.0M (max allowed 752.1M, trying to leave 1.1G free of 7.3G available → current limit 752.1M).
Sep 17 17:13:11 localhost systemd-journal[104]: Runtime journal is using 8.0M (max allowed 752.1M, trying to leave 1.1G free of 7.3G available → current limit 752.1M).
Sep 17 17:13:11 localhost kernel: Initializing cgroup subsys cpuset
Sep 17 17:13:11 localhost kernel: Initializing cgroup subsys cpu
Sep 17 17:13:11 localhost kernel: Initializing cgroup subsys cpuacct
Sep 17 17:13:11 localhost kernel: Linux version 4.1.7-coreos (buildbot@ip-10-204-3-57) (gcc version 4.8.4 (Gentoo Hardened 4.8.4 p1.5, pie-0.6.1) ) #2 SMP Wed Sep 16 22:54:37 UTC 2015
Sep 17 17:13:11 localhost kernel: Command line: BOOT_IMAGE=/coreos/vmlinuz-b console=ttyS0,115200n8 console=tty0 root=LABEL=ROOT mount.usr=PARTUUID=e03dd35c-7c2d-4a47-b3fe-27f15780a57c modprobe.blacklist=xen_fbfront n
-- Logs begin at Thu 2015-08-27 21:46:14 , end at Sat 2015-08-29 01:03:22 . --
Aug 29 01:02:31 ip-172-31-21-157.us-west-2.compute.internal fleetd[24029]: DEBUG client.go:374: etcd: recv response from GET http://localhost:4001/v2/keys/_coreos.com/fleet/unit/eefa3340a628d1cf9177dbdd5c93568c0c2de85c?consistent=true&recursive=true&sorted=false: 200 OK
Aug 29 01:02:31 ip-172-31-21-157.us-west-2.compute.internal fleetd[24029]: DEBUG client.go:367: etcd: sending HTTP request GET http://localhost:4001/v2/keys/_coreos.com/fleet/unit/6b08e78ea4d89e6a7e550e918cb5b5b128fae9c3?consistent=true&recursive=true&sorted=false
Aug 29 01:02:31 ip-172-31-21-157.us-west-2.compute.internal fleetd[24029]: DEBUG client.go:374: etcd: recv response from GET http://localhost:4001/v2/keys/_coreos.com/fleet/unit/6b08e78ea4d89e6a7e550e918cb5b5b128fae9c3?consistent=true&recursive=true&sorted=false: 200 OK
Aug 29 01:02:31 ip-172-31-21-157.us-west-2.compute.internal fleetd[24029]: DEBUG client.go:367: etcd: sending HTTP request GET http://loca
2015/08/29 00:36:00 DEBUG http.go:28: HTTP GET http://domain-sock/fleet/v1/units?alt=json
2015/08/29 00:36:09 DEBUG http.go:31: HTTP GET http://domain-sock/fleet/v1/units?alt=json 200 OK
2015/08/29 00:36:09 DEBUG http.go:28: HTTP GET http://domain-sock/fleet/v1/units?alt=json&nextPageToken=ZAACAA%3D%3D
2015/08/29 00:36:16 DEBUG http.go:31: HTTP GET http://domain-sock/fleet/v1/units?alt=json&nextPageToken=ZAACAA%3D%3D 200 OK
2015/08/29 00:36:16 DEBUG http.go:28: HTTP GET http://domain-sock/fleet/v1/units?alt=json&nextPageToken=ZAADAA%3D%3D
2015/08/29 00:36:21 DEBUG http.go:31: HTTP GET http://domain-sock/fleet/v1/units?alt=json&nextPageToken=ZAADAA%3D%3D 200 OK
2015/08/29 00:36:21 DEBUG http.go:28: HTTP GET http://domain-sock/fleet/v1/units?alt=json&nextPageToken=ZAAEAA%3D%3D
2015/08/29 00:36:30 DEBUG http.go:31: HTTP GET http://domain-sock/fleet/v1/units?alt=json&nextPageToken=ZAAEAA%3D%3D 200 OK
2015/08/29 00:36:30 DEBUG http.go:28: HTTP GET http://domain-sock/fleet/v1/units?alt=json&nextPageToken=ZAAFAA%3D%
@iamruinous
iamruinous / gist:35438554b3cd1ab387b5
Last active August 29, 2015 00:09
fleetctl start
2015/08/29 00:05:44 DEBUG fleetctl.go:273: Defaulting to --driver=etcd as --endpoint appears to be etcd
2015/08/29 00:05:44 DEBUG client.go:367: etcd: sending HTTP request GET http://172.17.42.1:2379/v2/keys/_coreos.com/fleet/machines?consistent=true&recursive=true&sorted=true
2015/08/29 00:05:44 DEBUG client.go:374: etcd: recv response from GET http://172.17.42.1:2379/v2/keys/_coreos.com/fleet/machines?consistent=true&recursive=true&sorted=true: 200 OK
2015/08/29 00:05:44 DEBUG client.go:367: etcd: sending HTTP request GET http://172.17.42.1:2379/v2/keys/_coreos.com/fleet/job/octoblu-tentacle-server-blue@2.service?consistent=true&recursive=true&sorted=false
2015/08/29 00:05:44 DEBUG client.go:374: etcd: recv response from GET http://172.17.42.1:2379/v2/keys/_coreos.com/fleet/job/octoblu-tentacle-server-blue@2.service?consistent=true&recursive=true&sorted=false: 200 OK
2015/08/29 00:05:44 DEBUG client.go:367: etcd: sending HTTP request GET http://172.17.42.1:2379/v2/keys/_coreos.com/fleet/unit/02d10e9b21c04b3
@iamruinous
iamruinous / octoblu-tentacle@.service
Created August 28, 2015 22:44
octoblu-tentacle@.service
[Unit]
Description=octoblu-tentacle-server-green
Wants=vulcand.service
After=vulcand.service
[Service]
TimeoutStartSec=300
Restart=always
ExecStartPre=/usr/bin/etcdctl get /octoblu/tentacle-server/green/port || /usr/bin/echo "etcd did not contain /octoblu/tentacle-server/green/port" && exit 1
ExecStartPre=/usr/bin/etcdctl get /octoblu/tentacle-server/green/docker_url || /usr/bin/echo "etcd did not contain /octoblu/tentacle-server/green/docker_url" && exit 1