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:

#!/bin/sh
PROG=$0
RSYNC="/usr/bin/rsync"
SRC="/"
DST="/Volumes/Backup/"
# rsync options
# -v increase verbosity
# -a turns on archive mode (recursive copy + retain attributes)
@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
@iamruinous
iamruinous / gist:0b6ab3f8e74c6c0ebc29
Created May 25, 2015 21:44
Python Meshblu Pure Websocket Client
import tornado.httpserver
import tornado.websocket
import tornado.ioloop
import tornado.web
import tornado.options
import sockjs.tornado
###
# Tornado Websocket Client Class
@iamruinous
iamruinous / gist:595e2b06c51c4656f968
Created May 24, 2015 19:00
Python Meshblu Websocket
import tornado.httpserver
import tornado.websocket
import tornado.ioloop
import tornado.web
import tornado.options
import sockjs.tornado
###
# Tornado Websocket Client Class
@iamruinous
iamruinous / gist:25244e5ee8ddb6d150bf
Created February 4, 2015 21:07
TMUX, do you use it?
set-window-option -g mode-keys vi
set -g history-limit 50000
set -g status-bg colour234
set -g window-status-activity-attr bold
set -g pane-border-fg colour245
set -g pane-active-border-fg colour39
set -g message-fg colour16
set -g message-bg colour221
set -g message-attr bold