デフォルトで変数のスコープは Global であるため、 perl の my のように local 宣言しましょう。
local var = "hogehoge"
文字列はダブルクオートが必要
| $ sudo yum -y install compat-glibc-headers | |
| $ git clone git://git.kitenet.net/ttyrec.git | |
| $ cd ttyrec | |
| $ make CFLAGS="-DSVR4 -D_XOPEN_SOURCE=500 -I/usr/lib/x86_64-redhat-linux5E/include" |
| - lineinfile: > | |
| regexp='^%wheel' | |
| line='%wheel ALL=(ALL) NOPASSWD: ALL' | |
| dest=/etc/sudoers |
| {% raw %} | |
| LogFormat "\ | |
| host:%h\t\ | |
| time:%{%Y-%m-%d %H:%M:%S}t\t\ | |
| method:%m\t\ | |
| uri:%U%q\t\ | |
| protocol:%H\t\ | |
| status:%>s\t\ | |
| referer:%{Referer}i\t\ | |
| user-agent:%{User-Agent}i\t\ |
デフォルトで変数のスコープは Global であるため、 perl の my のように local 宣言しましょう。
local var = "hogehoge"
文字列はダブルクオートが必要
| require 'benchmark' | |
| lines = [] | |
| f = open(ARGV[0]) | |
| while line = f.gets | |
| lines.push line.chomp | |
| break | |
| end | |
| f.close |
| 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 |
| 起動 | |
| sudo service mongodb start | |
| $ mongo | |
| MongoDB shell version: 2.4.6 | |
| connecting to: test | |
| Welcome to the MongoDB shell. |
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 NAME
setmaxmem - change maximum memory limit
SYNOPSIS
setmaxmem <domain> <size> [--config] [--live] [--current]
DESCRIPTION
Change the maximum memory allocation limit in the guest domain.