Skip to content

Instantly share code, notes, and snippets.

@v3l0c1r4pt0r
v3l0c1r4pt0r / policy.h.patch
Created August 21, 2014 14:20
Patch adjusting uucp tools to work on Android without using configuration file
--- policy.h 2003-05-29 08:08:45.000000000 +0200
+++ policy.h.new 2014-08-20 12:03:45.595405893 +0200
@@ -297,7 +297,7 @@
systems the lock files are placed in /etc/locks. On some they are
placed in /usr/spool/locks. On the NeXT they are placed in
/usr/spool/uucp/LCK. */
-/* #define LOCKDIR "/usr/spool/uucp" */
+#define LOCKDIR "/data/local/etc/spool/uucp"
/* #define LOCKDIR "/etc/locks" */
/* #define LOCKDIR "/usr/spool/locks" */
@v3l0c1r4pt0r
v3l0c1r4pt0r / xtransfer.c
Created July 6, 2014 09:01
XMODEM protocol implementation
#include <stdio.h>
#include <getopt.h>
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#include <termios.h>
#include <fcntl.h>
#include <unistd.h>
#include <sys/stat.h>
@v3l0c1r4pt0r
v3l0c1r4pt0r / fontmaker.c
Last active January 1, 2016 09:39
Bitmap creator for ST7565 based displays
//#include<windows.h>
#define GLUT_DISABLE_ATEXIT_HACK
#include <GL/glut.h>
#include <stdio.h>
#include <string.h>
#define background 1, 1, 1
#define foreground 0, 0, 0
unsigned int width = 5;