mirror of
https://github.com/kmein/niveum
synced 2026-03-16 18:21:07 +01:00
feat: kirčiuoklis script
This commit is contained in:
@@ -106,6 +106,12 @@ in rec {
|
||||
name = "meteo";
|
||||
};
|
||||
|
||||
kirciuoklis = wrapScript {
|
||||
packages = [ pkgs.curl pkgs.jq ];
|
||||
script = ./kirciuoklis.sh;
|
||||
name = "kirciuoklis";
|
||||
};
|
||||
|
||||
booksplit = wrapScript {
|
||||
packages = [ pkgs.ffmpeg tag pkgs.glibc.bin ];
|
||||
script = "${voidrice}/.local/bin/booksplit";
|
||||
|
||||
11
packages/scripts/kirciuoklis.sh
Executable file
11
packages/scripts/kirciuoklis.sh
Executable file
@@ -0,0 +1,11 @@
|
||||
#!/bin/sh
|
||||
curl -sSL 'https://kalbu.vdu.lt/wp-admin/admin-ajax.php' -F action=text_accents -F body="$(cat)" \
|
||||
| jq -r .message \
|
||||
| if [ "$1" = "--json" ]
|
||||
then jq .textParts
|
||||
else jq -r '
|
||||
.textParts
|
||||
| map(if has("accented") then .accented else .string end)
|
||||
| join("")
|
||||
'
|
||||
fi
|
||||
Reference in New Issue
Block a user