2014-08-01から1ヶ月間の記事一覧
What DNS Server should do? Basic DNS server functions are below. DNS Server configuration files Manage own zone Resolver DNS Server configuration files are depended on the DNS Server. I use bind so I will write about bind config files. The…
この記事について 業務でSRIOVについて触れる機会があった。言葉は聞いたことがあるが、詳細はよくわからなかったので内容をメモ。 SRIOVとは Single Root I/O Virtualization の略のようだ。要は、VMがNICにアクセスする際に管理VMやハイパーバイザを経由せ…
Before I wrote python http client with python socket in this article, but this is not a socket version, using httplib. GET connection = httplib.HTTPSConnection(host) connection.request("GET", uri) response = json.loads(connection.getrespon…
[AWK]AWKからのファイル書き出し AWK NR Sample Script - Shammerismでは、選択対象を標準出力に書き出ししたが、これを特定のファイルに書き出したい。方法はいくつか考えられるが、最もシンプルなのは $ ./awk-script.awk somefile.txt > newfile.txt $と…
I wrote about AWK NR in this article, so today I translate this one liner awk command to script. It is below. #!/usr/bin/awk -f { for(i=6;i<=NF;i++){ printf "%s ", $i; } printf "\n"; } Here is a log that executed above script. $ echo "aaa …
ログの解析などをしていて、大量のログの中から同じメッセージは何回出てくるか、というのを調べたい時がある。重複の排除はuniqでできるが、ログの場合はタイムスタンプが異なるのでuniqのみでは絞り込みに難がある。そこで、ログのタイムスタンプ部分だけ…
If Dropbox installed by following command, Dropbox wouldn't be launched automatically. cd ~ && wget -O - "https://www.dropbox.com/download?plat=lnx.x86_64" | tar xzf -Adding following code to .profile required after executing above command…
I use Mail installed as default mailer in Mac. This change the pair of double quotation pair automatically, so this behavior bothered me. I found the way how to disable this change by following articles. http://d.hatena.ne.jp/nakamura001/2…
I would like to use sticky-shift with uim-skk. According to Google Code Archive - Long-term storage for Google Code Project Hosting., sticy-shift is supported since 1.8.2. But, uim-skk installed by apt-get seems version 1.8.1. So, I can no…