Skip to content

Instantly share code, notes, and snippets.

View chriseckhardt's full-sized avatar

Christopher Eckhardt chriseckhardt

View GitHub Profile
-----BEGIN RSA PRIVATE KEY-----
MIIEogIBAAKCAQEAgFkqF2spzT31yk5SR6bQ7FkJ2HsRGYlQbKm7NsvLy7DKQVcZipkVZze5XHX+
PDJiKRQPgX9OQ5OSFKRChB600/uskxgGOeo1AZY4WFihm83HDfuBMXuWi9DBWnvmjhaodLW43uWA
3olKZUIJed7R/bOrV7tfUaMNjRII77YclMbz7lWpDY9VT73zWgAOOzKlVn/6+0OTk5wy73nJjCzl
Tijp+1bzBysgvAQKfP5Dan6LBY6LFH6w/hD0GsbcuSYs8k7m3g+IQeJuR1FMMI4Vo7kIMHDjuf3R
uqfZS78uNKvnkp5YJjix08k5FQD7XWYelvjbA0ZbbhwdXrC2gUaJbQIDAQABAoIBADhmdj+qQMlH
I/5NooyH+qERk2kE04PUOno1r+YpchnFS2uhGcE0+hnMe/DsjNbpEQeaICI4ziyV6YiWkgA6+h15
J+HPmdTTXY2f9IymDgZIS+OSFLio5YP1LTJU5gCkZkw7Gs0gLxwbWozakw1x4/dHf9DirsVSEH9g
YHruHOsnTRffSFRhfo1nJBZ0xUWEfoEe+Aot+mRMwC2p03RHzl0XI1ji5KlNFQnK4cmDGn49iFB3
Vh72RbOKK6Fro1WSeikWlwHU3OGUdIWiy5sySj2C/fDAoJhD/n1OCZBdnyhHzv0AguZZOK8w7Qii
Wound ballistics part III.
Weirdly, the ammunition world seems a lot like the musical world. Nothing has really changed since about 1995. We're just remixing the old styles and putting it in prettier boxes. If you read gun magazines and discussion groups, you'd think no new work on the subject of how bodies respond to getting shot had been for the last 20 years or so.
And that's simply not true.
There's a couple of geeks out there by the name of Courtney & Courtney (married PhDs) who've been publishing a bunch of papers on brain injury produced by "ballistic presure waves", which could be caused by bullets or even just blunt force trauma to the body, like getting hit by a truck or an explosive blast wave. These are directly related to energy (ft-lbs) and inversely related to penetration. (Less is better, to a point.)
I'm linking the page that leads to a bunch of their papers below, but here's the salient points of their model:
1. Animal testing shows that if you can produce 30 PSI overpressure in the brain, y
2016-10-27_21:36:46.95760 [2016-10-27 21:36:46 +0000] - ERROR - 2016-10-27 21:36:46 - Sequel::PoolTimeout - timeout: 5.0, elapsed: 5.000781713:
2016-10-27_21:36:46.95764 gemstash/bundle/ruby/2.3.0/gems/sequel-4.39.0/lib/sequel/connection_pool/threaded.rb:264:in `raise_pool_timeout'
2016-10-27_21:36:46.95764 gemstash/bundle/ruby/2.3.0/gems/sequel-4.39.0/lib/sequel/connection_pool/threaded.rb:167:in `block in acquire'
2016-10-27_21:36:46.95765 gemstash/bundle/ruby/2.3.0/gems/sequel-4.39.0/lib/sequel/connection_pool/threaded.rb:282:in `block in sync'
2016-10-27_21:36:46.95765 gemstash/bundle/ruby/2.3.0/gems/sequel-4.39.0/lib/sequel/connection_pool/threaded.rb:282:in `synchronize'
2016-10-27_21:36:46.95765 gemstash/bundle/ruby/2.3.0/gems/sequel-4.39.0/lib/sequel/connection_pool/threaded.rb:282:in `sync'
2016-10-27_21:36:46.95766 gemstash/bundle/ruby/2.3.0/gems/sequel-4.39.0/lib/sequel/connection_pool/threaded.rb:150:in `acquire'
2016-10-27_21:36:46.95767 gemstash/bundle/ruby/2.3.0/gems/sequel-4.39.0/lib/se

Netflix JavaScript Talks - Debugging Node.js in Production

Notes from https://www.youtube.com/watch?v=O1YP8QP9gLA

"Let's work the problem, people. Let's not make things any worse by guessing."

Apply the Scientific Method

  1. Construct Hypothesis of what's happening
  2. Collect data
  3. Analyze data and draw a conclusion
@chriseckhardt
chriseckhardt / remove-nodes-safely.sh
Created August 12, 2016 23:20 — forked from scarytom/remove-nodes-safely.sh
Script to safely de-register jenkins nodes usage: $ remove-nodes-safely.sh my-node-1 my-node-2 my-node-3
#!/bin/bash
set -e
set -u
CI_MASTER_URL="http://ci-1"
node_online() {
curl --silent "$CI_MASTER_URL/computer/$1/api/json" | grep --silent '"temporarilyOffline":false'
}
# This assumes deployment to a small container
worker_processes 4;
error_log <%= log_dir %>/nginx-error.log;
pid <%= log_dir %>/nginx.pid;
env TMPDIR=<%= log_dir %>;
events {
worker_connections 8192;
#!/bin/bash
#
# Swap/Roll a file handle between processes.
#
# Posted at https://groups.google.com/forum/#!topic/alt.hackers/0ZMsMc5DvUw
#
# Usage:
#
# fdswap.sh <old logfile> <new logfile> [optional pids]
# fdswap.sh /var/log/logfile /tmp/logfile [pids]
Copyright (C) 2011 by Colin MacKenzie IV
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
@chriseckhardt
chriseckhardt / Dockerfile
Last active August 29, 2015 14:22
Kochiku Master Dockerfile
# Dockerfile for Kochiku Server
# Copyright 2015 Square, Inc.
FROM centos
MAINTAINER Chris Eckhardt, eckhardt@squareup.com
LABEL Description="This image is used to run a central Kochiku Server" Vendor="Square, Inc."
RUN yum update -y -q -e0 -d0
RUN yum install -y -q -e0 -d0 deltarpm gcc gcc-c++ git openssl mysql-devel ruby ruby-devel rubygems tar
RUN gem install bundler