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
#!/usr/bin/env ruby | |
# -*- coding: utf-8 -*- | |
require 'cgi' | |
require 'open-uri' | |
require 'rubygems' | |
require 'zipruby' | |
require 'RMagick' | |
require 'kconv' | |
require 'logger' | |
require 'amazon/aws' |
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
#!/usr/bin/perl | |
# this script is an implementation of http://textt.net/mapi/20101018201937 | |
use strict; | |
use warnings; | |
use LWP::Simple; | |
my ($ustream_url, $file, $stop) = @ARGV; |
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/sh | |
if [ -z "$1" ]; | |
then | |
echo "url parameter is required." | |
exit | |
fi | |
HOMEDIR="/home/oquno/tokindle" | |
SAVEDIR="${HOMEDIR}/savedpages" | |
KINDLEGEN="${HOMEDIR}/kindlegen" | |
RUBY="/usr/bin/ruby1.8" |
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
#!/usr/bin/env ruby | |
# -*- coding: utf-8 -*- | |
require 'kconv' | |
f = open(ARGV[0]) | |
read = f.read | |
f.close | |
read = read.kconv(6, Kconv.guess(read)) | |
read = read.gsub(/charset=[^"\s]+/i, "charset=utf-8") | |
read = read.gsub(/encoding="[^"\s]+"/i, "encoding=\"utf-8\"") | |
f = open(ARGV[0], "w") |
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
// ==UserScript== | |
// @name fix mobile.twitter.com title | |
// @namespace http://oq.la/ | |
// @include http://mobile.twitter.com/* | |
// ==/UserScript== | |
var nameArea = document.getElementsByClassName("user-screen-name"); | |
if (nameArea.length > 0) | |
document.title = nameArea[0].innerText.replace(/\n/g, "") + " on Twitter"; |
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
test |
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
test |
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
test |
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
test |
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
test |