ceving 12 hours ago

It is so slow:

  $ sudo wc -l /var/log/syslog
  4982 /var/log/syslog
  
  $ sudo cat /var/log/syslog | bash -c "time gonzo"
  
  real    6m13,359s
  user    6m42,317s
  sys     0m28,946s
Six minutes on my virtual machine for 5 thousand lines.
sixonesixo a day ago

good job, i really like it! it would be awesome to have the ability to integrate it in k9s

  • destari a day ago

    that would be cool! Love that idea

    • sixonesixo a day ago

      i've found out that is possible! with k9s plugins. you need to create a yaml file with the gonzo command you want to launch

      the file is `$XDG_CONFIG_HOME/k9s/plugins.yaml`

      and here's an example:

        plugins:
           gonzo-ai:
             shortCut: g
             description: "Gonzo: AI log analysis"
             scopes:
             - po
             command: sh
             background: false
             args:
             - -c
             - "kubectl logs -f $NAME -n $NAMESPACE --context $CONTEXT | gonzo --ai-model=gpt-4"
      • J0nR a day ago

        Nice work! That's awesome

edem a day ago

What lib did you use for the TUI part?

  • zipping1549 a day ago

    Looking at the source they're using bubbletea.

mr90210 a day ago

Why call it Gonzo? This is a well-known word in other realms.

https://en.m.wikipedia.org/wiki/Gonzo_pornography

deafpolygon 2 days ago

so would we be gonzo for using it?

  • destari a day ago

    You'd be gonzo NOT to

  • J0nR a day ago

    Full Gonzo!!