Skip to content

Instantly share code, notes, and snippets.

Issei Naruta mirakui

Block or report user

Report or block mirakui

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View link_checker.rb
View imap_fetcher.rb
require 'rubygems'
require 'net/imap'
require 'kconv'
require 'pit'
require 'logger'
class ImapFetcher
def initialize(pit_name)
@pit = Pit.get(
import sys
import re
import yaml
if len(sys.argv) != 2:
print 'Usage: python %s <mod_name>' % sys.argv[0]
mod_name = sys.argv[1]
mod = __import__(mod_name)
mirakui / make_token.rb
Created May 3, 2010
To get twitter/oauth access token
View make_token.rb
require 'twitter_oauth'
print 'Consumer Key> '
consumer_key = gets.chomp
print 'Consumer Secret> '
consumer_secret = gets.chomp
t =
:consumer_key => consumer_key,
mirakui /
Created May 11, 2010
Pops up a growl notification when a command spends over 5 seconds
# source:
local COMMAND=""
function precmd() {
if [ "$COMMAND_TIME" -ne "0" ] ; then
local d=`date +%s`
d=`expr $d - $COMMAND_TIME`
if [ "$d" -ge "5" ] ; then
mirakui / Gemfile
Created Jul 19, 2010
AWS S3 read/write Benchmark
View Gemfile
source :gemcutter
gem 'pit'
gem 'sauberia-aws-s3'
mirakui / imlib2_magick_benchmark2.rb
Created Jul 24, 2010
Benchmark Imlib2 vs ImageMagick
View imlib2_magick_benchmark2.rb
require "rubygems"
require "benchmark"
require "imlib2"
N = (ARGV.shift || 1).to_i
def bench(title)
puts "\nBenchmark: #{title} (#{N} times)", ">total:", ">avg:") do |bm|
View awsconsoleactivator.user.js
// ==UserScript==
// @name AWS Console Activator
// @description AWS Console Activator
// @match*
// ==/UserScript==
(function() {
var interval = 1000*60;
setInterval(function() {$("#refresh_btn-button").click()}, interval);
View dmm_util.user.js
// ==UserScript==
// @name DMM Util
// @description DMM Utility
// @match*
// ==/UserScript==
(function() {
function replaceImg(img) {
var src = img.src
img.onload = function(){
img.width = img.naturalWidth;
View mirakui_chrome_keyconfig.json
"name": "Chrome Keyconfig",
"version": "1.13.1",
"normal_actions": {
"j": {
"name": "scroll down",
"args": []
"k": {
"name": "scroll up",
You can’t perform that action at this time.