Instantly share code, notes, and snippets.

View cloudbleed.md

Cloudbleed: Users can't fix themselves

TL;DR

Site-owners MUST invalidate all their users sessions and tokens now, and might want to consider doing so again in the not distant future.

Cloudflare domain lists

There has been a great deal of discussion about the Cloudflare domain lists that are being constructed. These lists are not really all that useful for cleaning up this mess. Let me explain.

View keybase.md

Keybase proof

I hereby claim:

  • I am raggi on github.
  • I am raggi (https://keybase.io/raggi) on keybase.
  • I have a public key whose fingerprint is 2F4F F34C A2E1 06F6 67A6 0378 BA61 B1EC D0C6 87C3

To claim this, I am signing this object:

View handler.js
const Handler = Base => class extends Base {
handleEvent (evt) {
return this[`on${evt.type.replace(/^./, c => c.toUpperCase())}`](evt)
}
}
View bin-compile
#!/bin/bash
BUILD_DIR=$1
CACHE_DIR=$2
ENV_DIR=$3
GOBALL=go1.4.1.linux-amd64.tar.gz
mkdir -p $CACHE_DIR
export PATH=$PATH:$CACHE_DIR/go/bin
View description.md

If you're currently waiting for your bags, because you flew sometime since the 4th of January 2015, and you came in via SFO: go to the airport they're there!

Customer service will tell you they're "with the delivery company" (they've been telling me this for three days). They'll tell you that "once it's with the delivery company, it goes to their warehouse" - there is no warehouse, at SFO it's ONE GUY as far as I can tell. They won't give you his name (it's Eddie - dial 650 652 5600 for an amusing full mailbox and "professional response" (it's been this way for over a year AFAICT - search around for the company name)). The company is called "Sterling Baggage" (not "whereismysuitcase.com", which is run by Bags Inc. who are similarly knowledge-less at all public phone numbers). If you call the SFO office, the lady there will tell you "it's on it's way" (which is also a lie).

I took the risk, given I'd been told by everyone that it was "on it's way, today" for the last three days, of driving up there. I'm

View rack_sse.ru
# rack_sse.ru
#
# An example of basic real-time, single-room broadcast chat using Server Sent
# Events in plain old Rack. This example does NOT use hijack, or the async
# hacks, it just relies on a well implemented threaded Rack server (at time of
# writing this will therefore only work with puma!). Other servers should be
# fixed to support this, as it is pretty critical to how Rack *should* work on
# most servers. The only spec-acceptable failure in this case is not flushing
# the content stream on each yield (for which the rack spec has no workaround
# today).
View dir.rb
# Bugs..
p __FILE__, __dir__, eval('__FILE__', binding, __FILE__, 0), eval('__dir__', binding, __FILE__, 0)
# "dir.rb"
# "/Users/raggi"
# "dir.rb"
# nil
View security@rubygems.org.pub
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v1.4.12 (Darwin)
mQINBFEkHmoBEACqeBffB0ytt4m3qvZi3+PLDeh8aQ8irYJl4BXm+A5Gih0ApTE1
+ahMCFuqSfN0MJDvFxcFYPHto4GTQZqG8h+J0AVnh/8zoJnVrvi6k/il1gs0oZSz
lJ9xJb5Wu9sL0ohST51DcOW/JnVEEsz5EamnzNwxFsIHLFmqmZ9gRFeeauKWMpQl
GUlFggMuuGb+LUDEsI3XMv4ISce1F3vugNLXrhanpjKH/qmqTgDQlxIazvxzI87b
VArV9Ol5MSc7o+xvFPR6vozLlGM4I9rUj/kfwVQX6A4ga6TE9D9qdArqRtDPARQN
0vkApbbpQilQy0ydw50O+M6MtKaxqe65h7y2cxr5enmaZNdqxRByv+qf7ilKXcmr
daCoTVPvWi9H/o2Ufxia6GrC4E5qaEL35WWADYV+LNH2P33izu6Vnw0CCfNsFBlw
View duffcpy.c
switch (count % 8)
{
case 0:;
<D3492>:;
*to++ = *from++ ;
case 7:;
*to++ = *from++ ;
case 6:;
*to++ = *from++ ;
case 5:;
View unsure.rb
$sure = false
t = Thread.new {
begin
# nada
ensure
sleep
$sure = true
# cleanup all the things
end