Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am heartpunk on github.
  • I am heartpunk (https://keybase.io/heartpunk) on keybase.
  • I have a public key whose fingerprint is 53A7 0C8E D2A1 4774 F4B4 11BB 9B5A 9717 99E5 9EB8

To claim this, I am signing this object:

Database Cracking (link)

This paper explores the possibility of optimizing the accessibility of data as it is read, rather than when it is written. It's a pretty great concept, and at least in their benchmarks it performs well. There are some serious caveats that are skimmed over in the paper, but it's an inspiringly original take, nonetheless.

Dremel: Interactive Analysis of Web-Scale Datasets (link)

This is what it says on the tin. The novel things in this paper are a deterministic, fast algorithm for mapping sparse, deeply nested, arbitrarily repeated, data to a seemingly tabular layout. Additionally, the overall architecture of the system seems to be a novel way of combining existing concepts from the search and database fields. Particularly important is the ability to consider a query fini

vals = [(a,b,c) for a in range(10) for b in range(10) for c in range(10)]
vals = []
for a in range(10):
for b in range(10):
for c in range(10):
vals.append((a,b,c))
@heartpunk
heartpunk / data.csv
Created February 2, 2016 05:26
calculate correlation between tax burden and per capita income.
State Burden Rate Income per Capita Taxes Paid to Own State Per Capita Taxes Paid to Other States Per Capita Total Taxes Paid Per Capita
Alabama 8.7% $35,336.66 $2,141.95 $925.09 $3,067.04
Alaska 6.5% $49,779.58 $1,986.21 $1,242.48 $3,228.69
Arizona 8.8% $37,011.65 $2,283.47 $992.05 $3,275.52
Arkansas 10.1% $34,862.10 $2,552.18 $966.83 $3,519.01
California 10.9% $47,807.79 $4,126.38 $1,110.81 $5,237.19
Colorado 8.9% $48,313.50 $2,967.52 $1,336.18 $4,303.70
Connecticut 12.6% $62,374.15 $5,515.62 $2,353.76 $7,869.38
Delaware 10.2% $43,437.33 $2,610.01 $1,802.16 $4,412.17
District of Columbia 10.7% $70,836.83 $5,230.92 $2,309.81 $7,540.73
#!/bin/zsh
echo "please enter your password to prime sudo"
sudo echo "thank you! "
repeat 50 open http://twitter.com
CHROME_PID=$(ps -o pid,ppid -p `pgrep -i chrome` | grep '[^0-9]1$' | awk '{print $1;}')
ps -o rss,vsz -p $CHROME_PID
sleep 15
ps -o rss,vsz -p $CHROME_PID
### Keybase proof
I hereby claim:
* I am tehgeekmeister on github.
* I am tehgeekmeister (https://keybase.io/tehgeekmeister) on keybase.
* I have a public key whose fingerprint is A342 7E25 7E75 272C 9432 CB69 9CE4 FB74 7A91 43D1
To claim this, I am signing this object:
➜ ~ mongodump -h 10.16.26.227:31000 -o dumpdir --oplog
connected to: 10.16.26.227:31000
assertion: 17369 Backing up users and roles is only supported for clusters with auth schema versions 1 or 3, found: 5
@heartpunk
heartpunk / equals_plus_does_not_equal_plus_equals.txt
Created January 25, 2014 04:01
+= is not equivalent to =+. This shows some about how.
2.0.0-p247 :005 > pp Ripper.lex('foo += 1');nil
[[[1, 0], :on_ident, "foo"],
[[1, 3], :on_sp, " "],
[[1, 4], :on_op, "+="],
[[1, 6], :on_sp, " "],
[[1, 7], :on_int, "1"]]
=> nil
2.0.0-p247 :006 > pp Ripper.lex('foo =+ 1');nil
[[[1, 0], :on_ident, "foo"],
[[1, 3], :on_sp, " "],
class FieldType < ActiveRecord::Base
has_many :model_object_types
has_many :field_values
attr_accessible :name
end
class FieldValue < ActiveRecord::Base
has_one :field_type
has_many :object_models
attr_accessible :value