Skip to content

Instantly share code, notes, and snippets.

View sikmir's full-sized avatar

Nikolay Korotkiy sikmir

View GitHub Profile
@sikmir
sikmir / mosquitto2puml.sh
Created March 10, 2023 14:07
mosquitto2puml.sh
#!/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"
@sikmir
sikmir / article-style.css
Last active December 14, 2017 07:22 — forked from bangedorrunt/article-style.css
GoldenDict Dark Theme
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;
}
#!/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%% *}" | \
@sikmir
sikmir / test.cpp
Created January 29, 2017 11:05
QTBUG-57802
#include <QCoreApplication>
#include <QLocale>
#include <QTextStream>
int main(int argc, char *argv[])
{
QCoreApplication a(argc, argv);
auto locale = QLocale("eo");
QTextStream(stdout)