Skip to content

Instantly share code, notes, and snippets.

View enukane's full-sized avatar
🏠
Working from home

naoya Kaneko enukane

🏠
Working from home
View GitHub Profile
@enukane
enukane / gist:8c612cd2aa6b8404ad47
Created July 9, 2014 03:15
proxim orinoco AP-700
- CPU: Atheros AR5312A
- 802.11: AR5112A
http://www.simandl.cz/stranky/linux/atheros/soubory/ar5004xbulletin.pdf
rb(main):009:0> /Users/enukane/usr/local/lib/ruby/2.1.0/irb/input-method.rb:152: [BUG] Segmentation fault at 0xffffffffffffffff
ruby 2.1.0p0 (2013-12-25 revision 44422) [x86_64-darwin13.0]
-- Crash Report log information --------------------------------------------
See Crash Report log file under the one of following:
* ~/Library/Logs/CrashReporter
* /Library/Logs/CrashReporter
* ~/Library/Logs/DiagnosticReports
* /Library/Logs/DiagnosticReports
for more details.
@enukane
enukane / akiyama2014-bringings-tasks.md
Last active August 29, 2015 14:04
はっかそんにもっていくもの(秋山ハッカソン2014)

アメニティにあるもの

  • バスタオル, タオル(ただし館内only)
  • 歯ブラシ
  • 浴衣・丹前

もっていくもの

貴重品類

忘れたら・無くしたら困る物

  • [] 財布 & 金(50kは入れておくこと) & 保険証
@enukane
enukane / thewanderer.md
Last active August 29, 2015 14:06
The wandererの訳
からっぽ
@enukane
enukane / input_example.rb
Created January 28, 2015 11:52
pcapng input
require "csv"
module Embulk
class InputExample < InputPlugin
# input plugin file name must be: embulk/input_<name>.rb
Plugin.register_input('example', self)
def self.transaction(config, &control)
p ">> start transaction"
p "called transaction"
@enukane
enukane / input_pcapng.rb
Created January 28, 2015 12:20
embulk-plugin-input-pcapng
require "csv"
module Embulk
class InputPcapngFiles < InputPlugin
# input plugin file name must be: embulk/input_<name>.rb
Plugin.register_input('pcapng', self)
def self.transaction(config, &control)
threads = config.param('threads', :integer, default: 2)
task = {
@enukane
enukane / gist:7521c7b82539d8cf21e9
Created January 29, 2015 10:08
beforeとafter
% cat before.yml
exec: {}
in:
type: pcapng_files
paths: [/Users/enukane/Desktop/emtestpcap/, /tmp]
threads: 3
schema:
- { name: frame.time_epoch, type: long }
- { name: frame.len, type: long }
- { name: wlan.ta, type: string }
@enukane
enukane / struct2packetdiat.rb
Created February 14, 2015 04:30
struct2packetdiag.rb
#!/usr/bin/env ruby
#
def dp str
if ENV['DEBUG'] == "1"
print ">> #{str}\n"
end
end
def type2size type
case type
when "u_int64_t"
@enukane
enukane / stat.rb
Created February 21, 2015 08:36
jubatus Stat example in ruby
#!/usr/bin/env ruby
require "jubatus/stat/client"
require "jubatus/stat/types"
NAME="stat_tri"
stat = Jubatus::Stat::Client::Stat.new("127.0.0.1", 9199, NAME)
lines = []