Shammer's Philosophy

My private adversaria

2014-01-01から1年間の記事一覧

Power Up SBCL CGI

I wrote a simple CGI script with SBCL in this article. But, I would like to include the host information into the http response. Then, I modified a little bit from above article implementation. Here is a new version. #!/usr/bin/sbcl --scri…

Hello World with SBCL CGI

This is the most simple CGI with SBCL. CGI source code is like below. #!/usr/bin/sbcl --script (format t "Content-Type:text/plain~%~%") (format t "Hello, SBCL CGI!!!~%") Generating /usr/lib/cgi-bin/default.l with above contents. And add ex…

SBCLのシェル化

pythonなどをスクリプトで実行する際には、 $ python some-python-script.py Hello $というようになるものは、some-python-script.pyの冒頭に #!/usr/bin/env pythonとか付けてやることで、 $ ./some-python-script.py Hello $と、スクリプトそれ自体を直接…

Install skk-tools into Mavericks

Mac

I installed skk-tools into Mavericks in the same way as Shammerism, a lot of Warning messages output. $ make gcc -I. -I. -I. -g -O2 -o skkdic-expr ./skkdic-expr.c ./skkdic-expr.c:205:24: warning: passing 'unsigned char *' to parameter of t…

Couldn't install Homebrew

Mac

I couldn't install Homebrew into my Mac, version 10.9.2. The error message is below. ==> Downloading and installing Homebrew... fatal: unable to access 'https://github.com/Homebrew/homebrew/': SSL certificate problem: Invalid certificate c…

全二重と半二重とオートネゴシエーション

仕事が変わると、これまで意識してこなかった部分もしっかり認識しなければならなくなることがある。NICの全二重と半二重とオートネゴシエーションもそれだ。備忘録として内容をメモ。 全二重と半二重 ネットワークケーブルは、いくつかの線が束になって一つ…

Install AquaSKK

I installed AquaSKK into Office MacBookPro installed Mavericks. This is very nice! Install step is very easy and simple. Download AquaSKK from http://sourceforge.jp/projects/aquaskk/releases/, today's latest version is 4.2(2013-05-12) Chan…

Install and use ibus-skk on wheezy

I installed Debian wheezy with English environment. So there is no input-method, such as Anthy, ATOK. I would like to use SKK not only Emacs but other application. Then, I search and select ibus-skk which is one of the SKK implementations …

Install Wireshark on Debian Wheezy

using package tool su - apt-get install wireshark from source code(Development Release?) Get Wireshark tarball from Wireshark site su - apt-get update apt-get install bison apt-get install flex apt-get install libpcap-dev apt-get install l…

Creating wheezy VM on VirtualBox

This site introduces Guest Additions. Guest Additions is like XenServer Tools that optimizing VM guest to Virtual Environments. Installing Guest Additions into Debian wheezy procedure: Launch VM Device menu->Guest Additions のCDイメージを…

Replace Linux Terminal

I installed GNOME-Terminal at this article, but this terminal is not satisfied me. I use iTerm on my MacBookAir, and iTerm has functions to sprit window. But GNOME-Terminal has only tab function. I want to use terminal like iTerm on my Deb…

Install Debian wheezy with least software

I have installed Debian wheezy(7.4) several days ago. At that time, I select GNOME Desktop Environment so there are many applications which I will never use and I don't know how to use. Then, I re-installed Debian wheezy(7.4) again at leas…

SLIME Configuration on my Debian

Quicklisp helps us to configure SLIME. I referenced this site InstallingSlime – Clozure CL. Install Quicklisp (ql:quickload :quicklisp-slime-helper) After finished (ql:quickload :quicklisp-slime-helper), the following message are shown. To…

Sync Emacs configuration files ver 20140410

I have multiple environments to use Emacs and keep considering how to sync these configuration files. This is how to sync version 20140410. Login new environment and execute following commands, my Emacs configurations are built up. scp roo…

Install skkserver in Debian wheezy

