Skip to content

Instantly share code, notes, and snippets.

View mwhooker's full-sized avatar

Matthew Hooker mwhooker

  • tbd
  • San Francisco
View GitHub Profile
May 02 19:44:42 ip-10-15-42-103.ec2.internal dockerd[1285]: time="2016-05-02T19:44:41.128525253Z" level=info msg="=== BEGIN goroutine stack dump ===
goroutine 14 [running]:
github.com/docker/docker/pkg/signal.DumpStacks()
/build/amd64-usr/var/tmp/portage/app-emulation/docker-1.9.1-r3/work/docker-1.9.1/.gopath/src/github.com/docker/docker/pkg/signal/trap.go:67 +0x98
github.com/docker/docker/daemon.setupDumpStackTrap.func1(0xc820016e40)
/build/amd64-usr/var/tmp/portage/app-emulation/docker-1.9.1-r3/work/docker-1.9.1/.gopath/src/github.com/docker/docker/daemon/debugtrap_unix.go:18 +0x5e
created by github.com/docker/docker/daemon.setupDumpStackTrap
/build/amd64-usr/var/tmp/portage/app-emulation/docker-1.9.1-r3/work/docker-1.9.1/.gopath/src/github.com/docker/docker/daemon/debugtrap_unix.go:20 +0x12a
goroutine 1 [chan receive, 19903 minutes]:
require 'open-uri'
require 'nokogiri'
class Department
def initialize(department, classes)
@department = department
@classes = classes
end
def get_department()
[Unit]
Description=Mongodb service on port %i
# Requirements
Requires=etcd.service
Requires=docker.service
Requires=mongodb-discovery@%i.service
# Dependency ordering
After=etcd.service
@mwhooker
mwhooker / cachebox-.100.log
Last active August 29, 2015 14:10
network log
root@cachebox:~# iperf -s
------------------------------------------------------------
Server listening on TCP port 5001
TCP window size: 85.3 KByte (default)
------------------------------------------------------------
[ 4] local 172.17.8.100 port 5001 connected with 172.17.8.103 port 53673
[ ID] Interval Transfer Bandwidth
[ 4] 0.0-10.0 sec 1.74 GBytes 1.49 Gbits/sec
^Croot@cachebox:~# iperf -c 172.17.8.103
------------------------------------------------------------
@mwhooker
mwhooker / dmesg
Last active August 29, 2015 14:10
registry session
[ 1080.197946] INFO: task gunicorn:1346 blocked for more than 120 seconds.
[ 1080.198577] Not tainted 3.17.2+ #2
[ 1080.199799] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
[ 1080.201349] gunicorn D ffff88007fc13d80 0 1346 1310 0x00000000
[ 1080.202142] ffff880066a97c48 0000000000000082 ffff88001cbfe400 0000000000013d80
[ 1080.202995] ffff880066a97fd8 0000000000013d80 ffffffff81a1b480 ffff88001cbfe400
[ 1080.204051] ffffffffa02fc9a0 ffff88001cbfe400 ffff88007fc14690 ffff880066a97d00
[ 1080.204993] Call Trace:
[ 1080.205455] [<ffffffffa02fc9a0>] ? nfs_request_add_commit_list+0x850/0xa80 [nfs]
[ 1080.206526] [<ffffffff814eb960>] ? out_of_line_wait_on_atomic_t+0xd0/0xd0

okay, running in a double chpst env does mess up the temp directory

root@skyliner-db:/tmp/fakewal-e# ./run 
Python 2.7.3 (default, Apr 10 2013, 06:20:15) 
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> os.environ
{'TMP': '/mnt/wal-e/tmp', ...}
+'''+++''+++'''+++';''++''++#+';::,.,;';;;;;'''++++;;;;'''+;::''''''''+;;;';;''''''';;;;;;;;;;;;;;;;;''''';;;''''''''''';;;;''''''';:;;;;;''''''+++;;;;;''''';:,,;'''''''''';;;'';''''''''''';;';:,:::::::
+'''++'''+++''''++';''++'''+#+';::,.,;'''';;'''++++';;;'''+;::''''''''+;;;';;;;''';;;;;::;;;;;;:;;;;;''''';;''''''''+++'''''''''++';;;';''''''''+++;;;'''''''';,,;+'''''''''';;'''''''''++++'';';:,:::::::
+'''+++''+++'''+++';''++''+##+';::,.,;'''';;''''+++'';;''++;::''''''''+;;;';;;;;;;;;;;::::::::::;;;;;;;''';;'''''''''++'''''''''++';;;''''''''''+++''''''++++';,:;++++++++++'';+''++++++++++'';';:,:::::::
+'''++''''+++''+++'''+++''+##+';::,.,;';;;;;''''+++'';;''++;::''''''''+;;;''';;;;;;;;;::::::::::::;;;;;;';;;'''''''''+''''''''''''';;;''''''''''+++''''''++++';,:;++'''''''+'';++++++++++++++';';:,:::::::
;;;;;;;;;;;';;;'''';'''+''++++'';:,.,:;::::::;;;'++;;;''''+;::''''''''+;;;''';;;;;;;;:::::::::::::;;;;;;;;;;''''''''''''''''''''''';;;''''''''''+++'''''''''+';,:;+''''''''''';++++++++++++++';';:,:::::::
::::::::
from timeit import timeit
def dotest(target_size, number):
setup = "target = [object() for x in xrange(%s)]" % target_size
comprehensions = [
"[id(obj) for obj in target]",
"[obj for obj in target if id(obj) % 2 == 0]"
]
#!/usr/bin/env python
import boto.ec2
import boto.cloudformation
from IPython import embed
import os
aws_region = os.environ.get("AWS_DEFAULT_REGION", 'us-west-1')
Stacktrace (most recent call first):
at Nap.java.throwOnBadStatus(Nap.java:161
at Nap.java.executeStringOrThrow(Nap.java:145
at RichNap.scala.executeJson(RichNap.scala:94
at RichNap.scala.get(RichNap.scala:61
at Carmel.scala.getAccountActivationDate(Carmel.scala:108
at VelocityService.scala.apply$mcV$sp(VelocityService.scala:51
at VelocityService.scala.apply(VelocityService.scala:50
at VelocityService.scala.apply(VelocityService.scala:50