Skip to content

Instantly share code, notes, and snippets.

@wataken44
wataken44 / regexp_escape.rb
Created July 22, 2008 15:31
regexp escape with ruby
#!/usr/bin/ruby
ARGV.each { |arg|
printf("%s\n", Regexp.escape(arg))
}
NECの無線LANルータをブリッジモードで動作させるときに、管理画面に接続する方法をまとめる
(説明書が分かりづらいうえに誤解を招く表現になっている)
AtermWG1400HPで確認した。
用意するもの:
- Aterm本体
- 設定用の端末
- 有線LANを強く推奨(無線LANの設定をいじるので)
@wataken44
wataken44 / hosts
Last active August 29, 2015 14:12
# Copyright (c) 1993-2009 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
@wataken44
wataken44 / SSD-cache.md
Created December 31, 2014 00:51
SSDをcacheとして使うべきか?

SSDをcacheとして使うべきか?を判断するときの基準


SSD容量

SSD容量価格比下がっており、かつ容量は上がっているが、Hotなデータ or 全データ乗せるのに容量足りないか? (例: 2.5inch SFFで1TB~、PCIe Cardで3TB~)

性能

Windows Registry Editor Version 5.00
; +-------------------------+-----------------+------------+
; | 本来のキー       | 変換後のキー  | DWORD 値  |
; +-------------------------+-----------------+------------+----------+
; | CapsLock(0x3A)     | LCtrl(0x1D)   | 0x003A001D |
; | 無変換(0x7B)      | LShift(0x2A)  | 0x007B002A |
; | 変換(0x79)       | RCtrl(0xE01D) | 0x0079E05B |
; | ひらがな/カタカナ(0x70) | RAlt(0xE038) | 0x0070E05D |
; +-------------------------+-----------------+------------+----------+
;; 受信
PS C:\Users\wataken44\Documents\documents\usb3lan\NTttcp-v5.28\x64> .\NTttcp.exe -s -t 20 -m "1,*,192.168.140.1" -nic 192.168.140.2
Copyright Version 5.28
Network activity progressing...
Thread Time(s) Throughput(KB/s) Avg B / Compl
====== ======= ================ =============
0 20.004 92586.283 65536.000
俺のKindleライブラリにあって有益だった奴(完全ではない/Bookwalkerにもあるはず)
・魔法少女禁止法
・空想東京百景
・六畳間の侵略者
・魔法少女プリティサミー
・マルタ・サギーは探偵ですか?
・食卓にビールを
・オー・ドロボー
・俺、ツインテールになります
00:00.0 Host bridge: Intel Corporation 4th Gen Core Processor DRAM Controller (rev 06)
00:02.0 VGA compatible controller: Intel Corporation 4th Generation Core Processor Family Integrated Graphics Controller (rev 06)
00:03.0 Audio device: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor HD Audio Controller (rev 06)
00:14.0 USB controller: Intel Corporation 8 Series/C220 Series Chipset Family USB xHCI (rev 05)
00:16.0 Communication controller: Intel Corporation 8 Series/C220 Series Chipset Family MEI Controller #1 (rev 04)
00:1a.0 USB controller: Intel Corporation 8 Series/C220 Series Chipset Family USB EHCI #2 (rev 05)
00:1b.0 Audio device: Intel Corporation 8 Series/C220 Series Chipset High Definition Audio Controller (rev 05)
00:1c.0 PCI bridge: Intel Corporation 8 Series/C220 Series Chipset Family PCI Express Root Port #1 (rev d5)
00:1c.2 PCI bridge: Intel Corporation 8 Series/C220 Series Chipset Family PCI Express Root Port #3 (rev d5)
00:1c.3 PCI bridge: Intel Corporation 8 Series/C220 Series Chi
#!/usr/bin/env ruby
# -*- coding: utf-8 -*-
# m3.rb
def get_array()
return gets.chomp.split(" ").map{|s| next s.to_i }
end
def main()
http://www.gizmodo.jp/2015/05/8_39.html
1個目の空欄<4個目の空欄 かつ 7個目の空欄<8個目の空欄 のみ
1 + 13 * 2 / 6 + 4 + 12 * 7 - 8 - 11 + 3 * 5 / 9 - 10 = 66
1 + 13 * 3 / 2 + 4 + 12 * 5 - 8 - 11 + 7 * 9 / 6 - 10 = 66
1 + 13 * 3 / 2 + 9 + 12 * 5 - 6 - 11 + 4 * 7 / 8 - 10 = 66
1 + 13 * 3 / 4 + 7 + 12 * 6 - 5 - 11 + 2 * 9 / 8 - 10 = 66
1 + 13 * 3 / 6 + 2 + 12 * 7 - 9 - 11 + 4 * 5 / 8 - 10 = 66
1 + 13 * 3 / 9 + 4 + 12 * 7 - 8 - 11 + 2 * 5 / 6 - 10 = 66