Skip to content

Instantly share code, notes, and snippets.

@v3l0c1r4pt0r
v3l0c1r4pt0r / openswf.sh
Created January 26, 2015 19:59
Simple script to force Firefox to open SWF files
#!/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
@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" */