View update-hekko.sh
#!/bin/sh
# Update hekko.pl SSL certificate page automatically with Let's Encrypt cert
# Provide $login and $pass to your environment to disable manual login page
# This script is meant to be placed in directory where genssl.sh is present
# and its working directory is CWD
domain='example.com'
chain='chain.crt'
ca='isrgrootx1.pem'
useragent='Mozilla/5.0 (X11; Linux x86_64; rv:49.0) Gecko/20100101 Firefox/49.0'
View rot13.c
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char **argv) {
int ch = '\0';
while((ch = fgetc(stdin)) != EOF)
{
/* for every char in stdin */
unsigned char c = (unsigned char)ch;
if(
View openswf.sh
#!/bin/sh
#bash script to force firefox to open SWF files
if [ $# -lt 1 ];
then
echo "usage: $0 [filename]"
exit 1;
fi;
outfile="/tmp/swf.html"
if [[ $1 =~ /.* ]];
then
View policy.h.patch
--- 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" */
View xtransfer.c
#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>
View fontmaker.c
//#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;