Skip to content

Instantly share code, notes, and snippets.

@zzztimbo
zzztimbo / remove.sh
Created June 3, 2020 16:57
remove all topics with a certain name
kubectl get kt | grep snack | awk -v col=1 '{print $col}' | xargs -L 1 kubectl delete kt
curl -XPUT "${ES_HOST:-localhost}:9200/$1"
docker stop $(docker ps -a -q)
docker rm $(docker ps -a -q)
docker rmi $(docker images -a -q)

Keybase proof

I hereby claim:

  • I am zzztimbo on github.
  • I am zzztimbo (https://keybase.io/zzztimbo) on keybase.
  • I have a public key whose fingerprint is 6932 1367 6C09 C219 D104 C273 7F0D 5DC8 BCB3 E508

To claim this, I am signing this object:

@zzztimbo
zzztimbo / gist:b0d12be3326f907396e5
Created January 5, 2016 18:52
git branch delete
git push origin --delete test
git branch -D test
@zzztimbo
zzztimbo / cellcounter.rb
Created July 30, 2011 00:11 — forked from noomerikal/cellcounter.rb
CellCounter for HBase Scan with TimeRange
=begin
Usage: /bin/hbase shell cellcounter.rb
=end
import java.text.SimpleDateFormat
import java.text.ParsePosition
import java.util.Date
import org.apache.hadoop.hbase.client.HTable
import org.apache.hadoop.hbase.client.Scan