#jq — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #jq, aggregated by home.social.
-
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.
-
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.
-
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.
-
🚀 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. 🙄
https://micahkepe.com/blog/jsongrep/ #automation #performance #tech #news #HackerNews #ngated -
🚀 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. 🙄
https://micahkepe.com/blog/jsongrep/ #automation #performance #tech #news #HackerNews #ngated -
🚀 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. 🙄
https://micahkepe.com/blog/jsongrep/ #automation #performance #tech #news #HackerNews #ngated -
🚀 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. 🙄
https://micahkepe.com/blog/jsongrep/ #automation #performance #tech #news #HackerNews #ngated -
🚀 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. 🙄
https://micahkepe.com/blog/jsongrep/ #automation #performance #tech #news #HackerNews #ngated -
A Faster Alternative to Jq
https://micahkepe.com/blog/jsongrep/
#HackerNews #A #Faster #Alternative #to #Jq #json #parsing #programming #speed #optimization
-
A Faster Alternative to Jq
https://micahkepe.com/blog/jsongrep/
#HackerNews #A #Faster #Alternative #to #Jq #json #parsing #programming #speed #optimization
-
A Faster Alternative to Jq
https://micahkepe.com/blog/jsongrep/
#HackerNews #A #Faster #Alternative #to #Jq #json #parsing #programming #speed #optimization
-
A Faster Alternative to Jq
https://micahkepe.com/blog/jsongrep/
#HackerNews #A #Faster #Alternative #to #Jq #json #parsing #programming #speed #optimization
-
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).
https://salferrarello.com/add-element-to-array-if-it-does-not-already-exist-with-jq/
-
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).
https://salferrarello.com/add-element-to-array-if-it-does-not-already-exist-with-jq/
-
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).
https://salferrarello.com/add-element-to-array-if-it-does-not-already-exist-with-jq/
-
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).
https://salferrarello.com/add-element-to-array-if-it-does-not-already-exist-with-jq/
-
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).
https://salferrarello.com/add-element-to-array-if-it-does-not-already-exist-with-jq/
-
https://www.wacoca.com/media/604544/ adieu、5th EP『adieu 5』詳細発表 | JQ、luvis、柴田聡子、澤部渡、柳瀬二郎ら集結 #adieu #betcover!! #chilldspot #JeremyQuartus #JQ #KtZeppYokohama #luvis #music #Nulbarich #シンガーソングライター #スカート #チケット #プロデューサー #ライブ #ワンマン #上白石萌歌 #京都 #柳瀬二郎 #柴田聡子 #比喩根 #澤部渡 #音楽
-
https://www.wacoca.com/media/604544/ adieu、5th EP『adieu 5』詳細発表 | JQ、luvis、柴田聡子、澤部渡、柳瀬二郎ら集結 #adieu #betcover!! #chilldspot #JeremyQuartus #JQ #KtZeppYokohama #luvis #music #Nulbarich #シンガーソングライター #スカート #チケット #プロデューサー #ライブ #ワンマン #上白石萌歌 #京都 #柳瀬二郎 #柴田聡子 #比喩根 #澤部渡 #音楽
-
https://www.wacoca.com/media/604544/ adieu、5th EP『adieu 5』詳細発表 | JQ、luvis、柴田聡子、澤部渡、柳瀬二郎ら集結 #adieu #betcover!! #chilldspot #JeremyQuartus #JQ #KtZeppYokohama #luvis #music #Nulbarich #シンガーソングライター #スカート #チケット #プロデューサー #ライブ #ワンマン #上白石萌歌 #京都 #柳瀬二郎 #柴田聡子 #比喩根 #澤部渡 #音楽
-
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 :
https://lofurol.fr/joomla/programmation/388-extraire-des-donnees-dun-fichier-json-vers-un-fichier-markdown -
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 :
https://lofurol.fr/joomla/programmation/388-extraire-des-donnees-dun-fichier-json-vers-un-fichier-markdown -
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 :
https://lofurol.fr/joomla/programmation/388-extraire-des-donnees-dun-fichier-json-vers-un-fichier-markdown -
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.
-
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.
-
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.
-
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.
-
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.
-
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).
https://jqlang.org/manual/#format-strings-and-escaping
#jq -
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).
https://jqlang.org/manual/#format-strings-and-escaping
#jq -
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).
https://jqlang.org/manual/#format-strings-and-escaping
#jq -
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).
https://jqlang.org/manual/#format-strings-and-escaping
#jq -
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).
https://jqlang.org/manual/#format-strings-and-escaping
#jq -
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: https://github.com/bellicose100xp/jiq
#rustlang #ratatui #tui #json #jq #cli #devtools #productivity
-
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: https://github.com/bellicose100xp/jiq
#rustlang #ratatui #tui #json #jq #cli #devtools #productivity
-
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: https://github.com/bellicose100xp/jiq
#rustlang #ratatui #tui #json #jq #cli #devtools #productivity
-
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: https://github.com/bellicose100xp/jiq
#rustlang #ratatui #tui #json #jq #cli #devtools #productivity
-
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: https://github.com/bellicose100xp/jiq
#rustlang #ratatui #tui #json #jq #cli #devtools #productivity
-
-
-
-
-
-
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.
-
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.
-
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.
-
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.
-
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.
-
Turns out that not only do Actions runners come with jq preinstalled, but yq is there too.
hollycummins.com/using-yq-in-g…
There was a featured snippet for “is yq available on GitHub actions,” which directed me to a marketplace installer. The yq project itself had a marketplace installer. Clearly, I needed to install it before using it. Right?
My colleague George Gastaldi looked at what I’d done, and pointed out yq was available on the runners. This matters, because we try and limit our use of external, ‘non-official’ actions, for supply chain security reasons.
So I searched again to confirm, and … still found very little. To actually confirm, I had to merge and experiment. And, indeed, the GitHub runners do come with yq pre-installed. They’ve had yq since 2021.
#yaml #yq #jq #GithubActions
#CICD
#ContinuousIntegration
#ContinuousDeployment