Skip to content

Instantly share code, notes, and snippets.

View stefan2904's full-sized avatar
🚲
¯\_(ツ)_/¯

Stefan stefan2904

🚲
¯\_(ツ)_/¯
View GitHub Profile
@stefan2904
stefan2904 / file1.md
Last active April 12, 2017 00:05
Markdown is weird
* item
* item
* item
* item
* item
* item

renders as:

@stefan2904
stefan2904 / MarchForScience.md
Last active June 15, 2017 17:21
TU Graz Aufruf zum March for Science Vienna am 22. April
-------- Forwarded Message --------
Subject: Gemeinsam fuer die Wissenschaft: Aufruf zum March for Science Vienna am 22. April
Date: Thu, 6 Apr 2017 16:27:19 +0200 (CEST)
From: Rektorat <[email protected]>

Sehr geehrte Damen und Herren, liebe Kolleginnen und Kollegen!

@stefan2904
stefan2904 / speech.md
Last active April 5, 2023 01:07
The Alice and Bob After Dinner Speech

The Alice and Bob After Dinner Speech

given at the Zurich Seminar, April 1984, by John Gordon, by invitation of Professor James Massey

Good evening Ladies and Gentlemen.

There comes a time when people at a technical conference like this need something more relaxing. A change of pace. A shift of style. To put aside all that work stuff and think of something refreshingly different.

So let's talk about coding theory. There are perhaps some of you here tonight who are not experts in coding theory, but rather have been dragged here kicking and screaming. So I thought it would be a good idea if I gave you a sort of instant, five minute graduate course in coding theory.

@stefan2904
stefan2904 / multipass.zsh
Created March 29, 2017 21:02
zsh meets pass with multiple stores
_r3pass() { PASSWORD_STORE_DIR="$HOME"/realraum/noc/noc-pass _pass }
r3pass() { PASSWORD_STORE_DIR="$HOME"/realraum/noc/noc-pass pass "$@" }
compdef _r3pass r3pass
@stefan2904
stefan2904 / u2f_demo.py
Last active January 21, 2017 00:04
[python-u2flib-server] <--[u2f_demo.py]--> [python-u2flib-host]
#!/usr/bin/env python
# Copyright (0) 2017 Stefan <[email protected]>
# No rights reserved.
from u2flib_host import u2f as u2f_host
from u2flib_host.soft import SoftU2FDevice
from u2flib_server.jsapi import DeviceRegistration
from u2flib_server.u2f import (start_register, complete_register,
start_authenticate, verify_authenticate)
@stefan2904
stefan2904 / i3config
Created December 12, 2016 22:45
system bar in i3
set $mode_system System (l) lock, (e) logout, (s) suspend, (h) hibernate, (r) reboot, (p) shutdown | (d) disable redshift
mode "$mode_system" {
bindsym l exec --no-startup-id i3lock -c 444444, mode "default"
bindsym e exec --no-startup-id i3-msg exit, mode "default"
bindsym s exec --no-startup-id systemctl suspend, mode "default"
bindsym h exec --no-startup-id systemctl hibernate, mode "default"
bindsym r exec --no-startup-id systemctl reboot, mode "default"
bindsym p exec --no-startup-id systemctl poweroff, mode "default"
bindsym d exec --no-startup-id redshift -O 6500, mode "default"
@stefan2904
stefan2904 / notebook2-topology-2005.ipynb
Last active November 17, 2016 21:31
Demo analysis of KONECT's Internet topology network dataset ... (dataset from 2005, updated by me, IPv4 only!) http://irl.cs.ucla.edu/topology/
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@stefan2904
stefan2904 / notebook2-topology-2015.ipynb
Last active November 17, 2016 21:31
Demo analysis of KONECT's Internet topology network dataset ... (dataset from 2015, updated by me, IPv4 only!) http://irl.cs.ucla.edu/topology/
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@stefan2904
stefan2904 / notebook2-as20000102.ipynb
Last active November 17, 2016 00:58
Demo analysis of KONECT's Route Views network dataset ... (dataset from January 02 2000)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@stefan2904
stefan2904 / notebook2-topology.ipynb
Last active November 17, 2016 01:00
Demo analysis of KONECT's Internet topology network dataset ... (dataset from 2005)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.