From f8470a89388a5d6e3b5d74373e9ede4b4c0979de Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 20 Nov 2025 06:57:47 +0000 Subject: [PATCH 01/33] Update OAFP examples --- docs/guides/oafp/oafp-examples.md | 46 +++++++++++++++---------------- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/docs/guides/oafp/oafp-examples.md b/docs/guides/oafp/oafp-examples.md index a3a8738..6752603 100644 --- a/docs/guides/oafp/oafp-examples.md +++ b/docs/guides/oafp/oafp-examples.md @@ -477,17 +477,17 @@ oafp url="https://wttr.in?format=j2" llmcontext="current and forecast weather" l ##### 25 ### 📖 AI | Template Convert oAFp llmconversation JSON file into a HTML of the LLM conversation -{% raw %}```bash +```bash oafp conversation.json out=template templatetmpl=true template="{{#each this}}*{{role}}*: {{{content}}}\n\n---\n{{/each}}" | oafp in=md out=html htmlopen=false > conversation.html -```{% endraw %} +``` --- ##### 26 ### 📖 AI | Template Convert oAFp llmconversation JSON file into a terminal readable template of the LLM conversation -{% raw %}```bash +```bash oafp conversation.json out=template templatetmpl=true template="{{#each this}}*{{role}}*: {{{content}}}\n---\n{{/each}}" pipe="(in: md, out: md)" -```{% endraw %} +``` --- ##### 27 @@ -652,7 +652,7 @@ out=json | oafp in=oafp ##### 45 ### 📖 AWS | VPC On an AWS account go through all AWS regions and produce an output table with each VPC CIDR -{% raw %}```bash +```bash cat < new_bom.csv ##### 93 ### 📖 Generic | Commands Given an input array with phone numbers will run parallel output commands, calling ojob.io/telco/phoneNumber, for each entry effectively building an output from those multiple command executions. -{% raw %}```bash +```bash oafp data="[(p:911234567)|(p:+18004564567)]" in=slon out=cmd outcmdtmpl=true outcmd="ojob ojob.io/telco/phoneNumber country=PT number={{p}} -json" | oafp in=ndjson ndjsonjoin=true path="[].phoneInfo" out=ctree -```{% endraw %} +``` --- ##### 94 @@ -1193,9 +1193,9 @@ oafp url="https://emojihub.yurace.pro/api/all" path="[].{category:category,group ##### 102 ### 📖 Generic | HTML Given an input file, in a specific language (e.g. yaml, json, bash, etc...), output an HTML representation with syntax highlighting. -{% raw %}```bash +```bash OUT=yaml && FILE=data.yaml && oafp file=$FILE in=raw outkey=data out=json | oafp out=template templatetmpl=true template="\`\`\`$OUT\n{{{data}}}\n\`\`\`" | oafp in=md out=html -```{% endraw %} +``` --- ##### 103 @@ -1235,9 +1235,9 @@ FPATH="git/ojob.io" && oafp in=ls lsrecursive=true data="$FPATH" path="[].insert ##### 107 ### 📖 Generic | RSS Builds an HTML file with the current linked news titles, publication date and source from Google News RSS. -{% raw %}```bash +```bash RSS="https://news.google.com/rss" && oafp url="$RSS" path="rss.channel.item[].{title:replace(t(@,'[{{title}}]({{link}})'),'\|','g','\\|'),date:pubDate,source:source._}" from="sort(-date)" out=mdtable | oafp in=md out=html -```{% endraw %} +``` --- ##### 108 @@ -1251,17 +1251,17 @@ oafp url="https://blog.google/rss" path="rss.channel.item" sql="select title, li ##### 109 ### 📖 Generic | RSS Generates a HTML page with the current news from Google News, order by date, and opens a browser with it. -{% raw %}```bash +```bash oafp url="https://news.google.com/rss" path="rss.channel.item[].{title:title,link:link,date:pubDate,source:source._}" out=template templatetmpl=true template="

Current Main News

