Skip to content

Instantly share code, notes, and snippets.

Statuses? What is this, Slack?

Lukas Martini lutoma

Statuses? What is this, Slack?
View GitHub Profile
View gist:453243
echo "Das Piratenwiki ist"; if [ `curl -silent | grep generator | sed -r 's/<.+="//' | sed -r 's/ [1-9].+//'` == 'MediaWiki' ]; then echo " online"; else echo " offline"; fi
View unbenannt.pas
program unbenannt;
{$mode objfpc}{$H+}
uses sysutils;
var i, nums: integer;
var a, b, now: real;
View facebook-style-buttons.css
/* 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;
View gist:519848
Vorsitzender: Julia
Stellvertreter: Alex
Gensek: Zuse
Beisitzer: Ich, muhahahahahhaha ... :D
Schatzmeister: vIiRuS #wennsdennseinmuss
View gist:597372
/** @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>
View gist:603354
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;
View gist:939468
<input type="text" name="name" placeholder="Enter your first and last names">
View gist:1116677
m(){for(int i=0;;)*((short*)753664+i%2000)=(i/2000%2?0:240)<<8|(*(t+i++%2000)?219:32);}
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);}
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')