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
# http://www.muji.net/store/pc/user/2009aw/index.jsp#/Women/ | |
curl -O 'http://www.muji.net/2009aw/img/women/0908w_[01-53].jpg' | |
curl -O 'http://www.muji.net/2009aw/img/women/0908img_[13-24].jpg' |
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 | |
ls='/bin/ls -vG' | |
lv='/opt/local/bin/lv -c' | |
if [ $# -ne 0 ] | |
then | |
eval last=\$\{$(expr $#)\} | |
if [ -d $last ] | |
then |
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
require 'rubygems' | |
require 'thin' | |
require 'em-http' | |
USE_GLITCH = true | |
def glitch res, body | |
case res['CONTENT_TYPE'] | |
when /jpeg/i | |
body.gsub!(/0/m, rand(10).to_s) |
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 AutoPagerizeGoogleImageFilter | |
// @namespace http://relucks.org/ | |
// @include http://images.google.* | |
// ==/UserScript== | |
// http://userscripts.org/topics/22000 | |
// { | |
// url: 'http://images\\.google\\.(\\w|\\.)+/images\\?', | |
// nextLink: 'id("navbar")//td[last()]/a', |
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
// set your twitter id and passowrd | |
var twitter_id = 'foo' | |
var twitter_password = 'bar' | |
var tw = new jetpack.lib.twitter.Twit(twitter_id, twitter_password) | |
jetpack.statusBar.append({ | |
html: '<img src="http://assets1.twitter.com/images/favicon.ico" />', | |
width: 20, | |
onReady: function(widget){ | |
$(widget).click(function() { |
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 AutoPagerizeTwitterFilter | |
// @namespace http://relucks.org/ | |
// @include http://twitter.com/ | |
// ==/UserScript== | |
(function() { | |
var reqfl = function(opt) { | |
opt['headers'] = opt['headers'] || {} | |
opt['headers']['Accept'] = 'application/json, text/javascript, */*' |
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 | |
# -*- encoding: utf-8 -*- | |
require 'net/http' | |
require 'time' | |
require 'rubygems' | |
require 'pit' | |
require 'kconv' | |
def post url, opt = {} |
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 url2img | |
// @namespace http://relucks.org/ | |
// @include http* | |
// ==/UserScript== | |
(function() { | |
url2img(document) | |
document.addEventListener("DOMNodeInserted", function(e){ | |
if (e.target.tagName) { |
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
var base_dir = '/Users/youhei/Desktop/' | |
main() | |
function main() { | |
var dir = base_dir + document.getElementById('crumbAlb').textContent | |
var list = Array.filter(document.links, function(i) { | |
return /photo\/\d+#pictop$/.test(i.href) | |
}) | |
if (list.length > 1) { |