su - apt-get install skkdic apt-get install skkdic-extra apt-get install skkdic-cdb apt-get install dbskkd-cdb add following configurations to Emacs init file (setq skk-server-host "localhost") (setq skk-server-jisyo "/usr/share/skk/SKK-JI…

Install Emacs 24.3 on Debian 7.4

I install Emacs 24.3 on Debian 7.4. I referenced my blog on 2013/03/05. In my memory, target OS was Debian Squeeze at that time. But now, current OS is Debian wheezy. I guess the procedure is almost same, though something will be different…

bash_profile aliases

I use tshark command for analyzing captured packets. But this command output has no time-format. My favorite option of tshark time-format is "-t ad", but it is boring to add this option every time. I add the alias to $HOME/.bash_profile as…

Bind Install & Configuration on Debian

Install apt-get update apt-get install bind9 apt-get install dnsutils Config At default, only localhost is managed on this DNS server. I configured to manage my domain for other steps.

Create Debian Squeeze VM on XenServer 6.2

I use XenServer after long time. I install XenServer 6.2 and create Debian VM whose version is Squeeze. I downloaded the VM installer from Internet, the procedure is below. Start VM creation wizard on XenCenter Select Debian Squeeze 6.0 te…

try tcprewrite

There is a packet re-sending tool, named tcpreplay tried at this article before. And there is a case also to modify the L2/L3 information of those packets. There is a tool to do it, it is tcprewrite. I tried to generate a Lisp script like …

apt-get でDVD要求

DVD からDebianをインストールした場合、apt-get install XXX を実行するとインストールDVDを求められてしまった。ほとんどネットインストールを使用していたからこんなこと今までなかったが、どうやらインストールソースが記憶されていて、apt-get 実行時に…

Lisp Packet Generator を作る・その2

この記事の続きでLisp Packet Generatorを作ってみる。手元の環境で、適当なローカルの宛先のパケットを取得した。その時のSYNパケットでやってみる。取得したパケットは以下のようになっている。 $ tshark -x -i en0 -Y "ip.addr eq 10.255.162.2 && tcp.fl…

Configure snmp on Debian wheezy

su - edit /etc/apt/sources.list because some packages are not located on main apt source servers. apt-get update apt-get install snmp apt-get install snmp-mibs-downloader New /etc/apt/sources.list is below. # # deb cdrom:[Debian GNU/Linux …

Modify $HOME/.bashrc

I modify $HOME/.bashrc on wheezy 7.4. remove # from the line 82, alias grep='grep --color=auto' add export PS1="\u@\h:\W \$"

Lenovo X1 Carbon へ wheezy 7.4 をインストール

Lenovo X1 Carbon というLaptop Lenovo がマウスポインタの形状を変えてきている。だんだんとMacに近づいてきているような・・・17インチモデルだと、Laptop のキーボードもテンキーがついたりと、個人的には残念な方向に。個人的には、 Laptopにテンキー…

パケットをバイトで解析する・その3

先日の記事でパケットファイルの冒頭の情報は一体何かと思ったが、書いている人がいた。この記事によれば、pcapファイルのヘッダ情報らしい。実際に送信するパケットはこの情報を破棄していても問題ないのだろうか。tcpreplayがどういう形式を想定しているの…

パケットをバイトで解析する・その2

パケットをバイトで解析する・その1 - Shammerismの最後の疑問、DestMACが始まるまでの10行程度のバイナリ情報は一体何か。とりあえずこれはさておき、他のパケットを見てみる。他のパケットでも同様かを見て、それから判断すればいいと思う。 前回の記事で…

パケットをバイトで解析する・その1

Lisp Packet Generator を作る・その1 - Shammerismの手始めに、LispでMACアドレスを取得してそれをそのままパケットファイルに書き出そうと思ったが、ちょっと現実的でもなさそうだ。過去にC言語でそれをやっているが(この記事)、これをそのままLispで実行…

Lisp Packet Generator を作る・その1

try tcpreplay - Shammerismでtcpreplayというのを使った。このときは取得済みパケットを再送というように行ったが、これで送信できるパケットを自分で作りたい。それに挑戦してみる。バイナリデータの書き出しはwriteでできるはず。パケットのバイナリをそ…

CLOSクラス変数インスタンス変数

LispでもJavaと同じようにクラス変数とインスタンス変数があるようだ。Javaではstaticを使った。CLOSでは、allocation で class か instance かを指定するようだ。デフォルトは instance らしい。 ? (defclass foo () ((global-x :reader get-global-x :writ…