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

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:

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;
echo "Das Piratenwiki ist"; if [ `curl -silent wiki.piratenpartei.de | grep generator | sed -r 's/<.+="//' | sed -r 's/ [1-9].+//'` == 'MediaWiki' ]; then echo " online"; else echo " offline"; fi
program unbenannt;
{$mode objfpc}{$H+}
uses sysutils;
var i, nums: integer;
var a, b, now: real;
BEGIN
/* Facebook-style buttons by @DHS */
.inputbutton {
background: #3b5998;
color: white;
padding: 2px 18px 3px 18px;
border-top: 1px white solid;
border-left: 1px white solid;
border-right: 1px #000033 solid;
border-bottom: 1px #000033 solid;
Vorsitzender: Julia
Stellvertreter: Alex
Gensek: Zuse
Beisitzer: Ich, muhahahahahhaha ... :D
Schatzmeister: vIiRuS #wennsdennseinmuss
/** @file init/debugconsole.c
* \brief A simple console for debugging purposes.
* @author Lukas Martini
*/
#include <init/debugconsole.h>
#include <common/string.h>
#include <memory/kmalloc.h>
#include <devices/keyboard/interface.h>
fsNode_t *memfs_init(uint32 location)
{
// Initialise the main and file header pointers and populate the root directory.
memfsHeader = (memfsHeader_t *)location;
memfsHeaders = (memfsFileHeader_t *) (location+sizeof(memfsHeader_t));
// Initialise the root directory.
rootNode = (fsNode_t*)kmalloc(sizeof(fsNode_t));
strcpy(rootNode->name, "initrd");
rootNode->mask = rootNode->uid = rootNode->gid = rootNode->inode = rootNode->length = 0;
<input type="text" name="name" placeholder="Enter your first and last names">
m(){for(int i=0;;)*((short*)753664+i%2000)=(i/2000%2?0:240)<<8|(*(t+i++%2000)?219:32);}