Skip to content

Instantly share code, notes, and snippets.

View andrewshadura's full-sized avatar

Andrej Shadura andrewshadura

View GitHub Profile
xkb_keycodes "sun" {
// include "sun(type6_usb)"
<LSGT> = 94;
<LALT> = 133;
<RWIN> = 105;
<LWIN> = 64;
<RALT> = 134;
<RCTL> = 108;
<COMP> = 135;
@andrewshadura
andrewshadura / eid-sk-launcher.py
Created June 3, 2020 15:56
eID signer launcher protocol
#!/usr/bin/env python3
import asyncio
from functools import partial
from pathlib import Path
import os
import ssl
import subprocess
import sys
from urllib.parse import urlparse, parse_qs, urlunparse
@andrewshadura
andrewshadura / patches-applied.diff
Last active May 23, 2019 07:25
Diff between matrix-synapse 0.99.2-5 and 0.99.5.1-1, patches applied
This file has been truncated, but you can view the full file.
diff --git a/.buildkite/.env b/.buildkite/.env
new file mode 100644
index 0000000..85b102d
--- /dev/null
+++ b/.buildkite/.env
@@ -0,0 +1,13 @@
+CI
+BUILDKITE
+BUILDKITE_BUILD_NUMBER
+BUILDKITE_BRANCH
@andrewshadura
andrewshadura / freebogatov.svg
Last active June 15, 2017 23:05
#freeBogatov poster
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@andrewshadura
andrewshadura / keybase.md
Created August 9, 2016 05:37
Keybase.io proof

Keybase proof

I hereby claim:

  • I am andrewshadura on github.
  • I am andrewsh (https://keybase.io/andrewsh) on keybase.
  • I have a public key whose fingerprint is 7821 30B4 C994 4247 977B 82FD 6EA4 D231 1A2D 268D

To claim this, I am signing this object:

@andrewshadura
andrewshadura / process-translations.awk
Created April 9, 2016 13:08
Convert an unstructured translations YAML-like file into the structured "almost YAML"
#!/usr/bin/gawk -f
function flush_out(x) {
# debug:
if (x != "") printf x ": "
if (out["key"] == "") {
return
}
@andrewshadura
andrewshadura / unicode_to_latex.py
Last active April 7, 2016 11:00 — forked from beniwohli/unicode_to_latex.py
Script to convert Cyrillic unicode characters to their respective LaTeX representation
#!/usr/bin/python3
# original XML at http://www.w3.org/Math/characters/unicode.xml
# XSL for conversion: https://gist.github.com/798546
# only cyrillic symbols
unicode_to_latex = {
0x0401: "\\CYRYO",
0x0402: "\\CYRDJE",
From 47946d0a8a68a8e260c9a44e8b2ab448b86f946e Mon Sep 17 00:00:00 2001
From: Andrew Shadura <[email protected]>
Date: Thu, 27 Aug 2015 18:59:12 +0200
Subject: Add Python3 compatibility
diff --git a/reconfigure/parsers/iniparse/config.py b/reconfigure/parsers/iniparse/config.py
index d007f16..cc37ac4 100644
--- a/reconfigure/parsers/iniparse/config.py
+++ b/reconfigure/parsers/iniparse/config.py
@@ -143,7 +143,7 @@ class BasicConfig(ConfigNamespace):
#!/usr/bin/env tclsh
namespace eval ::autofile {
}
rename ::proc ::autofile::proc
rename ::open ::autofile::open
set ::autofile::files(::) {}
::autofile::proc proc {name args body} {
@andrewshadura
andrewshadura / Makefile
Last active August 29, 2015 14:16 — forked from cjxgm/makefile
.DEFAULT_GOAL := all
.PHONY: ${MAKECMDGOALS}
$(filter-out all,${MAKECMDGOALS}) all: .forward-all
@# no op
.forward-all:
${MAKE} -C build ${MAKECMDGOALS}
${MAKEFILE_LIST}: ;
.SUFFIXES: