Skip to content

Instantly share code, notes, and snippets.

View mmasaki's full-sized avatar

Masaki Matsushita mmasaki

  • NTT Communications
  • Tokyo, Japan
  • X @_mmasaki
View GitHub Profile
@mmasaki
mmasaki / srv2.rb
Created January 27, 2011 06:20
TC:Eのサーバの稼働状況を発言するbot
#encoding: utf-8
require 'nokogiri'
require 'net/irc'
Process.daemon
BOTNICK = "Glass_bot"
trap(:INT){
exit
@mmasaki
mmasaki / fingerprint.txt
Created March 9, 2011 00:57
PGP公開鍵など
2052 09D0 3ED0 E4CA B70A EF5A D9CF 362B 9B34 B378
@mmasaki
mmasaki / new_pstore.log
Created March 11, 2011 00:14
Faster PStore
% time ruby pstore_bench.rb
ruby pstore_bench.rb 1.40s user 0.29s system 99% cpu 1.693 total
% time ruby pstore_bench.rb
ruby pstore_bench.rb 1.81s user 0.23s system 100% cpu 2.036 total
% time ruby pstore_bench.rb
ruby pstore_bench.rb 1.82s user 0.38s system 100% cpu 2.192 total
@mmasaki
mmasaki / EBIあり
Created April 25, 2011 11:15
緊急地震速報の電文サンプル
37 03 00 110415233453 C11
110415233416
ND20110415233435 NCN005 JD////////////// JN///
251 N370 E1408 010 66 6+ RK66324 RT01/// RC13///
EBI 251 S6+6- ////// 11 300 S5+5- ////// 11 250 S5+5- ////// 11
310 S0404 ////// 11 311 S0404 ////// 11 252 S0404 ////// 11
301 S0404 ////// 11 221 S0404 ////// 01 340 S0404 ////// 01
341 S0404 ////// 01 321 S0404 233455 00 331 S0404 233457 10
350 S0404 233501 00 360 S0404 233508 00 243 S0403 ////// 01
330 S0403 233454 00 222 S0403 233455 00
@mmasaki
mmasaki / after.txt
Created June 27, 2012 16:18
Syckにカンマの後のs-separate(n,c)(YAML1.0ではs-s-required(n))が無いFlow Sequencesを許してもらう
~% ruby -v -r syck -e 'p Syck.load("[0,1]")'
ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux]
[0, 1]
@mmasaki
mmasaki / iperf.service
Last active August 14, 2023 19:42
systemd service unit for iperf
# /etc/systemd/system/iperf.service
[Unit]
Description=iperf server
After=syslog.target network.target auditd.service
[Service]
ExecStart=/usr/bin/iperf -s
[Install]
WantedBy=multi-user.target
@mmasaki
mmasaki / logging.conf
Created December 17, 2016 03:22
Fluent Formatter Configuration Example for Nova
[loggers]
keys = root
[handlers]
keys = fluent
[formatters]
keys = fluent
[logger_root]
@mmasaki
mmasaki / passpoint.xml
Last active May 11, 2017 14:19
SPG-passpointのプロファイル
<MgmtTree xmlns="syncml:dmddf1.2">
<VerDTD>1.2</VerDTD>
<Node>
<NodeName>PerProviderSubscription</NodeName>
<RTProperties>
<Type>
<DDFName>urn:wfa:mo:hotspot2dot0-perprovidersubscription:1.0</DDFName>
</Type>
</RTProperties>
<Node>