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))
}
#!/usr/bin/env python
# -*- coding: utf-8 -*-
""" typing.py
"""
from datetime import datetime
import random
@wataken44
wataken44 / singleton.py
Created June 14, 2012 13:56
singleton for python
def singleton(cls):
cls.__instance = cls()
setattr(cls, '__new__', None)
setattr(cls, '__init__', None)
setattr(cls, 'get_instance', lambda : cls.__instance)
Infiniband Day 06
2/1 Fri @ bitisle
* プログラム 15:00~開始 (各20分)
* 開催のご挨拶と市場動向の報告 ・さくらインターネット株式会社  
* How To Install OFED Linux/VMware/Windows ・さくらインターネット株式会社  
- 実はLoop freeでない
/*
cpp11_test0.cpp
*/
/*
How to compilie
$ g++ -std=c++0x -Wall cpp11_test0.cpp
*/
Windows IP 構成
イーサネット アダプター イーサネット 4:
接続固有の DNS サフィックス . . . . .:
リンクローカル IPv6 アドレス. . . . .: fe80::9d4b:3a7c:2446:372b%7
IPv4 アドレス . . . . . . . . . . . .: 10.254.0.1
サブネット マスク . . . . . . . . . .: 255.255.255.0
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~)

性能