Skip to content

Instantly share code, notes, and snippets.

View wuputah's full-sized avatar
🐘

Jonathan Dance (JD) wuputah

🐘
View GitHub Profile

Hydra Performance Microbenchmark

Important: This microbenchmark is not intended to represent any real workload. Compression ratios, and therefore performance, will depend heavily on the specific workload. This is only for the purpose of illustrating a "columnar friendly" contrived workload that showcases the benefits of columnar.

Schema

The Culture Clash, Jean Donaldson

(2005, 2nd ed.)

Jean is a pioneer in her field, and this book is her magnum opus. Truly groundbreaking work. Must read. However, the book is best read cover-to-cover and makes a poor reference, until the last chapter where Jean spells out step-by-step training guides. That said, Jean's focus is on training and less on the immediate concerns you will have when you get a puppy, and while it certainly covers socialization, housebreaking and initial concerns about your first days with your pup are not emphasized. However, some of the socialization suggestions are unrealistic for those of us who are not so extroverted.

Train Your Dog Like a Pro, Jean Donaldson

(2010)

require 'thread'
def QPromise(*args, &block)
QPromise.new(*args, &block)
end
class QPromise < BasicObject
# Allows you to change the defaults, e.g.:
# QPromise.config[:thread_limit] = 100
MAX_CP = 750
scaling_factor = MAX_CP ** 0.995
xp = ->(level) { ((level / scaling_factor) + 0.085) * 400_000 }
for i in 10..MAX_CP
puts "#{i}: #{xp.(i).round}"
end
// ==UserScript==
// @name iRacing adblock
// @namespace http://tampermonkey.net/
// @version 1.0
// @description Disable advertising in the background on the iRacing member site.
// @match http://members.iracing.com/membersite/*
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js
// @grant none
// ==/UserScript==
(function($) {
### Keybase proof
I hereby claim:
* I am wuputah on github.
* I am wuputah (https://keybase.io/wuputah) on keybase.
* I have a public key ASCcjtRJCYv4DOgWdL6vLPD79Jp2eADuT0ubzbMpPM0l9wo
To claim this, I am signing this object:
if Array.new(10) { Time.now.nsec % 1000 }.sum == 0
puts "nsec precision not available"
exit
end
a = 0
10_000_000.times do
t = Time.now
d = ( sprintf("%.9f", t.to_f).split('.')[1].to_i - t.nsec ).abs
# edge case around 0 nsec where .to_f results in .999999999
@wuputah
wuputah / letter.md
Last active March 30, 2017 06:09
My letter to my family about the changes in broadband privacy.

Most outlets are not getting this story right. They don't understand the technical details behind what can be tracked, sold, or how your ISP (Internet Service Provider) can advertise to you.

What is changing?

Actually, nothing. The Obama-era rule did not go into effect, but ISPs may have stopped efforts to sell this data due to the new FCC regulation. I would like to think ISPs are nervous about making their customers angry, and realize they could face backlash if they sell your data. That means that all of this is already true, yet you don't get this type of advertising right now (as far as you know).

Note that this also applies to your mobile data carrier anytime you use the Internet on your smartphone (not over wifi, though whatever wifi network you are connected to cannot be trusted either). However, mobile carriers may be subject to different (older) regulations since they are a "telephone" company. I am a computer nerd, not a telecommunications lawyer.

What can my ISP track about me?

Vision

What I want to do this year

Values

/shrug

Methods

@wuputah
wuputah / hosts
Created October 21, 2016 18:13
/etc/hosts
151.101.45.6 status.heroku.com
54.214.39.172 status-api.heroku.com
54.225.133.67 support.heroku.com
54.225.188.133 api.heroku.com
23.21.173.253 api-direct.heroku.com
192.30.253.113 github.com
192.30.253.118 gist.github.com
52.21.186.9 splunk.herokai.com
104.244.42.193 twitter.com
151.101.48.133 assets-cdn.github.com