Skip to content

Instantly share code, notes, and snippets.

View dwierenga's full-sized avatar

Dan Wierenga dwierenga

View GitHub Profile
@dwierenga
dwierenga / keybase.md
Created October 24, 2017 18:26
keybase.md

Keybase proof

I hereby claim:

  • I am dwierenga on github.
  • I am dwierenga (https://keybase.io/dwierenga) on keybase.
  • I have a public key ASBig101GpmlIn9Frw3O88moOEevREIyd_0okwr1BziVqgo

To claim this, I am signing this object:

@dwierenga
dwierenga / diskchecker.pl
Created February 14, 2017 17:18 — forked from bradfitz/diskchecker.pl
diskchecker.pl
#!/usr/bin/perl
#
# Brad's el-ghetto do-our-storage-stacks-lie?-script
#
sub usage {
die <<'END';
Usage: diskchecker.pl -s <server[:port]> verify <file>
diskchecker.pl -s <server[:port]> create <file> <size_in_MB>
diskchecker.pl -l [port]
SELECT
node_name AS "Remote Node",
localtime(0),
pg_xlog_location_diff(pg_current_xlog_insert_location(), flush_location) AS "Bytes Behind This Node",
pid,
application_name,
sent_location,
write_location,
flush_location,
replay_location