English / Japanese
Ruby scripts and shell scripts for UNIX environment. Modify path in the first line for your environment.
All scripts are in the Public Domain.
Extract compressed files in any type of archives. Supports .tar.gz, .tar.bz2, .gz, .bz2, .zip. (Japanese people say melting archives)
$ melt hoge.tar.gz $ melt foo.bz2
UNIX command to kill process by process ID or part of process name. Different from killall/kill in terms of:
$ quit httpd 0: www 10547 0.6 1.6 15560 5876 ?? S 11008 55:43.57 /usr/local/sbin/httpd 1: www 10548 0.4 1.4 14968 5348 ?? S 11008 55:38.94 /usr/local/sbin/httpd Number: 0 Sending signal INT... Sending signal TERM... $ quit 2163
UNIX command to throw files/directories away to the trash. It creates a directory in ~/.trash and move files/directories there.
$ throw hoge.txt foo.txt
UNIX commands which perform Windows-like copy&paste.
$ copyf hoge.txt # Copies file. $ copyf -r foo-dir # Copies directory. $ cutf hoge.txt # Cuts file. $ pastef # Paste file/directory.
Creates alias available only in the specific directory (i.e. just a shell script).
$ make-alias update 'svn up && ./configure && make' $ ./update # Executes svn up && ./configure && make
Simple UNIX man viewer CGI script. Supporting multibyte characters. CGI must allow Ruby 1.8.x scripts.
Modify path in the first line of man-view.cgi and contents of man-view.conf.
WARNING: This script may have security risk because it passes CGI input directly to shell. Do not allow anonymous users to access this CGI script (e.g. use BASIC auth).