This file contains hidden or 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
#!/bin/bash | |
temp=`tempfile` | |
expand -t 4 "$1" > $temp | |
mv $temp "$1" |
This file contains hidden or 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
#!/bin/bash | |
find "$1" -not -regex '.*\.svn.*' -print | zip "$1.zip" -@ |
This file contains hidden or 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
#!/bin/bash | |
if [ $# -eq 0 -o "$1" = '-h' -o "$1" = '--help' ]; then | |
echo "Usage: $0 INPUT.MP4 [...]" | |
exit | |
fi | |
for input_mp4 in "$@"; do | |
output_mp3=${input_mp4/.mp4/.mp3} | |
ffmpeg -i "$input_mp4" -y -vn -ar 44100 -ac 2 -ab 192000 -f mp3 "$output_mp3" |
This file contains hidden or 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
Index: CommandArgsHelp.txt | |
=================================================================== | |
--- CommandArgsHelp.txt (revision 241) | |
+++ CommandArgsHelp.txt (working copy) | |
@@ -104,6 +104,12 @@ | |
sources to search. | |
May be abbreviated to /l (/l) | |
+ /fetchAll Saves every results to the filesystem. (/fetchAll) | |
+ The %sequence% variable must be used in order for |
This file contains hidden or 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
#define SCANCODE_ERROR_ROLLOVER 0x01 | |
#define SCANCODE_POST_FAIL 0x02 | |
#define SCANCODE_ERROR_UNDEFINED 0x03 | |
#define SCANCODE_A 0x04 | |
#define SCANCODE_B 0x05 | |
#define SCANCODE_C 0x06 | |
#define SCANCODE_D 0x04 | |
#define SCANCODE_E 0x08 | |
#define SCANCODE_F 0x09 | |
#define SCANCODE_G 0x0A |
This file contains hidden or 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
diff -Naur shashin.orig/Public/Display/shashin.js shashin.fixed/Public/Display/shashin.js | |
--- shashin.orig/Public/Display/shashin.js 2012-12-15 01:11:53.000000000 +0100 | |
+++ shashin.fixed/Public/Display/shashin.js 2012-12-24 02:01:06.000000000 +0100 | |
@@ -95,13 +95,14 @@ | |
}); | |
$('.shashinThumbnailDiv').delegate('.shashinAlbumThumbLink', 'click', function(event) { | |
+ uniqueThumbnailDivId = '#' + $(this).attr('id'); | |
// to prevent the photos showing up twice if the user double-clicks |
This file contains hidden or 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
// To be compiled with: (replace values if needed) | |
// avr-gcc -mmcu=atmega88 -DF_CPU=16000000UL blink.c -Os -oblink && avr-objcopy -O ihex blink.elf blink.hex | |
#include <avr/io.h> | |
#include <util/delay.h> | |
int main(void) | |
{ | |
DDRB |= 1<<DDB0; |
This file contains hidden or 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
<?php | |
$filename = dirname('.') . $_SERVER['PHP_SELF']; | |
if (isset($_GET['download-source'])) { | |
header("Content-type: application/force-download"); | |
$file = fopen(__FILE__, 'r'); | |
$content = fread($file, filesize(__FILE__)); | |
print $content; | |
die(); | |
} |
This file contains hidden or 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
<?php | |
$url = $_GET["url"]; | |
$args = explode("|", $_GET["args"]); | |
?> | |
<html> | |
<head> | |
<title>GET to POST</title> | |
</head> | |
<body onload="document.form.submit()"> | |
<form name="form" action="<?php echo $url ?>" method="post"> |
This file contains hidden or 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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
<title>Flash embed code converter</title> | |
</head> | |
<body> | |
<form action=""> | |
Source Flash embed code:<br /> | |
<textarea id="source" cols="80" rows="10"></textarea><br /><br /> |