Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am radoondas on github.
  • I am radoondas (https://keybase.io/radoondas) on keybase.
  • I have a public key ASB1nPRdtno3FLnaHLf2Ql_8UbAPD6ha-MGIZCTbaGZvpwo

To claim this, I am signing this object:

@radoondas
radoondas / gist:e8edd5b86ee7b547170adfde9e5b78d4
Created January 6, 2019 21:08
How to remove git submodule
How to remove git submodule
```
submodule="folder/submodule"
git rm "$submodule"
rm -rf ".git/modules/$submodule"
git config -f ".git/config" --remove-section "submodule.$submodule" 2> /dev/null
# Commit the change
@radoondas
radoondas / remove_object.md
Last active December 8, 2017 10:34
How to remove object in array from document in Elasticsearch using Painless scripting language

Check if you have index with the same name in your cluster and delete if neccesary

curl -XGET 'http://localhost:9200/_cat/indices/myindex'
yellow open myindex peVBKbsiRXKufcz_GHsUpA 5 1 1 0 9.8kb 9.8kb

Index new document

curl -XPUT 'http://localhost:9200/myindex/docs/1' -d '{
"type": "topic",