Skip to content

Instantly share code, notes, and snippets.

@xzfc
xzfc / sigil.c
Created March 5, 2014 18:30
Tiny terminal sigil in C
// gcc -std=c99 -lcrypto sigil.c -o sigil
#include <openssl/md5.h>
#include <string.h>
#include <stdio.h>
#include <arpa/inet.h>
int main(int argc, char **argv)
{
char *s = (argc>1)?argv[1]:"";
unsigned char md5[16];
import db_sqlite
import sequtils
import sqlite3
type
DbValueKind* = enum
dvkInt
dvkFloat
dvkString
dvkBlob
// gcc test.c -lX11 -lXext
/* Some clumsy app to test X11 Shape extension.
*
* The app window consists of three zones:
* +-------+
* | A |
* +---+---+
* | B | C |
* +---+---+
*
#!/usr/bin/env bash
set -e
# Check requirements
die() {
echo "$*" >&2
exit 1
}