" sql="select * order by date desc" | oafp in=raw out=html -```{% endraw %} +``` --- ##### 110 ### 📖 Generic | RSS Parses the Slashdot's RSS feed news into a quick clickable HTML page in a browser -{% raw %}```bash +```bash RSS="http://rss.slashdot.org/Slashdot/slashdot" && oafp url="$RSS" path="RDF.item[].{title:replace(t(@,'[{{title}}]({{link}})'),'\|','g','\\|'),department:department,date:date}" from="sort(-date)" out=mdtable | oafp in=md out=html -```{% endraw %} +``` --- ##### 111 @@ -1291,9 +1291,9 @@ oafp data="[(file: versions-latest.json)|(file: versions-build.json)]" in=oafp s ##### 114 ### 📖 Generic | Template Given a meal name will search 'The Meal DB' site for the corresponding recipe and render a markdown HTML of the corresponding recipe. -{% raw %}```bash +```bash MEAL="Pizza" && echo "# {{strMeal}}\n> {{strCategory}} | {{strArea}}\n\n\n## Ingredients\n\n| Ingredient | Measure |\n|---|---|\n{{#each ingredients}}|{{ingredient}}|{{measure}}|\n{{/each}}\n\n## Instructions\n\n\n\n{{{strInstructions}}}" > _template.hbs && oafp url="https://www.themealdb.com/api/json/v1/1/search.php?s=$MEAL" path="set(meals[0],'o').set(k2a(get('o'),'strIngredient','i',\`true\`),'is').set(k2a(get('o'),'strMeasure','m',\`true\`),'ms')|get('o').insert(get('o'),'ingredients',ranges(length(get('is')),\`0\`,\`1\`).map(&{ ingredient: geta('is',@).i, measure: geta('ms',@).m }, @))" out=json | oafp out=template template=_template.hbs | oafp in=md out=html htmlcompact=true -```{% endraw %} +``` --- ##### 115 @@ -1623,9 +1623,9 @@ oafp ~/Library/Safari/Bookmarks.plist libs=Mac path="Children[].map(&{category:g ##### 154 ### 📖 Mac | Tunnelblink In a Mac OS with Tunnelblink, if you want to copy all your OpenVPN configurations into ovpn files. -{% raw %}```bash +```bash oafp in=ls data="$HOME/Library/Application Support/Tunnelblick/Configurations" path="[?filename=='config.ovpn'].insert(@,'name',replace(filepath,'.+\/([^\/]+)\.tblk\/.+','','\$1'))" lsrecursive=true out=cmd outcmdtmpl=true outcmd="cp \"{{filepath}}\" output/\"{{name}}.ovpn\"" -```{% endraw %} +``` --- ##### 155 @@ -1837,9 +1837,9 @@ DOMAIN=yahoo.com && oaf -c "sprint(ow.loadNet().getTLSCertificates('$DOMAIN',443 ##### 179 ### 📖 OpenAF | oJob.io Parses ojob.io/news results into a clickable news title HMTL page. -{% raw %}```bash +```bash ojob ojob.io/news/awsnews __format=json | oafp path="[].{title:replace(t(@,'[{{title}}]({{link}})'),'\|','g','\\|'),date:date}" from="sort(-date)" out=mdtable | oafp in=md out=html -```{% endraw %} +``` --- ##### 180 From a5ec42ed0a824d1961ea4ed01f12cd1911fdf9ce Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 21 Nov 2025 06:58:37 +0000 Subject: [PATCH 02/33] Update OAFP examples From 8c3c76ff1f6857a90c839b9f42f371f04fe7fe11 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 22 Nov 2025 06:55:23 +0000 Subject: [PATCH 03/33] Update OAFP examples From 851335dece1fe7e725ecb16ecc552e921c1ee858 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sun, 23 Nov 2025 06:56:10 +0000 Subject: [PATCH 04/33] Update OAFP examples From 3fae0abecbe1f9cccf1df62e59e9d681cede54cb Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 24 Nov 2025 06:58:12 +0000 Subject: [PATCH 05/33] Update OAFP examples From 5a85c0aa9031b1e50ba32734c632c13ec281dce8 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 25 Nov 2025 07:00:01 +0000 Subject: [PATCH 06/33] Update OAFP examples From 15849c719ef426f8e35d0dea736dd7be13471ad3 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 26 Nov 2025 06:59:19 +0000 Subject: [PATCH 07/33] Update OAFP examples From 06f727bb8ffd67a7d420c22706183d62cdae5315 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 27 Nov 2025 06:59:15 +0000 Subject: [PATCH 08/33] Update OAFP examples From 0b098ae4e7d012346381e867d813da52a2b478f1 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 28 Nov 2025 06:59:08 +0000 Subject: [PATCH 09/33] Update OAFP examples From eb2aaa37909b972c364a477c3670e55b3fa3562e Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 29 Nov 2025 06:56:54 +0000 Subject: [PATCH 10/33] Update OAFP examples From 377773d5a4e55724b5572013c97fe13475dfe4de Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sun, 30 Nov 2025 06:57:14 +0000 Subject: [PATCH 11/33] Update OAFP examples From 9c49cbb27947a8d40a167e60fc2ada526121b4c5 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 1 Dec 2025 07:01:33 +0000 Subject: [PATCH 12/33] Update OAFP examples From a0ac5add95f417e16477ba0c9496955326662971 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 2 Dec 2025 07:01:05 +0000 Subject: [PATCH 13/33] Update OAFP examples From da0d0dcec855c8151d73f2f7929097e4296476d1 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 3 Dec 2025 06:59:41 +0000 Subject: [PATCH 14/33] Update OAFP examples From bedc97f475f74195e4283e5b9a8cc84e2d8044f4 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 4 Dec 2025 06:59:24 +0000 Subject: [PATCH 15/33] Update OAFP examples From 01d5c657795c7a54bc0b946e6136fdce95dc9a34 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 5 Dec 2025 07:00:12 +0000 Subject: [PATCH 16/33] Update OAFP examples From 4b1b8417d5c1f440e2668b1d281c4529b7f5a0c9 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 6 Dec 2025 06:56:30 +0000 Subject: [PATCH 17/33] Update OAFP examples From b1f9718c01afccb5f79a86236555c034dde1da90 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sun, 7 Dec 2025 06:56:50 +0000 Subject: [PATCH 18/33] Update OAFP examples From 7c7bce0c54ca85708c8391ba578dbd4e9d22fd78 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 8 Dec 2025 07:02:04 +0000 Subject: [PATCH 19/33] Update OAFP examples From df8d40dd3bf30f2149404866657214ab0c488fcc Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 9 Dec 2025 07:00:15 +0000 Subject: [PATCH 20/33] Update OAFP examples From c038b8dbe46a14f916277786aa9382b56bfac29b Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 10 Dec 2025 07:01:38 +0000 Subject: [PATCH 21/33] Update OAFP examples From 6efa21fd743a230f4584243de95deeab26f8b808 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 11 Dec 2025 07:02:12 +0000 Subject: [PATCH 22/33] Update OAFP examples From a888c1fde0d1b0422652971eac759499a55bd2ed Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 12 Dec 2025 07:01:41 +0000 Subject: [PATCH 23/33] Update OAFP examples From 176ae4a366e3cdf3e79e9b1d6dab840324cf5e57 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 13 Dec 2025 06:58:02 +0000 Subject: [PATCH 24/33] Update OAFP examples From cefd921bec5bfad640bfcd743ed520e2677349ab Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sun, 14 Dec 2025 06:58:15 +0000 Subject: [PATCH 25/33] Update OAFP examples From ce392301ee2a6fb2f260b8a599f1e132eee8daab Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 15 Dec 2025 07:02:48 +0000 Subject: [PATCH 26/33] Update OAFP examples From 0365f47d2d5b01e0105d01953e850a5509be29a6 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 16 Dec 2025 07:02:35 +0000 Subject: [PATCH 27/33] Update OAFP examples From 5960dfe24b81fc7d57c46ae589f97b2d1f9db661 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 17 Dec 2025 07:01:08 +0000 Subject: [PATCH 28/33] Update OAFP examples From 7680ddf3e10dd6cecbe270c1420042dc3a53bbc8 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 18 Dec 2025 07:01:35 +0000 Subject: [PATCH 29/33] Update OAFP examples From a501a5683aabd1994fdcb554fbd75475f520b254 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 19 Dec 2025 07:00:20 +0000 Subject: [PATCH 30/33] Update OAFP examples From 6b9de37521fd894e05be850654d22897fda97340 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 20 Dec 2025 06:57:28 +0000 Subject: [PATCH 31/33] Update OAFP examples From d72840b0eda91abfd14c6f2a980a5dc2b7db93a1 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sun, 21 Dec 2025 06:59:26 +0000 Subject: [PATCH 32/33] Update OAFP examples From a1dfac3c943b5f65b164e93ce0d38ecf32db400c Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 22 Dec 2025 07:02:34 +0000 Subject: [PATCH 33/33] Update OAFP examples