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
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);}
@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')