Skip to content

Instantly share code, notes, and snippets.

JD wuputah

Block or report user

Report or block wuputah

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View qpromise.rb
require 'thread'
def QPromise(*args, &block)*args, &block)
class QPromise < BasicObject
# Allows you to change the defaults, e.g.:
# QPromise.config[:thread_limit] = 100
# confirm you can access the internet
if [[ ! $(curl -Is | head -n 1) =~ "200 OK" ]]; then
echo "Your Internet seems broken. Press Ctrl-C to abort or enter to continue."
# make 2 partitions on the disk.
parted -s /dev/sda mktable msdos
parted -s /dev/sda mkpart primary 0% 100m
parted -s /dev/sda mkpart primary 100m 100%
require 'my_bouncer'
require 'my_app'
use MyBouncer
run MyApp
View 1-xp.rb
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}"
View iracing-adblock.js
// ==UserScript==
// @name iRacing adblock
// @namespace
// @version 1.0
// @description Disable advertising in the background on the iRacing member site.
// @match*
// @require
// @grant none
// ==/UserScript==
(function($) {

Your Vision

What is a vision?

Your vision answers the question "What do I want?" A clear vision help you communicate why you're here and what impact you're going to have.

Your vision should be aligned with the company vision, with your manager's V2MOM, and it should be personal. It should be an honest reflection of your own vision for your own work.

If you manage a team, it should be reflective of the purpose of the team and your collective impact.

View gist:4feb2215a2825d96639b34cfe772cccb
### Keybase proof
I hereby claim:
* I am wuputah on github.
* I am wuputah ( on keybase.
* I have a public key ASCcjtRJCYv4DOgWdL6vLPD79Jp2eADuT0ubzbMpPM0l9wo
To claim this, I am signing this object:
View time-to_f.rb
if { % 1000 }.sum == 0
puts "nsec precision not available"
a = 0
10_000_000.times do
t =
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 /
Last active Mar 30, 2017
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?



What I want to do this year




You can’t perform that action at this time.