This is a set of script to automatically deploy some of the components via KVM/virsh
Tested on Fedora 42
| # Prompt | |
| # take find . -iname '*.png' adapt to sort by creation time, create markdown file, for each png create ## header and then insert image  so that it can be passed to pandoc to convert markdown to pptx | |
| find . -iname '*.png' -print0 | xargs -0 stat -f "%B %N" | sort -n | cut -d' ' -f2- | while read -r img; do printf '## %s\n\n\n\n' "$(basename "$img")" "$img"; done > presentation.md | |
| # convert to presentation | |
| pandoc presentation.md -o presentation.pptx |
| #!/usr/bin/env python3 | |
| # Ported via vibe coding | |
| import argparse | |
| import subprocess | |
| import sys | |
| import os | |
| import base64 |
| # show proxies | |
| istioctl proxy-status | |
| # info | |
| PROXY=$(istioctl proxy-status | grep inside | cut -f1 -d" ") | |
| istioctl proxy-config all $PROXY | |
| istioctl proxy-config secret $PROXY |
| CONFIG_FILE = cloud.openshift.com.json | |
| DATA_DIR = insights-data | |
| PYTHON = venv/bin/python3 | |
| gather: | |
| $(PYTHON) gather-kubernetes-api.py | |
| upload: | |
| @if [ -n "$(BUNDLE)" ]; then \ | |
| ARCHIVE="$(BUNDLE)"; \ | |
| else \ |
| //download all images with class name icon or whatever you select | |
| //requires emulate user gesture checkbox in safari to run | |
| //set timeout seems to be required to get safari to download all individual icons | |
| let icons = document.getElementsByClassName("icon") | |
| for (let i=0;i<icons.length;i++) { | |
| setTimeout(() => { | |
| let alocal = document.createElement("a") | |
| alocal.setAttribute("download","") | |
| alocal.setAttribute("href",icons[i].getAttribute("src")) | |
| alocal.click(); |
This is a set of script to automatically deploy some of the components via KVM/virsh
Tested on Fedora 42
| --- pikchr.y.orig | |
| +++ pikchr.y | |
| @@ -433,6 +433,7 @@ | |
| /* Forward declarations */ | |
| static void pik_append(Pik*, const char*,int); | |
| +static void pik_append_data_orig(Pik*,PObj*); | |
| static void pik_append_text(Pik*,const char*,int,int); | |
| static void pik_append_num(Pik*,const char*,PNum); | |
| static void pik_append_point(Pik*,const char*,PPoint*); |
| #!/usr/bin/env python3 | |
| # eg 50.84,4.35 is a gps coordinate in brussels . vw/vh is the amount of degrees. eg 0.06 => around 6km. It is the left lower corner as in the north space degrees go up if you move north (but in svg it is the other way around) | |
| # ./loopgpx.py -vy 50.84 -vx 4.35 -vw 0.06 -vh 0.06 -width 1000 -height 1000 "file1.gpx" "file2.gpx" "file3.gpx" > map-of-multiple-loops.svg | |
| # it uses print instead of propper xml tree building cause well hmm, i'm lazy and this should work as well if you don't use exotic file names | |
| import sys | |
| import argparse | |
| import xml.etree.ElementTree as ET |
| #!/bin/zsh | |
| tmp="$HOME/tmp" | |
| mkdir -p $tmp | |
| inks="/Applications/Inkscape.app/Contents/Resources/" | |
| cd $inks | |
| qrpath="share/inkscape/extensions/render_barcode_qrcode.py" | |
| python3="bin/python3" |