2013-01-01から1年間の記事一覧
年末調整の時期。源泉徴収を受け取ってもいつもよくわからない箇所があるので調べてみた。源泉徴収票の左上の方の「支払金額」とその右の「給与所得控除後の金額」の相関がわかりにくい。源泉徴収票内の他の数字と引き算してみても合致するものなし。一体ど…
持っていた iWorks が 2008 で、iWorks 2008 だと Number が真っ白な画面になってしまうので OpenOffice を入れることにした。しかし、、、Open Office も信頼されていない開発者とか出て開けない。 “OpenOffice” can’t be opened because it is from an uni…
AWKは、何かのテキストファイルを対象に処理することがほとんどだ。そのため、引数にテキストファイルを取らないと話にならない。中身をどのように処理するかはスクリプト次第だが、テキストファイルを扱う際の挙動を知っておきたい。手始めに、catと同じよ…
<plist version="1.0"> <dict> <key>Label</key> <string>MyDaemon</string> <key>UserName</key> <string>root</string> <key>GroupName</key> <string>wheel</string> </dict></plist>
Before Mavericks, at least Lion, Mac Users make apache enabled by System Configuration. In particular, checking web sharing checkbox enabled apache on localhost. But web sharing checkbox is removed on Mavericks, this means the change how t…
AWKはこれまでもちょくちょく使ってきたが、本格的にやってみようと思う。いつもワンライナーでやっていたがスクリプトで実行したい。と、言うわけでお約束のハローワールド。 #!/usr/bin/awk -f BEGIN { printf("%s\n", "Hello World!!!"); } 実行結果は以…
This step is described at /etc/apache2/conf.d/localized-error-pages. # The internationalized error documents require mod_alias, mod_include # and mod_negotiation. To activate them, uncomment the following 37 lines. a2enmod alias(default en…
We can get Linux Hardware information like Serial Number without launching BIOS, via Linux OS. The command "dmidecode" enables this action. Here is an output example. root@MyMachine:~# dmidecode # dmidecode 2.11 SMBIOS 2.7 present. 56 stru…
Some of my virtual machines running on Xen take a few seconds to login via SSH. This might be since that disabling management eth0's ipv6 disabled. There is no problem after logged in. Only login, it is a little bit slow, it takes more tha…
About this article This is a consecutive article of Radius Install & Basic Configuration - Shammerism. This is a description how to use PAM on Radius authentication. Enable PAM procedure At default, PAM authentication is disabled. Editing …
About this article On Debian, there is a free package running Radius, named freeradius. This is an article to install freeradius and basic configuration. Install Install is very easy. There is an apt package, so executing some commands com…
curl displays following message after receiving chunked response. # curl -v X.X.X.X * Rebuilt URL to: X.X.X.X/ * Hostname was NOT found in DNS cache * Trying X.X.X.X... * Connected to X.X.X.X (X.X.X.X) port 80 (#0) > GET / HTTP/1.1 > User-…
Debian で Static Routing を定義するサンプル。10.10.0.0/24 のネットワークに対しては、10.0.0.254 経由でという意味。それ以外は 10.0.0.1 経由でアクセスを試みる。 # The primary network interface auto eth0 iface eth0 inet static address 10.0.0.1…
I got a new VM yesterday, so I tried to install apache2 and php5. It is very easy. apt-get install apache2 apt-get install php5 configure php5 restart apache2 php test Install apache2 and php5 This is very simple. Exec following commands. …
root 権限が付与されて、値段も安い(その分スペックも低いが自分の用途では十分だった)DTI の VPS を使用していたが、apt-get が動作しなくなってしまい、その対応が必要になった。が、VPS を再起動にすると対処のための設定もリセットされてしまうといっ…
After upgrade Mac OS X from Lion to Mavericks, emacs find-file default directory was changed too. Before upgrade, find-file default directory is $HOME. After upgrade, find-file default become "/". I have no idea about the reason, but addin…
I have installed OS X Mavericks today. I used Lion before installed Mavericks since July 2011. Before installed, there are a lot of library and applications which I tried to test, use only once or twice library so I think that I will re-in…
Curl can be a ftp client. FTP is required an authentication. The option -u provides an user account and password to log in. $ curl -u user:password ftp://192.168.1.10/If path begins // instead of / like ftp://192.168.1.10//, this syntax se…
Goals I want to see html files in GoogleDrive via local apache. But GoogleDrive files default permission is 600. I want to change these files permission, but chmod -R 755 doesn't work fine. Resolution cd $GoogleDriveWebContentsDirectory fi…
The command line tools, curl has a -v option. This is very useful because all HTTP request and response header displays. The response header value is depends on the web server configuration. This is just sample to Debian squeeze apache res…
The command "curl" has a -c option and -b option. The option -c makes cookie filed into local disk. And the option -b is used the cookie file to connect web server. Then, the option -d enables to send post data. So, the following steps ena…
I installed xmls when I installed Quicklisp at the first time. I tested this. XMLS Documents I found this site, http://www.quicklisp.org/beta/UNOFFICIAL/docs/xmls/doc/index.html. This seems to be UNOFFICIAL document. I found this site too,…
Rsync command does not download even if upload directory contents are newer than source contents. Is this caused by bad option? I have no idea. But, I found more easier resolution with GoogleDrive. The step is below. Configure GoogleDrive …
定義した LoginHook と LogoutHook を削除する方法を調べていて以下のサイトを見つけた。 Customizing Login and Logout削除するには、read や write のところを delete にすればよいとわかったが、同時に LoginHook と LogoutHook は Deprecated な仕組みだ…
シェルスクリプトの終了ステータスは、$? に格納されるはずだが、いちいちこれを if で比較判定するの面倒だな、と思っていたら、もっと簡単に実行する方法が見つかった。 終了ステータス | UNIX & Linux コマンド・シェルスクリプト リファレンスうーん、こ…
同じ rsync コマンドなのに OS によって微妙にオプションとかが異なるので・・・例によってメモ。Mac では以下のようにすればできた。 rsync -avu -e "ssh -p $SSH_PORT_NUMBER" $SOURCE_DIRECTORY $REMOTE_USER@$REMOTE_HOST:$TARGET_DIRECTORYここで指定す…
仮想レンタルサーバーに申し込んでみた。SSHアクセスができること、root権限で利用できることを条件に探して、月額ワンコイン以下で条件を満たすものを見つけることができた。早速申し込んでみた。例によって、SSHの公開鍵認証を設定した。SSHのポートがデフ…
Python sample code is here. This source code file extension should be .py and located in /usr/lib/cgi-bin/ directory and attached exec permission by chmod 755 ***.py(*** means file name). import cgi print "Content-Type: text/html" # This i…
Hunchentoot document introduce how to access Hunchentoot behind a proxy. I tested this by Apache proxy.Mac OS X apache configuration files are based on /etc/apache2/httpd.conf. This file includes content from /etc/apache2/other/*, the foll…
I would like to avoid sync manually my emacs config files and SKK dictionary between my home MacBook Air and Office MacBook Pro. I searched services to enable my request and I discovered GoogleDrive. At first, I think rental server which a…