This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby193 | |
# -*- coding: utf-8 -*- | |
require 'pocket_miku' | |
char_map = Array.new | |
# この順番でサーチするため、HashではなくArrayにする | |
char_map.push('キャ') | |
char_map.push('キュ') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
set -x | |
_OBJDIR=/usr/obj | |
_TOOLDIR=/usr/tools | |
_ARCH=`uname -p` | |
_MACHINE=`uname -m` | |
_VERSION=`uname -v | awk '{ print $2 }'` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -e | |
MAJOR=1 | |
VERSION=${MAJOR}.1.1 | |
dir=elasticsearch-$VERSION | |
archive=$dir.tar.gz | |
mkdir -p upstream | |
pushd upstream |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.PHONY: module | |
module: upstream | |
upstream: | |
./GET |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from osv.modules import api | |
# Following parameter imported from 'elasticsearch-1.1.1/bin/elasticsearch'. | |
default = api.run_java( | |
jvm_args=[ | |
'-Xms256m', | |
'-Xmx1g', | |
'-Xss256k', | |
'-XX:+HeapDumpOnOutOfMemoryError', | |
'-XX:+UseParNewGC', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
OSvへのElasticsearch追加手順 | |
================================= | |
* osv/apps/elasticsearchにGET,Makefile,module.pyを追加します。 | |
``` | |
$ cd osv/apps | |
$ mkdir elasticsearch | |
$ cd elasticsearch | |
$ wget --no-check-certificate https://gist.githubusercontent.com/furandon-pig/4f14b51cd30d24203611/raw/29d5aa1a7e7afa43effa6118bd76328d3627cf73/osv-elasticsearch-module.py -O module.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
OSvでelasticsearchを動作させる手順 | |
================================== | |
OSvでelasticsearchを動作させる手順です。ここではデフォルトのOSvイメージを起動し、そこにelasticsearchのjarファイルを持ってゆく方法で動作させています。 | |
elasticsearchのビルド | |
--------------------- | |
最初にelasticsearchを自分の環境でビルドします。まずはelasticsearchをgit cloneします。 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
######################################################################## | |
# # | |
# 短時間に大量のクエリを投げ続けるとGoogleからアクセス制限される場合が # | |
# あるので、スクリプトの連続実行は適当なインターバル(数秒程度)を入れて # | |
# ください。 # | |
# # | |
######################################################################## |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# MagicPoingで生成したスライド画像をリサイズするスクリプトです。 | |
# 使用例: | |
# $ mkdir html | |
# $ mgp -g 958x766 -D html -E png slide.mgp | |
# $ cd html | |
# $ ~/bin/convert_mgp_slide_size.sh | |
# 処理の進捗状況を確認しやすくするため、はじめに処理対象となる |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%% 「ネットワークパケットを読む会(仮)」での発表スライドです。 | |
%% | |
%% 第20回「ネットワークパケットを読む会(仮)」 | |
%% https://atnd.org/events/54939 | |
%% | |
%% MagicPoingで表示する際はsjisに変換してください。 | |
%% $ mkdir tmp | |
%% $ iconv -f euc-jp -t cp932 slide.mgp > tmp/slide.mgp | |
%% $ mgp tmp/slide.mgp |
OlderNewer