Skip to content

Instantly share code, notes, and snippets.

View dato's full-sized avatar
💚
Trans rights are human rights

Adeodato Simó dato

💚
Trans rights are human rights
View GitHub Profile
version: "3.5"
services:
bot:
image: greboid/irc
ports:
- "6080:8000"
- "127.0.0.1:7081:8001"
environment:
@dato
dato / Makefile
Last active May 27, 2017 18:17
lab-sched
QEMU := qemu-system-i386 -serial mon:stdio -d guest_errors
CFLAGS := -std=c99 -m32 -O1 -ggdb3 -gdwarf-4 -Wall -fasm -nostdinc
CFLAGS += -fno-pic -fno-inline -fno-omit-frame-pointer -ffreestanding
ASFLAGS := $(CFLAGS)
SOURCES := $(wildcard *.c)
OBJECTS := $(SOURCES:%.c=%.o)
kernel: entry.o swtch.o $(OBJECTS)
@dato
dato / gale_shapley.c
Last active March 10, 2017 01:05
Array-only implementation of Gale-Shapley
#include <stdlib.h>
int *gale_shapley(int **P, int **R, int n) {
/*
* proposers[propidx] is the next proposer without
* assigned reviwer. Loop ends when propidx hits -1.
*/
int propidx = n - 1; // proposers acts as a stack.
int *proposers = malloc(n * sizeof(*proposers));
@dato
dato / initial-alpine.log
Last active May 21, 2016 18:18
alpine caching in vagga (with Alpine as distribution)
% ls -A
vagga.yaml
% cat vagga.yaml
containers:
test:
setup:
- !Depends rebuild.txt
- !Alpine v3.2
- !Install [gcc]
@dato
dato / initial.log
Last active May 21, 2016 18:20
alpine caching in vagga (with Ubuntu)
% ls -A
vagga.yaml
% cat vagga.yaml
containers:
test:
setup:
- !Depends rebuild.txt
- !Ubuntu trusty
- !Install [gcc]
@dato
dato / keybase.md
Created December 4, 2014 22:43
Keybase proof

Keybase proof

I hereby claim:

  • I am dato on github.
  • I am dato (https://keybase.io/dato) on keybase.
  • I have a public key whose fingerprint is 8ED5 FF85 EB6D 58F5 0164 0246 CE7C 4AAD EA63 7685

To claim this, I am signing this object:

use Irssi;
use Irssi::TextUI;
use strict;
our %IRSSI = (
authors => 'Decklin Foster',
contact => '[email protected]',
name => 'tweetlen',
description => 'Update length of tweet in statusbar',
license => 'ISC',