#!/home/ytera/ruby-2.1.0/bin/ruby
require 'csv'
require 'json'
require 'net/http'
require 'uri'
indexname = 'ldgourmet'
documentname = 'restaurant'
飛行機本 を読みながらのメモ
$ sudo apt-get install xsltproc fop libssl-dev
$ sudo apt-get install openjdk-7-jdk unixodbc-dev
$ curl -O http://download.basho.co.jp.cs-ap-e1.ycloud.jp/otp/download/otp_src_R16B03.tar.gz
vagrant init bento-centos65 http://opscode-vm-bento.s3.amazonaws.com/vagrant/virtualbox/opscode_centos-6.5_chef-provisionerless.box
cd /var/tmp
git clone https://github.com/tagomoris/xbuild.git
sudo yum install bzip2-devel sqlite-devel
sudo xbuild/python-install 2.7.6 /opt/python-2.7
sudo /opt/python-2.7/bin/pip install ansible
NAME
setmaxmem - change maximum memory limit
SYNOPSIS
setmaxmem <domain> <size> [--config] [--live] [--current]
DESCRIPTION
Change the maximum memory allocation limit in the guest domain.
Windows でアプリの IdentifyingNumber を探
> Get-WmiObject Win32_Product | Where-object {$_.Name -match "Skype"}
IdentifyingNumber : {1845470B-EB14-4ABC-835B-E36C693DC07D}
Name : Skype™ 6.9
Vendor : Skype Technologies S.A.
Version : 6.9.106
Caption : Skype™ 6.9
This file contains hidden or 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
起動 | |
sudo service mongodb start | |
$ mongo | |
MongoDB shell version: 2.4.6 | |
connecting to: test | |
Welcome to the MongoDB shell. |
This file contains hidden or 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
module Fluent | |
class FortigateSyslogParseOutput < Output | |
Fluent::Plugin.register_output('forti_log_parser', self) | |
config_param :remove_prefix, :string, :default => nil | |
config_param :add_prefix, :string, :default => nil | |
config_param :message_key, :string, :default => 'message' | |
config_param :keys, :string, :default => nil | |
config_param :remove_keys, :string, :default => nil |
This file contains hidden or 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
require 'benchmark' | |
lines = [] | |
f = open(ARGV[0]) | |
while line = f.gets | |
lines.push line.chomp | |
break | |
end | |
f.close |
デフォルトで変数のスコープは Global であるため、 perl の my のように local 宣言しましょう。
local var = "hogehoge"
文字列はダブルクオートが必要