Skip to content

Instantly share code, notes, and snippets.

\i path_to_sql_file
\l - show all databases
\c <db-name> - connect to database
\d - show all tables (including sequences)
\dt - show all tables
\d+ <table-name> - desc table
\dn - show all schemas
\db - show all tablespaces
\q - quit (Ctrl+C)
@epixoip
epixoip / cloudflare_challenge
Last active December 2, 2023 11:53
How I obtained the private key for www.cloudflarechallenge.com
I wasn't first to get the key. Nor was I second, third, or even fourth. I'm probably not even the
10th to get it (ok, looks like I was the 8th.) But I'm happy that I was able to prove to myself
that I too could do it.
First, I have to admit I was a skeptic. Like the handful of other dissenters, I had initially
believed that it would be highly improbable under normal conditions to obtain the private key
through exploiting Heartbleed. So this was my motivation for participating in Cloudflare's
challenge. I had extracted a lot of other things with Heartbleed, but I hadn't actually set out to
extract private keys. So I wanted to see first-hand if it was possible or not.
@cowboy
cowboy / jquery-param.js
Created October 9, 2009 19:57
jQuery.param, pulled out of 1.4.2, for use with 1.3.2 or earlier.
// jQuery.param, pulled out of 1.4.2
(function($){
var r20 = /%20/g;
// Serialize an array of form elements or a set of
// key/values into a query string
$.param = function( a, traditional ) {
var s = [];