This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import db_sqlite | |
import sequtils | |
import sqlite3 | |
type | |
DbValueKind* = enum | |
dvkInt | |
dvkFloat | |
dvkString | |
dvkBlob |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// gcc test.c -lX11 -lXext | |
/* Some clumsy app to test X11 Shape extension. | |
* | |
* The app window consists of three zones: | |
* +-------+ | |
* | A | | |
* +---+---+ | |
* | B | C | | |
* +---+---+ | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -e | |
# Check requirements | |
die() { | |
echo "$*" >&2 | |
exit 1 | |
} |