home.social

#jq — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #jq, aggregated by home.social.

  1. Zabbix + grafana – część 8 – Parser JQ

    Wstęp W poprzednim artykule przyjrzeliśmy się parserowi JSONata — narzędziu, które dobrze sprawdza się tam, gdzie odpowiedzi z API Zabbixa wymagają czegoś więcej niż prostego filtrowania i projekcji pól. Pozwala ono zamknąć dość złożoną logikę w jednym miejscu, kosztem nieco trudniejszej składni. JSONata nie jest jednak jedynym sposobem na przetwarzanie...

    #Aktualności #Narzędzia #Teksty #Api #Devops #Grafana #Jq #Monitoring #Observability

    sekurak.pl/zabbix-grafana-czes

  2. Zabbix + grafana – część 8 – Parser JQ

    Wstęp W poprzednim artykule przyjrzeliśmy się parserowi JSONata — narzędziu, które dobrze sprawdza się tam, gdzie odpowiedzi z API Zabbixa wymagają czegoś więcej niż prostego filtrowania i projekcji pól. Pozwala ono zamknąć dość złożoną logikę w jednym miejscu, kosztem nieco trudniejszej składni. JSONata nie jest jednak jedynym sposobem na przetwarzanie...

    #Aktualności #Narzędzia #Teksty #Api #Devops #Grafana #Jq #Monitoring #Observability

    sekurak.pl/zabbix-grafana-czes

  3. Zabbix + grafana – część 8 – Parser JQ

    Wstęp W poprzednim artykule przyjrzeliśmy się parserowi JSONata — narzędziu, które dobrze sprawdza się tam, gdzie odpowiedzi z API Zabbixa wymagają czegoś więcej niż prostego filtrowania i projekcji pól. Pozwala ono zamknąć dość złożoną logikę w jednym miejscu, kosztem nieco trudniejszej składni. JSONata nie jest jednak jedynym sposobem na przetwarzanie...

    #Aktualności #Narzędzia #Teksty #Api #Devops #Grafana #Jq #Monitoring #Observability

    sekurak.pl/zabbix-grafana-czes

  4. Zabbix + grafana – część 8 – Parser JQ

    Wstęp W poprzednim artykule przyjrzeliśmy się parserowi JSONata — narzędziu, które dobrze sprawdza się tam, gdzie odpowiedzi z API Zabbixa wymagają czegoś więcej niż prostego filtrowania i projekcji pól. Pozwala ono zamknąć dość złożoną logikę w jednym miejscu, kosztem nieco trudniejszej składni. JSONata nie jest jednak jedynym sposobem na przetwarzanie...

    #Aktualności #Narzędzia #Teksty #Api #Devops #Grafana #Jq #Monitoring #Observability

    sekurak.pl/zabbix-grafana-czes

  5. Zabbix + grafana – część 8 – Parser JQ

    Wstęp W poprzednim artykule przyjrzeliśmy się parserowi JSONata — narzędziu, które dobrze sprawdza się tam, gdzie odpowiedzi z API Zabbixa wymagają czegoś więcej niż prostego filtrowania i projekcji pól. Pozwala ono zamknąć dość złożoną logikę w jednym miejscu, kosztem nieco trudniejszej składni. JSONata nie jest jednak jedynym sposobem na przetwarzanie...

    #Aktualności #Narzędzia #Teksty #Api #Devops #Grafana #Jq #Monitoring #Observability

    sekurak.pl/zabbix-grafana-czes

  6. In meiner swaybar (die Leiste, die #sway haben kann), habe ich ein Scratchpad, das isr der Bereich, in den ich alle Fenster werfen kann, die ich momentan nicht sehen will.
    Die Bar wird von einem Shellskript gebastelt, das für das Scratchpad diese Funktion hat:

    get_scratchpad() {
        windows=$(swaymsg -t get_tree | jq -r '
            .. | objects
            | select(.name? == "__i3_scratch")
            | .floating_nodes[]
            | (.app_id // .window_properties.class // .name)
            | if test("^\\..*\\.bin$")
              then sub("^\\."; "") | sub("\\.bin$"; "")
              else .
              end
        ')
    
        if [ -z "$windows" ]; then
            echo "Scratchpad: empty"
        else
            echo "Scratchpad: $(echo "$windows" | paste -sd " ") |"
        fi
    }

    Ergibt momentan:

    Ohne #ChatGPT hätte ich das im Leben nicht hinbekommen, #jq ist zwar mächtig, aber auch hart.

  7. In meiner swaybar (die Leiste, die #sway haben kann), habe ich ein Scratchpad, das isr der Bereich, in den ich alle Fenster werfen kann, die ich momentan nicht sehen will.
    Die Bar wird von einem Shellskript gebastelt, das für das Scratchpad diese Funktion hat:

    get_scratchpad() {
        windows=$(swaymsg -t get_tree | jq -r '
            .. | objects
            | select(.name? == "__i3_scratch")
            | .floating_nodes[]
            | (.app_id // .window_properties.class // .name)
            | if test("^\\..*\\.bin$")
              then sub("^\\."; "") | sub("\\.bin$"; "")
              else .
              end
        ')
    
        if [ -z "$windows" ]; then
            echo "Scratchpad: empty"
        else
            echo "Scratchpad: $(echo "$windows" | paste -sd " ") |"
        fi
    }

    Ergibt momentan:

    Ohne #ChatGPT hätte ich das im Leben nicht hinbekommen, #jq ist zwar mächtig, aber auch hart.

  8. In meiner swaybar (die Leiste, die #sway haben kann), habe ich ein Scratchpad, das isr der Bereich, in den ich alle Fenster werfen kann, die ich momentan nicht sehen will.
    Die Bar wird von einem Shellskript gebastelt, das für das Scratchpad diese Funktion hat:

    get_scratchpad() {
        windows=$(swaymsg -t get_tree | jq -r '
            .. | objects
            | select(.name? == "__i3_scratch")
            | .floating_nodes[]
            | (.app_id // .window_properties.class // .name)
            | if test("^\\..*\\.bin$")
              then sub("^\\."; "") | sub("\\.bin$"; "")
              else .
              end
        ')
    
        if [ -z "$windows" ]; then
            echo "Scratchpad: empty"
        else
            echo "Scratchpad: $(echo "$windows" | paste -sd " ") |"
        fi
    }

    Ergibt momentan:

    Ohne #ChatGPT hätte ich das im Leben nicht hinbekommen, #jq ist zwar mächtig, aber auch hart.

  9. 🚀 Wow, #jsongrep is faster than jq? Alert the media! 📣 After a mere 17-minute read filled with mind-numbing automata theory and #benchmark babble, you'll finally learn that using jsongrep will save you a whopping nanosecond per query. 💤 Meanwhile, the rest of us will continue to use #jq, blissfully unaware of this groundbreaking revelation. 🙄
    micahkepe.com/blog/jsongrep/ #automation #performance #tech #news #HackerNews #ngated

  10. 🚀 Wow, #jsongrep is faster than jq? Alert the media! 📣 After a mere 17-minute read filled with mind-numbing automata theory and #benchmark babble, you'll finally learn that using jsongrep will save you a whopping nanosecond per query. 💤 Meanwhile, the rest of us will continue to use #jq, blissfully unaware of this groundbreaking revelation. 🙄
    micahkepe.com/blog/jsongrep/ #automation #performance #tech #news #HackerNews #ngated

  11. 🚀 Wow, #jsongrep is faster than jq? Alert the media! 📣 After a mere 17-minute read filled with mind-numbing automata theory and #benchmark babble, you'll finally learn that using jsongrep will save you a whopping nanosecond per query. 💤 Meanwhile, the rest of us will continue to use #jq, blissfully unaware of this groundbreaking revelation. 🙄
    micahkepe.com/blog/jsongrep/ #automation #performance #tech #news #HackerNews #ngated

  12. 🚀 Wow, #jsongrep is faster than jq? Alert the media! 📣 After a mere 17-minute read filled with mind-numbing automata theory and #benchmark babble, you'll finally learn that using jsongrep will save you a whopping nanosecond per query. 💤 Meanwhile, the rest of us will continue to use #jq, blissfully unaware of this groundbreaking revelation. 🙄
    micahkepe.com/blog/jsongrep/ #automation #performance #tech #news #HackerNews #ngated

  13. 🚀 Wow, #jsongrep is faster than jq? Alert the media! 📣 After a mere 17-minute read filled with mind-numbing automata theory and #benchmark babble, you'll finally learn that using jsongrep will save you a whopping nanosecond per query. 💤 Meanwhile, the rest of us will continue to use #jq, blissfully unaware of this groundbreaking revelation. 🙄
    micahkepe.com/blog/jsongrep/ #automation #performance #tech #news #HackerNews #ngated

  14. I published my notes on using #jq to add an element to an array while ensuring you don't create a duplicate in the array.

    This comes up when I'm writing a jq transformation I want to be able to run multiple times without adding a new entry each time (i.e. make it idempotent).

    salferrarello.com/add-element-

    #jq
  15. I published my notes on using #jq to add an element to an array while ensuring you don't create a duplicate in the array.

    This comes up when I'm writing a jq transformation I want to be able to run multiple times without adding a new entry each time (i.e. make it idempotent).

    salferrarello.com/add-element-

    #jq
  16. I published my notes on using #jq to add an element to an array while ensuring you don't create a duplicate in the array.

    This comes up when I'm writing a jq transformation I want to be able to run multiple times without adding a new entry each time (i.e. make it idempotent).

    salferrarello.com/add-element-

    #jq
  17. I published my notes on using #jq to add an element to an array while ensuring you don't create a duplicate in the array.

    This comes up when I'm writing a jq transformation I want to be able to run multiple times without adding a new entry each time (i.e. make it idempotent).

    salferrarello.com/add-element-

    #jq
  18. I published my notes on using #jq to add an element to an array while ensuring you don't create a duplicate in the array.

    This comes up when I'm writing a jq transformation I want to be able to run multiple times without adding a new entry each time (i.e. make it idempotent).

    salferrarello.com/add-element-

    #jq
  19. Afin de récupérer les textes des diapositives créées dans Polymny Studio (application en ligne permettant de réaliser des capsules vidéo pour commenter un pdf), j'ai découvert l'utilisation de la commande jq qui vaut le détour pour extraire les données d'un fichier json.
    Toutes les info sont ici :
    lofurol.fr/joomla/programmatio

    #PolymnyStudio #shell #script #json #jq #markdown

  20. Afin de récupérer les textes des diapositives créées dans Polymny Studio (application en ligne permettant de réaliser des capsules vidéo pour commenter un pdf), j'ai découvert l'utilisation de la commande jq qui vaut le détour pour extraire les données d'un fichier json.
    Toutes les info sont ici :
    lofurol.fr/joomla/programmatio

    #PolymnyStudio #shell #script #json #jq #markdown

  21. Afin de récupérer les textes des diapositives créées dans Polymny Studio (application en ligne permettant de réaliser des capsules vidéo pour commenter un pdf), j'ai découvert l'utilisation de la commande jq qui vaut le détour pour extraire les données d'un fichier json.
    Toutes les info sont ici :
    lofurol.fr/joomla/programmatio

    #PolymnyStudio #shell #script #json #jq #markdown

  22. Rudimentary TDD in #jq/#jaq:

    1. Choose an input; make a text file for it.
    2. Figure out the expected output; make a text file for it.
    3. `diff expected.txt =(cat input.txt | jaq -L "lib" 'main_filter')`

    It seems like real work to run multiple tests together, but this is a start.

    #jq
  23. Rudimentary TDD in #jq/#jaq:

    1. Choose an input; make a text file for it.
    2. Figure out the expected output; make a text file for it.
    3. `diff expected.txt =(cat input.txt | jaq -L "lib" 'main_filter')`

    It seems like real work to run multiple tests together, but this is a start.

    #jq
  24. Rudimentary TDD in #jq/#jaq:

    1. Choose an input; make a text file for it.
    2. Figure out the expected output; make a text file for it.
    3. `diff expected.txt =(cat input.txt | jaq -L "lib" 'main_filter')`

    It seems like real work to run multiple tests together, but this is a start.

    #jq
  25. Rudimentary TDD in #jq/#jaq:

    1. Choose an input; make a text file for it.
    2. Figure out the expected output; make a text file for it.
    3. `diff expected.txt =(cat input.txt | jaq -L "lib" 'main_filter')`

    It seems like real work to run multiple tests together, but this is a start.

    #jq
  26. Rudimentary TDD in #jq/#jaq:

    1. Choose an input; make a text file for it.
    2. Figure out the expected output; make a text file for it.
    3. `diff expected.txt =(cat input.txt | jaq -L "lib" 'main_filter')`

    It seems like real work to run multiple tests together, but this is a start.

    #jq
  27. TIL you can format jq output to be shell-safe by filtering it through @sh.
    (There are other text filters like @uri and such too).
    jqlang.org/manual/#format-stri
    #jq

    #jq
  28. TIL you can format jq output to be shell-safe by filtering it through @sh.
    (There are other text filters like @uri and such too).
    jqlang.org/manual/#format-stri
    #jq

    #jq
  29. TIL you can format jq output to be shell-safe by filtering it through @sh.
    (There are other text filters like @uri and such too).
    jqlang.org/manual/#format-stri

    #jq
  30. TIL you can format jq output to be shell-safe by filtering it through @sh.
    (There are other text filters like @uri and such too).
    jqlang.org/manual/#format-stri
    #jq

    #jq
  31. TIL you can format jq output to be shell-safe by filtering it through @sh.
    (There are other text filters like @uri and such too).
    jqlang.org/manual/#format-stri
    #jq

    #jq
  32. Writing jq queries... with real-time output? Yessir. 🐁

    🧪 **jiq** — An interactive JSON query tool with live results

    💯 Supports autocomplete, snippets, search & more!

    🦀 Written in Rust & built with @ratatui_rs

    ⭐ GitHub: github.com/bellicose100xp/jiq

    #rustlang #ratatui #tui #json #jq #cli #devtools #productivity

  33. Writing jq queries... with real-time output? Yessir. 🐁

    🧪 **jiq** — An interactive JSON query tool with live results

    💯 Supports autocomplete, snippets, search & more!

    🦀 Written in Rust & built with @ratatui_rs

    ⭐ GitHub: github.com/bellicose100xp/jiq

  34. Writing jq queries... with real-time output? Yessir. 🐁

    🧪 **jiq** — An interactive JSON query tool with live results

    💯 Supports autocomplete, snippets, search & more!

    🦀 Written in Rust & built with @ratatui_rs

    ⭐ GitHub: github.com/bellicose100xp/jiq

    #rustlang #ratatui #tui #json #jq #cli #devtools #productivity

  35. Writing jq queries... with real-time output? Yessir. 🐁

    🧪 **jiq** — An interactive JSON query tool with live results

    💯 Supports autocomplete, snippets, search & more!

    🦀 Written in Rust & built with @ratatui_rs

    ⭐ GitHub: github.com/bellicose100xp/jiq

    #rustlang #ratatui #tui #json #jq #cli #devtools #productivity

  36. Writing jq queries... with real-time output? Yessir. 🐁

    🧪 **jiq** — An interactive JSON query tool with live results

    💯 Supports autocomplete, snippets, search & more!

    🦀 Written in Rust & built with @ratatui_rs

    ⭐ GitHub: github.com/bellicose100xp/jiq

    #rustlang #ratatui #tui #json #jq #cli #devtools #productivity

  37. TIL #jq can do HTML/XML escaping, URI encoding, URI decoding, shell quoting, even base64 encoding and decoding.

    This will come in handy for sure.

    jqlang.org/manual/#format-stri…

    #jq