This is a set of script to automatically deploy some of the components via KVM/virsh
Tested on Fedora 42
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" |
| "when you use > or < on a V[isual] selected text, shift 2 spaces | |
| set shiftwidth=2 | |
| "makes space no tabs | |
| set expandtab | |
| "put 2 spaces for a tab | |
| set tabstop=2 | |
| "indicates lines and character location | |
| set ruler |
| #!/bin/bash | |
| PPTX="pptxcompat" | |
| PNGP="pngout" | |
| # stamps so we dont process unmodified files over and over again | |
| VERTRACK="vertrack" | |
| mkdir -p $VERTRACK | |
| mkdir -p $PPTX |
| SITEA: [ | |
| down | |
| VA: box rad 10px "Veeam Agent" "100TB" color White fill 0x00d15f;move 0.1 | |
| VM: box rad 10px "VM vSphere" "100TB";move 0.1 | |
| ORA: box rad 10px "Oracle RMAN" "Plugin" "100TB" color White fill 0x00d15f; | |
| PROXY: box rad 10px "Veeam Proxy" "100TB" at 1 right of VM color White fill 0x00d15f | |
| REPO: cylinder rad 10px "Repo A" at 2 right of VA color White fill 0x00d15f | |
| arrow from VA.e to REPO.w |
| # you can use external.myaddr.result.myip | |
| data "external" "myaddr" { | |
| program = ["bash", "-c", "echo \"{\\\"myip\\\": $(dig -4 TXT o-o.myaddr.l.google.com @ns1.google.com +short) }\""] | |
| } | |
| echo $(date -r $(($(date +%s)+(3600*24*7))) '+%Y-%m-%d') |