Skip to content

Instantly share code, notes, and snippets.

View kumpelblase2's full-sized avatar

Tim Hagemann kumpelblase2

View GitHub Profile
### Keybase proof
I hereby claim:
* I am kumpelblase2 on github.
* I am kumpelblase2 (https://keybase.io/kumpelblase2) on keybase.
* I have a public key whose fingerprint is BB9E 074C E4A1 D892 FBEC D2AA 430D 28CA DBAA 446A
To claim this, I am signing this object:
@kumpelblase2
kumpelblase2 / graph-regex.txt
Created October 8, 2014 12:25
This is a regex expression to parse the graphs given to us in an assignment
^([a-zA-Z0-9]+) ?(-(>|-) ?([a-zA-Z0-9]+) ?(\(([a-zA-Z0-9]+)\))?)? ?( ?: ?([0-9]+))?;$
This parses the following kinds of (undirectional) graphs:
a -> b;
a ->b;
a-> b;
a -- b;
b--a;
a -> b(my_name);
a -> b (my_name);
@kumpelblase2
kumpelblase2 / .bashrc
Last active October 24, 2022 14:19
please~ -- Runs last command as root.
alias please='sudo bash -c "$(history -p !!)"'
@kumpelblase2
kumpelblase2 / keybindings.txt
Created March 12, 2017 12:19
Vimium Dvorak Mappings
# Insert your preferred key mappings here.
unmapAll
# Basic movement
map d scrollLeft
map h scrollDown
map t scrollUp
map n scrollRight
map ii scrollToTop
map I scrollToBottom
@kumpelblase2
kumpelblase2 / UserScript.js
Last active April 4, 2020 11:27
Automatically expand github news entries
// ==UserScript==
// @name Github Autoexpand News Items
// @namespace https://kumpelblase2.github.io/
// @version 0.1
// @description Automatically expands news entries in your Github Feed.
// @author kumpelblase2
// @match https://github.com/
// @grant none
// ==/UserScript==
@kumpelblase2
kumpelblase2 / update-gitea.sh
Last active October 5, 2021 06:41
Script to update gitea to a version on an alpine host
#!/bin/sh
BINARY_LOCATION="/usr/bin/gitea"
ARCHIVE_FILENAME="gitea-$1-linux-amd64.xz"
FILENAME="gitea-$1-linux-amd64"
URL="https://dl.gitea.io/gitea/$1/gitea-$1-linux-amd64.xz"
URL_HASH="https://dl.gitea.io/gitea/$1/gitea-$1-linux-amd64.xz.sha256"
URL_SIGN="https://dl.gitea.io/gitea/$1/gitea-$1-linux-amd64.xz.asc"
rc-service gitea stop
@kumpelblase2
kumpelblase2 / silkroad_proto.lua
Created August 20, 2021 18:46
A very basic wireshark dissector for silkroad online packets
-- Move this file to `.config/wireshark/plugins`, adapt the port on the bottom and reload the reload the lua plugins.
silkroad_proto = Proto("silkroad", "Silkroad Online Protocol")
function silkroad_proto.dissector(buffer, pinfo, tree)
pinfo.cols.protocol = "SILKROAD"
local subtree = tree:add(silkroad_proto, buffer(), "Silkroad Packet Data")
local current = 0
while buffer:captured_len() > current do
local encrypted = false
local upper = buffer:bytes(current + 1,1):get_index(0)