Skip to content

Instantly share code, notes, and snippets.

@shiba-yu36
shiba-yu36 / keysnail-install-plugin-from-this-page.ks.js
Created December 30, 2010 08:02
今のページからkeysnailプラグインをインストールするためのスニペット
key.setGlobalKey(['C-c', 'i'], function (ev, arg) {
userscript.installPluginFromURL(window.content.document.location.href);
}, 'install-plugin-from-this-page');
@shiba-yu36
shiba-yu36 / refollow.pl
Created November 28, 2010 14:30
自動refollowスクリプト
#!perl
use strict;
use warnings;
use Readonly;
use Net::Twitter::Lite;
Readonly my $following_count_limit => 10;
my $consumer_key = 'YOUR_CONSUMER_KEY';
// ==UserScript==
// @name Slider-Interface-of-Hatena-Bookmark's-Threshold
// @namespace http://d.hatena.ne.jp/Cside
// @include http://b.hatena.ne.jp/*
// ==/UserScript==
function inputAndCount(mode) {
var threshold;
var loc = location.href;
#!perl
use strict;
use warnings;
use DateTime;
use DateTime::TimeZone;
for my $timezone (DateTime::TimeZone->all_names) {
warn sprintf('%20s / %s', $timezone, DateTime->now(time_zone => $timezone)->strftime('%z'));
}
#!perl
use warnings;
use strict;
use LWP::UserAgent;
my $title = 'エントリタイトル';
my $excerpt = 'エントリ要約ですよ';
my $url = 'http://d.hatena.ne.jp/shibaTest/20101022/p1';
my $blog_name = 'Dive into the Tech World!';
#!perl
use strict;
use warnings;
use XML::Feed;
my $url = 'http://f.hatena.ne.jp/shiba_yu36/rss';
my $open_search = "http://a9.com/-/spec/opensearchrss/1.0/";
my $hatena = "http://www.hatena.ne.jp/info/xmlns#";
use strict;
use warnings;
use String::Random;
use DateTime;
use URI::Escape;
use Digest::HMAC_SHA1 qw(hmac_sha1);
use MIME::Base64;
use LWP::UserAgent;
use strict;
use warnings;
use OAuth::Lite;
use OAuth::Lite::Consumer;
my $ua = LWP::UserAgent->new;
my $request_url = 'http://gdd-2010-quiz-japan.appspot.com/oauth/5c2cac6d69ddbc14c5b30bcb';
#!/bin/sh
ssh-agent | grep -v echo > "${HOME}/.ssh/agent-env"
. "${HOME}/.ssh/agent-env"
ssh-add
echo "please type:"
echo ". ~/.ssh/agent-env"
// ==UserScript==
// @name expand_fotolife_notation
// @description はてなダイアリー編集中にfotolife記法を展開する
// @namespace http://shiba-yu36.net/
// @include http://d.hatena.ne.jp/*
// ==/UserScript==
(function() {
var extention_map = {