Skip to content

Instantly share code, notes, and snippets.

View bredman's full-sized avatar

Ben Redman bredman

  • Outpost
  • Seattle
View GitHub Profile
@bredman
bredman / 34tfs
Last active August 29, 2015 14:15
11 new files
asdd
@bredman
bredman / 1as
Last active August 29, 2015 14:15
10 files
sdf
@bredman
bredman / 1sadf
Last active August 29, 2015 14:15
12 files
sdafasd
asdf
@bredman
bredman / file1
Created February 11, 2015 16:55
My test gist
File 1 text
#!/bin/bash
set -o nounset
set -o errexit
NUM_PARALLEL=4
TMP_DIR=`mktemp -d`
COPY_SCRIPT=/home/ec2-user/59407c287d8e3e074869/pg_shard_copy.sql
echo "splitting $1 to $TMP_DIR..."
@bredman
bredman / gist:e52c59de26cbc8255b1e
Created July 29, 2014 20:58
Set count distinct error rate
postgres=# SET count_distinct_error_rate to 0.005;
SET
postgres=#
@bredman
bredman / gist:7d8f6c93944e79764f40
Created July 29, 2014 20:57
Install HLL extension
postgres=# CREATE EXTENSION hll;
CREATE EXTENSION
postgres=#
@bredman
bredman / gist:3f72c67ae74b1923bb08
Created July 29, 2014 20:54
Install CitusDB contrib
localhost# wget http://packages.citusdata.com/contrib/citusdb-contrib-3.0.0-1.x86_64.rpm
localhost# sudo rpm --install citusdb-contrib-3.0.0-1.x86_64.rpm