Skip to content

Instantly share code, notes, and snippets.

Avatar
🤔
Statuses? What is this, Slack?

Lukas Martini lutoma

🤔
Statuses? What is this, Slack?
View GitHub Profile
View pingiepie.py
import requests
import base64
import json
import bitarray
import time
import sys
# 152 x 16
COLS = 152
ROWS = 16
View checkerboard.py
import requests
import base64
import json
import bitarray
import time
# 152 x 16
COLS = 152
ROWS = 16
@lutoma
lutoma / gist:2929518
Created Jun 14, 2012
Converts Brainfuck code from stdin to C on stdout (Compile with GCC or similar)
View gist:2929518
x='char';p,s=(print,{'>':'++p;','<':'--p;','+':'++*p;','-':'--*p;','.':'put'+x+'(*p);',',':'*p=get'+x+'();','[':'for(;*p;){',']':'}'});l=(x+' a[0x'+'f'*4+'];'+x+'*p=a;int main(){',[s[c]for(c)in __import__('os').fdopen(0).read()if(c)in s],'}');[[p(z) for z in i]if type(i)is(list)else p(i)for(i)in l]
@lutoma
lutoma / epicdns.conf
Created May 19, 2012
epicdns sample config
View epicdns.conf
example.org: example-org.zone
example.net: example-net.zone
@lutoma
lutoma / db.sample
Created May 19, 2012
epicdns sample SOA
View db.sample
$TTL 3600
@ IN SOA ns1.epicdns.io. hostmaster.epicdns.io. (
2012050800 ; Serial
6h ; Refresh
1h ; Retry
3w ; Expire
1h ) ; Negative Cache TTL
;
@lutoma
lutoma / gist:2732749
Created May 19, 2012
epicdns sample SOA
View gist:2732749
$TTL 3600
@ IN SOA ns1.epicdns.io. hostmaster.epicdns.io. (
2012050800 ; Serial
6h ; Refresh
1h ; Retry
3w ; Exbpire
1h ) ; Negative Cache TTL
;
View gist:2732745
$TTL 3600
@ IN SOA ns1.epicdns.io. hostmaster.epicdns.io. (
2012050800 ; Serial
6h ; Refresh
1h ; Retry
3w ; Expire
1h ) ; Negative Cache TTL
;
@lutoma
lutoma / xelix-meminsp.c
Created Apr 24, 2012
Xelix memory inspector
View xelix-meminsp.c
#include <stdio.h>
#include <stdbool.h>
#include <string.h>
#define BUFFERSIZE 256
// Should be a multiple of 4
#define COLUMN 4 * 3
#define is_digit(C) ((C) >= '0' && (C) <= '9')
@lutoma
lutoma / trollcore.c
Created Jul 31, 2011
88 character kernel ;o
View trollcore.c
m(){for(int i=0;;)*((short*)753664+i%2000)=(i/2000%2?240:240)<<8|(*(t+i++%2000)?219:32);}
View gist:1116677
m(){for(int i=0;;)*((short*)753664+i%2000)=(i/2000%2?0:240)<<8|(*(t+i++%2000)?219:32);}