This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# How to use: | |
# ./mosquitto2puml.sh > mosquitto.puml | |
# PLANTUML_LIMIT_SIZE=8192 plantuml mosquitto.puml | |
# | |
LOG=${1:-/var/log/mosquitto/mosquitto.log} | |
echo "@startuml" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body | |
{ | |
margin-top: 1px; | |
margin-right: 3px; | |
margin-left: 2px; | |
margin-bottom: 3px; | |
background: #201F1F; | |
color: white; | |
font-family: Bookerly, Segoe UI, Palatino Linotype, Arial Unicode MS; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
WEBLATE="http://hosted.weblate.org" | |
PROJECT="OpenOrienteering" | |
COMPONENT="mapper" | |
wget -qO- "$WEBLATE/exports/stats/$PROJECT/$COMPONENT/?format=csv" | \ | |
awk -F',' 'NR == 1 {next} {print $2,$3-$4}' | \ | |
while read line; do \ | |
wget -qO- "$WEBLATE/download/$PROJECT/$COMPONENT/${line%% *}" | \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <QCoreApplication> | |
#include <QLocale> | |
#include <QTextStream> | |
int main(int argc, char *argv[]) | |
{ | |
QCoreApplication a(argc, argv); | |
auto locale = QLocale("eo"); | |
QTextStream(stdout) |