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 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);
mirakui / Gemfile
Created Jul 19, 2010
AWS S3 read/write Benchmark
View Gemfile
source :gemcutter
gem 'pit'
gem 'sauberia-aws-s3'
mirakui / readonly_console.rb
Created May 1, 2012
readonly rails console using Arproxy
View readonly_console.rb
#!/usr/bin/env ruby
APP_PATH = File.expand_path('../../config/application', __FILE__)
require File.expand_path('../../config/boot', __FILE__)
require 'rails/commands/console'
require APP_PATH
require "arproxy"
module Arproxy
class Readonly < Base
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 / jpeg_markers.rb
Created Sep 17, 2012
Extract width and height from JPEG format
View jpeg_markers.rb
module JpegMarkers
MARKERS = Hash[*%W(
SOF0 \xff\xc0
SOF1 \xff\xc1
SOF2 \xff\xc2
SOF3 \xff\xc3
DHT \xff\xc4
SOF5 \xff\xc5
SOF6 \xff\xc6
SOF7 \xff\xc7



require 'io/console'
password = STDIN.noecho(&:gets).chomp

日付・時刻"%Y/%m/%d %H:%M:%S")
mirakui /
Last active Dec 20, 2015
fake-s3 + aws-sdk
$ gem install aws-sdk fake-s3
$ fakes3 -r /tmp/fakes3 -p 4567
Loading FakeS3 with /tmp/fakes3 on port 4567 with hostname
[2013-07-31 17:52:34] INFO  WEBrick 1.3.1
[2013-07-31 17:52:34] INFO  ruby 2.0.0 (2013-06-27) [x86_64-darwin12.4.0]
[2013-07-31 17:52:34] INFO  WEBrick::HTTPServer#start: pid=34539 port=4567

Using rails_admin without devise

Having a buckload of code to authorize users on your application is something you may like or not. Speaking for myself I hate it. But I still love rails_admin, here's how you install it without devise. Thanks to phoet for providing the hints in the gist I have forked from.

Add RailsAdmin to your Gemfile

do NOT add devise

gem "rails_admin", :git => "git://"
mirakui /
Last active Dec 16, 2015
social game ids
  • パズドラ
    • 127,841,241
  • ぷよクエ
    • 59595321
mirakui / # node - 2015-12-15_10-15-41.txt
Created Dec 15, 2015
node on OS X 10.10.5 - Homebrew build logs
View # node - 2015-12-15_10-15-41.txt
Homebrew build logs for node on OS X 10.10.5
Build date: 2015-12-15 10:15:41
You can’t perform that action at this time.