Skip to content

Instantly share code, notes, and snippets.

View ukd1's full-sized avatar

Russell Smith ukd1

View GitHub Profile
@ukd1
ukd1 / truncate.php
Created November 29, 2010 20:38
Allows deleting of all keys in a riak bucket using the streaming api
<?php
/**
* Delete all keys from a riak bucket using key streaming
*
* History:
*
* 29-Nov-10
* First version
*
* @author Russell Smith <russell.smith@ukd1.co.uk>
#! /usr/bin/env bash
open -a iTunes http://store.ukd1.co.uk.s3.amazonaws.com/coin.wav || open http://store.ukd1.co.uk.s3.amazonaws.com/coin.wav
sudo fs_usage -w -f filesys mdworker