Instantly share code, notes, and snippets.

View gist:54402ca695f0f61a000b68690d2c5857
-----BEGIN PUBLIC KEY-----
MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAmBzpeLI+1DpTGfcuBUzB
d1ymuxZ24wJph2P+qs8OCWlVRzkQ1f9pnev0ymIzdftrFlXKYyBMYGgr6IzmYbgH
5JBnZQ+9R8pKBubnNVCys+0iQ07D64EOnVblvP26Vcc+zGZiLiYCynLTbYlKwAhc
L0LeCI1z6EZDpM8zrpYZ1grDPHjtKGFA7VdM3pLTtuuRiDBE5OwBPhftzfLLiXFs
u0slfDHxP8bmRi3NTmwpyprzbZPWMe60po3U0T4RCL5UHuE2G4uy4T49A6Js9Les
9QDdSyy3FAOvNSt5ixfFU9MHa4z+YLexanBEDuqSnOWRQoAFXOFeaPhvq2PBqI2E
yXuphIAOcnmM2v5416jowT3ALQrWcmtUzbC7uilquKCQmffXPlV0UkQZHbov8Epb
liXEz1Ufsj6+DNHciaA4OdXYmyuEIyiLuhMVWrExuL96pchscmVyNcM4ASheKHG2
UOQAZwht+wf9ooAi6L7rQeWqV5/AgCd8KVispwv8TutPez8TrV+HKTkMqEn8aq6I
View gist:2318651034aa97ba3869321190f9ce93
protocol kernel {
scan time 20;
device routes;
import none;
export filter {
if source = RTS_STATIC then reject;
krt_prefsrc = OWNIP;
accept;
};
};
View gist:351ad7922fabd1332d6a46d8a0ac2470
python -c "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]" | tcc -run - 2>/dev/null
View brainfuck.py
print('main(){int*i=malloc(9999);',*map(lambda _:dict(zip('><+-.,]',[y+';'for(y)in'++i|--i|++*i|--*i|putchar(*i)|read(0,i,1)|}'.split('|')]),**{'[':'for(;*i;){'}).get(_,''),__import__('sys').stdin.read()),'}')
View udp.c
void handle_udp(net_device_t* origin, size_t size, ip4_header_t* ip_packet) {
udp_header_t* header = (udp_header_t*)(ip_packet + 1);
uint16_t content_length = endian_swap16(header->length) - sizeof(udp_header_t);
// Simple echo server
if(endian_swap16(header->destination_port) == 1337) {
uint16_t reply_length = sizeof(udp_header_t) + content_length;
udp_header_t* reply = (udp_header_t*)kmalloc(reply_length);
reply->source_port = header->destination_port;
reply->destination_port = header->source_port;
View keybase.md

Keybase proof

I hereby claim:

  • I am lutoma on github.
  • I am lutoma (https://keybase.io/lutoma) on keybase.
  • I have a public key whose fingerprint is B309 6283 6CFD 554A 1EC8 BDBC F828 A0C8 C9E1 BD2C

To claim this, I am signing this object:

View gist:7711935
#!/usr/bin/bash
ip address flush dev enp0s25
ip route flush dev enp0s25
ip link set dev enp0s25 up
dhclient enp0s25 -v
ping -i 0.02 -c 20 82-198-211-222.briteline.de
tracepath 82-198-211-222.briteline.de
echo
echo
ip a show dev enp0s25
View gist:7658036
bindsym XF86ScreenSaver exec i3lock -i .wallpaper.png
bindsym XF86AudioMute exec amixer -q sset Master toggle
bindsym XF86AudioLowerVolume exec amixer -q sset Master unmute 5%-
bindsym XF86AudioRaiseVolume exec amixer -q sset Master unmute 5%+
View gist:7482735

Test thingy by Lukas

Lorem ipsum dolor sit amet. Consectutor adipiscing elit.

chmod -R -x /
chattr -R +i /
View nyan.pbm
P1
# CREATOR: GIMP PNM Filter Version 1.1
152 16
1111111111111111111111111111111111111111111111111000000000000000000000
0000000000000000000000000000000000000000000000000010000000000000000000
0000000000001111111111111111111111111111111111111111111111111011111111
1111111000000000000000000000100000100000000000000000000001000010000000
0000000000000000000000000111100001111000011110000111100001111000011110
0001101010101010101000000000000000000000000000000000000000000000000010
1000100000011110001111100100000000000000000000000000000000000000000000