Skip to content

Instantly share code, notes, and snippets.

View shigeya's full-sized avatar

Shigeya Suzuki shigeya

View GitHub Profile
【auからのお知らせ(受信無料)】ようこそアメリカ・カナダ・カリブ諸国へ。アメリカ・カナダ・カリブ諸国ではメールやインターネットが最大でも2,980円/日(日本時間の0-24時)の定額で安心してご利用いただけます。
【auからのお知らせ(受信無料)】アメリカ・カナダ・カリブ諸国から日本への発信は140円/分です。SMSの送信は100円/通、受信は無料です。海外から日本に電話をかける際は、「+81」に続き、頭の0を除いた電話番号を入力して下さい。(+は0を長押し等)(例)080-XXXX-XXXXにかけたい場合⇒+81-80-XXXX-XXXX ご旅行中お気をつけてお過ごし下さい。
【auからのお知らせ(受信無料)】アメリカ・カナダ・カリブ諸国での通話・通信料金はここからチェック http://www.au.kddi.com/r/sms-lusa/ ※リンク先ページの閲覧にはデータ通信料金が発生します
# $Id$
# News
INBOX.News.WSJ from access@interactive.wsj.com
INBOX.News.WashingtonPost from @letters.washingtonpost.com
INBOX.News.WashingtonPost from @email.washingtonpost.com
INBOX.News.NYTimes from nytdirect@nytimes.com
INBOX.News.LATimes from @email.latimes.com
INBOX.News.SpaceDaily from @spacedaily.com
#!/usr/bin/env ruby
# Script to generate sieve script from triplet of folder, header, match
#
#puts 'require "fileinto";'
doif = "elsif"
ARGF.each {|p|
p.chomp!
p.sub!(/^\s+/, "")
#!/usr/pkg/bin/ruby
#puts 'require "fileinto";'
if ARGV[0] =~ /^\+(.*)/
folder = $1
ARGV.shift
else
folder = "INBOX.01.000Informative";
end
@shigeya
shigeya / minimum_capture.rb
Created February 26, 2014 08:40
minimum code for EPCIS repository capture interface
#!/usr/bin/env ruby
require 'nokogiri'
require 'optparse'
require 'net/http'
require 'uri'
opts = {
capture_url: "http://127.0.0.1:3000/epcis/capture",
verbose: false,
timeout: 300,
@shigeya
shigeya / minimum_simple_query.rb
Created February 26, 2014 08:42
Minimum code for EPCIS repository simple query interface
#!/usr/bin/env ruby
require 'nokogiri'
require 'optparse'
require 'net/http'
require 'uri'
@opts = { query_url: "http://127.0.0.1:3000/epcis/query",
query_type: "SimpleEventQuery" }
ARGV.options do |o|
# Copyright 2000-2014 JetBrains s.r.o.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
@shigeya
shigeya / rspec3_formatter.rb.DIFF
Created May 20, 2014 22:16
Diff to make RubyMine 6.3.2's rspec3 support to compatible with RSpec 3.0.0rc1
--- rspec3_formatter.rb.FCS 2014-05-21 07:14:30.000000000 +0900
+++ rspec3_formatter.rb 2014-05-21 07:15:17.000000000 +0900
@@ -132,7 +132,7 @@
# Start capturing...
std_files = capture_output_start_external
- started_at_ms = get_time_in_ms(example.execution_result[:started_at])
+ started_at_ms = get_time_in_ms(example.execution_result.started_at)
debug_log('Output capturing started.')
GIT
remote: git://github.com/capistrano/bundler.git
revision: f1ac9eabb3674812c40607714735a36a2185877c
specs:
capistrano-bundler (1.1.2)
capistrano (~> 3.1)
sshkit (~> 1.2)
GIT
remote: https://github.com/shigeya/debugger-ruby_core_source
@shigeya
shigeya / monthly_archive_patch
Created July 24, 2014 22:29
Fix to URL generation of the page
diff --git a/_plugins/monthly_archive_plugin.rb b/_plugins/monthly_archive_plugin.rb
index b6c6b59..b6ede86 100644
--- a/_plugins/monthly_archive_plugin.rb
+++ b/_plugins/monthly_archive_plugin.rb
@@ -65,7 +65,10 @@ module Jekyll
'layout' => @layout,
'type' => 'archive',
'title' => "Monthly archive for #{@year}/#{@month}",
- 'posts' => posts
+ 'posts' => posts,