Skip to content

Instantly share code, notes, and snippets.

@alpgarcia
alpgarcia / opendistro_others_query.md
Last active February 19, 2020 10:48
Others management in OpenDistro 1.3.0 (Based on ES+Kibana 7.3.2)
  • MAIN QUERY:
{
  "index": "git_enrich",
  "ignore_unavailable": true,
  "preference": 1582107058298
} {
  "aggs": {
    "2": {
      "terms": {
@alpgarcia
alpgarcia / github-token-for-git.md
Last active February 5, 2024 11:40
Configure GitHub token with gnome-keyring
  1. git --version
git version 2.17.1
  1. sudo apt-get install libsecret-1-0 libsecret-1-dev
  2. cd /usr/share/doc/git/contrib/credential/libsecret
  3. sudo make
  4. git config --global credential.helper /usr/share/doc/git/contrib/credential/libsecret/git-credential-libsecret
  5. Next time Git asks for your GitHub username and password, just write your username and paste your token and they'll be stored in your keyring.

Keybase proof

I hereby claim:

  • I am alpgarcia on github.
  • I am alpgarcia (https://keybase.io/alpgarcia) on keybase.
  • I have a public key ASCxUL1iODhxI1Om2QZ2ebhA6DmZvmw9USG54npJLj0XNQo

To claim this, I am signing this object: