Skip to content

Instantly share code, notes, and snippets.

View tmornini's full-sized avatar

Tom Mornini tmornini

View GitHub Profile
java.lang.ClassNotFoundException: java.lang.reflect.InaccessibleObjectException
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:560)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:348)
at java.io.ObjectInputStream.resolveClass(ObjectInputStream.java:683)
at hudson.remoting.MultiClassLoaderSerializer$Input.resolveClass(MultiClassLoaderSerializer.java:132)
@tmornini
tmornini / gist:6a9a2ce0d465928721251b8be2224990
Last active November 18, 2016 07:00
http-spec is coming along nicely!
http-spec is available at: https://github.com/tmornini/http-spec
validating all functionality...
[post-awin-api.htsf:1:22] 8.666691ms
SUCCESS: +1 9.086501ms
[get-releases.htsf:1:5] 10.01713ms
@tmornini
tmornini / gist:d4f5a9185698e5b000b55f6a8dca5b37
Created October 27, 2016 19:52
Go builds static binaries on OS X, dynamic binaries on Ubuntu
If I build on Mac OS X 10.11.6 with Go 1.7.3 installed from brew with:
GOOS=linux GOARCH=amd64 go build -v
And then check the executable:
file purchases
purchases: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), statically linked, not stripped
The same on semaphore-ci (and other CI systems) on Ubuntu 14.04 and also built with Go 1.7.3:
file purchases
purchases: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), not stripped
#!/usr/bin/env ruby
require 'aws-sdk-core'
require 'aws-sdk-resources'
sns = Aws::SNS::Client.new
sns_create_response =
sns.create_topic name: 'sns_test'
@tmornini
tmornini / userdata.bash
Last active November 11, 2019 21:17
Docker -> Host Syslog -> Loggly for Amazon AWS ECS
#!/bin/bash -x
exec > /tmp/user-data.log 2>&1
mkdir -p /var/spool/rsyslog
(
mkdir -p /etc/rsyslog.d/keys/ca.d
cd /etc/rsyslog.d/keys/ca.d
curl -O https://logdog.loggly.com/media/logs-01.loggly.com_sha12.crt
@tmornini
tmornini / gist:8c1f855fb811ae86ccb0
Created November 10, 2015 00:43
Docker/Quay.io hash weirdness: How did the image ID mutate from 5e0980f79b63 -> 40a52d6ca462?
$ docker -v
Docker version 1.8.3, build f4bf5c7
$ docker pull gliderlabs/logspout:master
$ docker history gliderlabs/logspout:master
IMAGE CREATED CREATED BY SIZE COMMENT
5e0980f79b63 9 weeks ago /bin/sh -c #(nop) ONBUILD RUN cd /src && ./bu 0 B
87d9ab176e8e 9 weeks ago /bin/sh -c #(nop) ONBUILD COPY ./modules.go / 0 B
3a7ba44aa875 9 weeks ago /bin/sh -c cd /src && ./build.sh "$(cat VERSI 9.621 MB
baa3d344bd8c 9 weeks ago /bin/sh -c #(nop) COPY dir:b7de7efabd9eb9bba3 90.86 kB
Block Reward Era BTC/block Year Start BTC BTC Added End BTC BTC % Increase End BTC % of Limit Supply Inflation Rate
0 : 1 : 50.00000000 : 2009.008 : 0.00000000 : 10500000.00000000 : 10500000.00000000 : Inf% : 50.00000006% : Inf%
210000 : 2 : 25.00000000 : 2013.000 : 10500000.00000000 : 5250000.00000000 : 15750000.00000000 : 50.00000000% : 75.00000008% : 10.66819197%
420000 : 3 : 12.50000000 : 2016.993 : 15750000.00000000 : 2625000.00000000 : 18375000.00000000 : 16.66666667% : 87.50000010% : 3.92898776%
630000 : 4 : 6.25000000 : 2020.986 : 18375000.00000000 : 1312500.00000000 : 19687500.00000000 : 7.14285714% : 93.75000010% : 1.73978273%
840000 : 5 : 3.12500000 : 2024.978 : 19687500.00000000 : 656250.00000000 : 20343750.00000000 : 3.33333333% : 96.87500011% : 0.82311468%
1050000 :
Verifying that +tmornini is my openname (Bitcoin username). https://onename.com/tmornini
Using worker: worker-linux-1-2.bb.travis-ci.com:travis-linux-11
system_info
Build system information
Build language: ruby
Build image provisioning date and time
Mon Dec 8 00:37:19 UTC 2014
lsb_release -a
Distributor ID: Ubuntu
Description: Ubuntu 12.04 LTS
Release: 12.04
v3 $ dev/guard
10:53:00 - INFO - Guard is now watching at '/Users/tmornini/subledger/v3'
[1] guard(main)>
10:53:02 - INFO - Run all
Run options: --seed 37703
# Running:
.....................S..............................S......S................................................S.................................................................................................................................S...S.............................................S....................................................SS...........................................