Skip to content

Instantly share code, notes, and snippets.

@janseeger
janseeger / Dockerfile
Last active December 6, 2022 07:25
cppfront
# put this file into the root of a checkout of https://github.com/hsutter/cppfront
# and build with `docker build . -t cppfront`
FROM gcc:latest
ADD . /source
RUN g++-10 -std=c++20 -o cppfront /source/source/cppfront.cpp
RUN mv cppfront /usr/bin/cppfront
RUN mv /source/include/* /usr/include/
RUN rm -rf /source
@janseeger
janseeger / export_contacts.py
Created April 30, 2017 12:46
Small script that extracts all contacts from a Baikal (http://sabre.io/baikal/) database and writes them into a single vcf file.
#!/usr/bin/python
import sqlite3
conn = sqlite3.connect("db.sqlite")
c = conn.cursor()
f = open("combined.vcf", "wb")
for row in c.execute("SELECT carddata FROM cards"):
data = row[0].encode("UTF-8")
@janseeger
janseeger / export_calendar.py
Last active April 30, 2017 12:45
Small script that extracts all calendar events from a Baikal (http://sabre.io/baikal/) database and writes them into separate files.
#!/usr/bin/python
import sqlite3
conn = sqlite3.connect("db.sqlite")
c = conn.cursor()
for row in c.execute("SELECT calendardata,uri FROM calendarobjects"):
f = open(row[1], "wb")
data = row[0].encode("UTF-8")
<scheme name="AtomOne" version="142" parent_scheme="Default">
<option name="FONT_SCALE" value="1.0" />
<option name="LINE_SPACING" value="1.1" />
<option name="EDITOR_FONT_SIZE" value="12" />
<option name="EDITOR_LIGATURES" value="true" />
<option name="CONSOLE_FONT_NAME" value="Consolas" />
<option name="CONSOLE_LINE_SPACING" value="1.0" />
<option name="EDITOR_FONT_NAME" value="Fira Code" />
<colors>
<option name="ADDED_LINES_COLOR" value="61f09b" />
@janseeger
janseeger / dvde2.klc
Last active January 22, 2016 19:14
Dvorak German Type2 Layout from https://rffr.de/dvorak-keyboard-layout/ with Ctrl+D and Ctrl+H fixed.
KBD dvorak2 "Deutsch (Dvorak Type II)"
COPYRIGHT "Use as you wish."
COMPANY "alphaDev.net"
LOCALENAME "de-DE"
LOCALEID "00000407"
@janseeger
janseeger / game1.json
Last active August 29, 2015 14:14
Game data for Jeopardy
{
"name": "game title",
"directory": "asset-dir",
"data": [
{
"name": "Dateiendungen",
"data": [
{
"question": "",
"answer": ""

Keybase proof

I hereby claim:

  • I am janseeger on github.
  • I am janseeger (https://keybase.io/janseeger) on keybase.
  • I have a public key whose fingerprint is 03BD 1B25 5608 E645 0463 5578 8937 B6EC 0E03 546F

To claim this, I am signing this object: