Skip to content

Instantly share code, notes, and snippets.

View NathanZook's full-sized avatar

Nathan Zook NathanZook

  • Zook Enterprises
  • Seattle, WA
View GitHub Profile
class R
def initialize
@methods = {}
end
def method(name)
@methods[name]
end
def declare(name, &blk)
@NathanZook
NathanZook / dci_role_equality.rb
Last active August 29, 2015 13:57
Overcoming an identity crisis
class Role < BasicObject
# Nope, these role objects are not well-behaved objects __at_all__
alias_method :role_eql?, :eql?
def eql?(x)
x.eql? @data_object
end
def hash
@data_object.hash
end
root@darksky:/etc# apt-get update
Ign http://extra.linuxmint.com qiana InRelease
Ign http://packages.linuxmint.com qiana InRelease
Ign http://archive.ubuntu.com qiana InRelease
Ign http://us.archive.ubuntu.com qiana InRelease
Get:1 http://extra.linuxmint.com qiana Release.gpg [198 B]
Get:2 http://packages.linuxmint.com qiana Release.gpg [198 B]
Ign http://archive.ubuntu.com qiana-updates InRelease
Ign http://us.archive.ubuntu.com qiana-updates InRelease
# using VirtualBox version $VBOX_VERSION
FROM boot2docker/boot2docker
RUN apt-get install -y p7zip-full
RUN mkdir -p /vboxguest && \
cd /vboxguest && \
curl -L -o vboxguest.iso http://download.virtualbox.org/virtualbox/$VBOX_VERSION/VBoxGuestAdditions_$VBOX_VERSION.iso && \
7z x vboxguest.iso -ir'!VBoxLinuxAdditions.run' && \
sh VBoxLinuxAdditions.run --noexec --target . && \
Requirement already up-to-date: pip in /usr/lib/python2.7/site-packages
Collecting ansible==2.3.1.0 (from -r /requirements.txt (line 1))
Downloading ansible-2.3.1.0.tar.gz (4.3MB)
Collecting awscli==1.11.36 (from -r /requirements.txt (line 2))
Downloading awscli-1.11.36-py2.py3-none-any.whl (1.1MB)
Collecting boto==2.45.0 (from -r /requirements.txt (line 3))
Downloading boto-2.45.0-py2.py3-none-any.whl (1.3MB)
Collecting boto3==1.4.4 (from -r /requirements.txt (line 4))
Downloading boto3-1.4.4-py2.py3-none-any.whl (127kB)
Collecting botocore==1.4.93 (from -r /requirements.txt (line 5))
---- Minecraft Crash Report ----
// Don't do that.
Time: 11/22/17 11:04 PM
Description: Ticking block entity
java.lang.NullPointerException: Ticking block entity
at cofh.thermalexpansion.block.machine.TilePulverizer.processStart(TilePulverizer.java:109)
at cofh.thermalexpansion.block.machine.TileMachineBase.func_145845_h(TileMachineBase.java:114)
at net.minecraft.world.World.func_72939_s(World.java:1939)