Skip to content

Instantly share code, notes, and snippets.


Noah Kantrowitz coderanger

View GitHub Profile
coderanger /
Last active Apr 26, 2020
Django on Twisted with Prometheus
Support for running `python -m myapp`.
from myapp.wsgi import main
if __name__ == "__main__":
coderanger / traefik.yaml
Created Nov 6, 2018
Traefik quick start
View traefik.yaml
apiVersion: v1
kind: Namespace
name: traefik
apiVersion: v1
kind: ServiceAccount
name: traefik
coderanger / Dockerfile
Last active Aug 17, 2018
Dockerfile snippet for Caddy build
View Dockerfile
# Caddy build image
FROM abiosoft/caddy:builder
ARG caddy_version="0.11.0"
ARG caddy_plugins="cors,realip,expires,proxyprotocol,prometheus"
# Disable a bunch of standard plugins we don't need.
RUN sed -i "/# build/a sed -Ei '/caddyhttp.(basicauth|browse|fastcgi|markdown|templates|websocket)/d' /go/src/" /usr/bin/

From: 7N5C

Subject: Converstion with you


My name is Stella Hughes and I would like to have a conversation with you about a project I have been trying to develop for the past several years.

coderanger /
Last active Jan 6, 2018
Old clan warfare idea I found

Clan Warfare Revamp Make-A-KoL

Elevator Pitch

Make clan war be a turned-based tower defense minigame. Towers and tower upgrades have an escalating cost so larger clans don't have an advantage. Each player gets one clan attack a day if they are participating and can attack either a random clan for material rewards or a specific clan for bragging rights points (similar to PvP).

coderanger / chef-server.rb
Created Apr 4, 2017
ssd's config example for Chef Server external stuffs
View chef-server.rb
fqdn "FQDN"
postgresql['external'] = true
postgresql['vip'] = 'EXTERNAL_PG_IP'
postgresql['db_superuser'] = 'DB_SUPERUSER'
postgresql['db_superuser_password'] = 'DB_SUPERUSER_PASSWORD'
opscode_solr4['external'] = true
opscode_solr4['external_url'] = 'http://EXTERNAL_ES_IP:9200'
opscode_erchef['search_provider'] = 'elasticsearch'
opscode_erchef['search_queue_mode'] = 'batch'
bookshelf['storage_type'] = :sql
coderanger /
Created Sep 6, 2016
Automatically extract diecut paths for an image.
#!/usr/bin/env python2
from __future__ import print_function
import argparse
import re
import sys
import attr
import cv2
import numpy
coderanger / example.rb
Created Jun 15, 2016
Example of subclassing the Unicorn resource
View example.rb
module MyUnicorn
# Subclass the resource.
class Resource < PoiseApplicationRuby::Resources::Unicorn::Resource
# Give it a new name so we can find it.
# Add a new property. Could do more here.
# Subclass the provider.
coderanger / file.rb
Created May 18, 2016
File transport API sketch.
View file.rb
# Remote file or directory proxy object.
# @since 1.0.0
class File
# Create a proxy object. All data is lazy-loaded so this does very little.
# @param connection [Airlift::Connection] Connection object to use for
# operations.
# @param path [String] File or directory path.
# @param follow_symlink [Boolean] Follow symlinks when getting file info.

Keybase proof

I hereby claim:

  • I am coderanger on github.
  • I am coderanger ( on keybase.
  • I have a public key whose fingerprint is AF25 8FBF 2D56 96D9 5764 0543 445B 6255 C512 B26E

To claim this, I am signing this object:

You can’t perform that action at this time.