Skip to content

Instantly share code, notes, and snippets.

View gabrielf's full-sized avatar

Gabriel Falkenberg gabrielf

View GitHub Profile
@jprante
jprante / bokmal-sort.sh
Last active August 18, 2021 08:50
Norwegian Bokmål sort with Elasticsearch
# Norwegian Bokmål sort with ICU
# ES 0.90.2
# ./bin/plugin --install elasticsearch/elasticsearch-analysis-icu/1.10.0
curl -XDELETE 'localhost:9200/test'
curl -XPUT 'localhost:9200/test' -d '
{
"settings" : {
@schacon
schacon / gist:942899
Created April 26, 2011 19:19
delete all remote branches that have already been merged into master
$ git branch -r --merged |
grep origin |
grep -v '>' |
grep -v master |
xargs -L1 |
awk '{split($0,a,"/"); print a[2]}' |
xargs git push origin --delete