Skip to content

Instantly share code, notes, and snippets.

View waisbrot's full-sized avatar

Nathaniel Waisbrot waisbrot

  • Boston, MA, USA
View GitHub Profile
@waisbrot
waisbrot / ids.txt
Last active July 28, 2021 06:05
Nuclear Throne weapon IDs
1 Revolver
2 Triple Machinegun
3 Wrench
4 Machinegun
5 Shotgun
6 Crossbow
7 Grenade Launcher
8 Double Shotgun
9 Minigun
10 Auto Shotgun
@waisbrot
waisbrot / __init__.py
Created March 23, 2018 01:11
Nationbuilder demo
from flask import Flask, url_for, redirect, request, render_template, Markup
from .nbapi import NBReal, NBMock, RequestError
import os
import json
import sys
from traceback import format_tb
app = Flask(__name__)
if os.getenv('NB_MOCK', default='false').lower() == 'true':
@waisbrot
waisbrot / Dockerfile
Created November 23, 2015 17:28
Erlang in Docker
FROM <<<private amazon-linux base-image>>>
ENV PATH=/opt/erlang/bin:/opt/rebar/bin:$PATH
COPY install.bash /tmp/
RUN ["/tmp/install.bash"]
@waisbrot
waisbrot / gist:c33760e4bcd9edee9a6e
Created July 6, 2015 20:43
docker-machine output
docker-machine create --vmwarefusion-cpu-count=2 --vmwarefusion-disk-size=80000 --vmwarevsphere-memory-size=2048 --driver=vmwarefusion --swarm --swarm-master dev
Creating SSH key...
Creating VM...
Starting dev...
Waiting for VM to come online...
Error creating machine: Too many retries. Last error: Maximum number of retries (60) exceeded
You will want to check the provider to make sure the machine and associated resources were properly removed.
# DEBUG=1 rebar3 update
===> Error loading registry: {read_error,
{file_error,
"/root/.cache/rebar3/hex/com/amazonaws/s3/s3.hex.pm/tarballs/packages/registry",
enoent}}
===> throw {error,
{rebar_prv_install_deps,
{load_registry_fail,<<"rebar3_hex">>}}} [{rebar_prv_install_deps,
get_package,
2,