Skip to content

Instantly share code, notes, and snippets.

View shigeya's full-sized avatar

Shigeya Suzuki shigeya

View GitHub Profile
#!/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|
@shigeya
shigeya / keybase.md
Last active September 2, 2020 06:35
keybase.md

Keybase proof

I hereby claim:

  • I am shigeya on github.
  • I am shigeya (https://keybase.io/shigeya) on keybase.
  • I have a public key ASDaepin1bvD3DhR2KKjXHJPmJaMI_dEJmPDpbvPTp0x6Qo

To claim this, I am signing this object:

# 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,
@shigeya
shigeya / basic.asm
Created January 14, 2015 02:40
Microsoft BASIC for 6502 copied from http://www.pagetable.com/?p=774
TITLE BASIC M6502 8K VER 1.1 BY MICRO-SOFT
SEARCH M6502
SALL
RADIX 10 ;THROUGHOUT ALL BUT MATH-PAK.
$Z:: ;STARTING POINT FOR M6502 SIMULATOR
ORG 0 ;START OFF AT LOCATION ZERO.
SUBTTL SWITCHES,MACROS.
REALIO=4 ;5=STM
@shigeya
shigeya / private.tar.gz.uu
Created January 18, 2015 08:43
FreeBSD 9.3 /usr/lib/private in uuencoded format
This file has been truncated, but you can view the full file.
begin 644 private.tar.gz
M'XL(`)ENNE0``^R]"WP4U=D_/IMLDB5<9E'$>%\A:`(4LQ(T@8C9D(59V2C*
M54$AA`U$<VLRRT6,1'<7F2Z+J:TM;UM;;-^JO5AIK8A68;DE!*V->*-X0]2:
M-:*`$D*`Y/<\9\[9/3.9`?S_[?O[_S]O]T/8G>]YSG.>\YSG/.<R,\_QU]==
M4UFQ\)K:NHJEI;+O&N'?\,G)R;E^W#@'?L-'_ZU>.*_-'7==[G7.<=<Z'3G.
MW&N=N8)CW+]#&/W'7R^7UH$H=34U\IGHEBWQ^2K/D*ZOW/]//GY=^\-O?UGE
M_-HQI=]=&:"/W-Q<D_:_=NQU8\==A^WOO-X)9-=C^U_GO&ZLX,CY[D0P__PO
M;_\K"TKKRI9,3+_&H?TX<W/&Y8P=-S8_U^'((0C_/Z0[G7GJKP7IP`;\AO77
M__Z_FS?U_=M_4_S/,O1?YG]91\W^T.#]U;[ZLM):W_R[ZVNJY]?+=175BP72
M$TKKZGUU\Q?[Y/DU"^_VE<EZU%=75U-'0,A565:[@O\]7ZZIK%GF4],K9%\=