Skip to content

Instantly share code, notes, and snippets.

View darkphnx's full-sized avatar

Dan Wentworth darkphnx

View GitHub Profile
@darkphnx
darkphnx / dev.conf
Last active May 11, 2020 13:24
Nginx Developer Config
upstream codebase {
server 127.0.0.1:3000 fail_timeout=0;
}
upstream identity {
server 127.0.0.1:3001 fail_timeout=0;
}
upstream deploy {
server 127.0.0.1:3002 fail_timeout=0;
@darkphnx
darkphnx / super_simple_service.rb
Last active March 23, 2017 18:13
Simple, hot-restartable Ruby service
require 'socket'
class SuperSimpleService
attr_reader :bind_address, :bind_port
def initialize
@bind_address = 'localhost'
@bind_port = 12345
end
When the boss and the PFY both suffer from acute computer 'acronym dependence', it's time to visit Harley Street to play in the traffic ...
"...So I think the proposal for an ATM network to back up the FDDI backbone ASAP would be appropriate," the boss says.
"I beg your pardon?" I ask, thinking for a moment that I am in some 'twilight zone' replica of my workplace.
"I read your FYI last night on TCP/IP latency. I think we should get the problem solved PQD!"
"I see," I reply, realising what has happened.
I break like the wind to the office and nudge the PFY awake.
@darkphnx
darkphnx / gist:16954663b311b6a0e15b77d7e12eff2b
Created January 17, 2017 11:33
ACAD - Acute Computer Acronym Dependence
When the boss and the PFY both suffer from acute computer 'acronym dependence', it's time to visit Harley Street to play in the traffic ...
"...So I think the proposal for an ATM network to back up the FDDI backbone ASAP would be appropriate," the boss says.
"I beg your pardon?" I ask, thinking for a moment that I am in some 'twilight zone' replica of my workplace.
"I read your FYI last night on TCP/IP latency. I think we should get the problem solved PQD!"
"I see," I reply, realising what has happened.
I break like the wind to the office and nudge the PFY awake.
@darkphnx
darkphnx / keybase.md
Created September 25, 2014 09:48
Keybase Proof

Keybase proof

I hereby claim:

  • I am darkphnx on github.
  • I am darkphnx (https://keybase.io/darkphnx) on keybase.
  • I have a public key whose fingerprint is D8BA 713C E18D C737 7F4A 5720 7F4F 8BF6 059F CF70

To claim this, I am signing this object: