Skip to content

Instantly share code, notes, and snippets.

@johnjohnlin
johnjohnlin / odg2svgs.py
Created September 22, 2020 16:28
A simple script converting an odg file into individual SVG pages, works for libreoffice 7.0
#!python
# usage: if you have an xxx.odg, then execute `./odg2svgs.py xxx`
import sys
import subprocess
import xml.etree.ElementTree as ET
kBASENAME = sys.argv[1]
subprocess.run(["libreoffice", "--draw", "--headless", "--convert-to", "svg", kBASENAME+".odg"], check=True)
tree = ET.parse(kBASENAME + ".svg")
@WisdomCode
WisdomCode / moonlightssh.sh
Created June 5, 2019 12:14
Moonlight Game Streaming via SSH
#!/bin/bash
#Enables Playing on a moonlight server via an ssh tunnel. This is useful on restricted networks, as only the ssh port is needed.
#Needs the complimentary script, redirectudp, running on the ssh server to function.
#needs a private key for the ssh server
#sudo apt install ssh socat snap
#snap install moonlight