Skip to content

Instantly share code, notes, and snippets.

View lutoma's full-sized avatar
🤖
Beep boop

Lukas Martini lutoma

🤖
Beep boop
View GitHub Profile
@lutoma
lutoma / trollcore.c
Created July 31, 2011 13:06
88 character kernel ;o
m(){for(int i=0;;)*((short*)753664+i%2000)=(i/2000%2?240:240)<<8|(*(t+i++%2000)?219:32);}
@lutoma
lutoma / xelix-meminsp.c
Created April 24, 2012 13:29
Xelix memory inspector
#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')
$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 23:20
epicdns sample SOA
$TTL 3600
@ IN SOA ns1.epicdns.io. hostmaster.epicdns.io. (
2012050800 ; Serial
6h ; Refresh
1h ; Retry
3w ; Exbpire
1h ) ; Negative Cache TTL
;
@lutoma
lutoma / db.sample
Created May 19, 2012 23:22
epicdns sample SOA
$TTL 3600
@ IN SOA ns1.epicdns.io. hostmaster.epicdns.io. (
2012050800 ; Serial
6h ; Refresh
1h ; Retry
3w ; Expire
1h ) ; Negative Cache TTL
;
@lutoma
lutoma / epicdns.conf
Created May 19, 2012 23:26
epicdns sample config
example.org: example-org.zone
example.net: example-net.zone
@lutoma
lutoma / gist:2929518
Created June 14, 2012 10:38
Converts Brainfuck code from stdin to C on stdout (Compile with GCC or similar)
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]
import requests
import base64
import json
import bitarray
import time
# 152 x 16
COLS = 152
ROWS = 16
import requests
import base64
import json
import bitarray
import time
import sys
# 152 x 16
COLS = 152
ROWS = 16
@lutoma
lutoma / nyan.pbm
Created April 28, 2013 13:38
Nyan cat frames for RZL Pingiepie++
P1
# CREATOR: GIMP PNM Filter Version 1.1
152 16
1111111111111111111111111111111111111111111111111000000000000000000000
0000000000000000000000000000000000000000000000000010000000000000000000
0000000000001111111111111111111111111111111111111111111111111011111111
1111111000000000000000000000100000100000000000000000000001000010000000
0000000000000000000000000111100001111000011110000111100001111000011110
0001101010101010101000000000000000000000000000000000000000000000000010
1000100000011110001111100100000000000000000000000000000000000000000000