Skip to content

Instantly share code, notes, and snippets.

View zerok's full-sized avatar

Horst Gutmann zerok

View GitHub Profile
{
"type": "div",
"props": {
"className": "breadcrumbs breadcrumbs--wide"
},
"children": [
{
"type": "div",
"props": {
"className": "row expanded"
@zerok
zerok / pygraz-has-two-new-organizers.md
Last active April 9, 2017 19:47
Draft: PyGRAZ has two new organizers
date draft title tags
2017-04-09 21:17:14 +0200
true
PyGRAZ has two new organizers
pygraz
community

Back in 2010 when we started [PyGRAZ][], all we wanted was to create a simple

@zerok
zerok / convert_data_to_yaml.py
Created May 14, 2017 23:01
Converter for WTD data from JSON to YAML
"""
This script is used to convert the JSON data we have on each conference into
YAML.
"""
import collections
import glob
import io
import json
import yaml
@zerok
zerok / README.md
Last active November 19, 2021 19:58
OmniGraffle: Export layers on top of base-layer as PNG

Layer export for OmniGraffle

If you have a Graffle document (doc.graffle) with a canvas named "mycanvas" holding the following layers ...

  • Extra 3
  • Extra 2
  • Extra 1
  • Base

... then these images will be generated:

@zerok
zerok / autolock.py
Created January 15, 2018 20:46
YubiKey locking if unplugged
#!/usr/bin/env python3
import time
import subprocess
from datetime import datetime
from datetime import timedelta
def lock():
subprocess.check_call("""osascript -e 'tell application "System Events" to start current screen saver'""", shell=True, stderr=subprocess.STDOUT)