Skip to content

Instantly share code, notes, and snippets.

View netzvieh's full-sized avatar

Sebastian Meyer netzvieh

View GitHub Profile
@netzvieh
netzvieh / foo.jinja
Created May 22, 2017 20:53
merging jinja dictionaries
{% set opts = {} %}
{% set local_opts = {} %}
{% set default_opts = { "b": { "c": "d", "d": "e" } } %}
{% set special1_opts = { "b": { "c": "f" } } %}
{% set special2_opts = { "b": { "d": "g" } } %}
{% do opts.update({'foo': default_opts }) %}
{% do local_opts.update({'foo': special1_opts }) %}
{% do opts.update({'bar': default_opts }) %}
{% do local_opts.update({'bar': special2_opts }) %}
@netzvieh
netzvieh / quasselcore.service
Created January 7, 2015 22:05
Quasselcore Systemd Service for Fedora
[Unit]
Description=Quassel Core - Distributed IRC Client.
After=network.target postgresql.service
[Service]
User=quassel
ExecStart=/usr/bin/quasselcore --configdir=/var/lib/quassel --listen=0.0.0.0
[Install]
WantedBy=multi-user.target