..Useful scripts and programs
] Closebracket ]
A shell shortcut definer
http://www.freaknet.org/alpt/src/utils/closebracket/
Closebracket lets you define multiple shell actions in a single command to
speed up the typing of the most repetitive shell commands.
The command name of Closebracket is `]' and `][', that's because these
characters are near the "Enter" key and it is easy to type them fast.
`]' stands for "primary fire", while `][' is the secondary one.
After few days you'll find Closebracket very addictive.
Closebracket is dedicated to the God of Laziness, may He bless you (when He
[...]
comment2html.py
http://freaknet.org/alpt/src/utils/comment2html.py
https://dev.hinezumi.org/svnroot/utils/comment2html.py
Given a list of source files it prints on stdout a html file describing each
file. The description is taken from the first comment found in the file.
If a directory is given, its description is taken from dir/README or dir/readme.
Usage: comment2html.py *.c *.py > file.html
Usage2: comment2html.py > file.html
Tested even with python 2.1.3
Tue Oct 2 02:37:47 CEST 2007
- AlpT (@freaknet.org)
[...]
Cronrss
Old style RSS feed
http://freaknet.org/alpt/src/utils/cronrss
It verifies if the web page pointed by a given URL has changed.
If it has, cronrss will send a notice email to you.
The URL list is kept in the ~/.cronrss/url text file (one URL per line).
It is very useful to use URLs which point to rss feeds.
*** Usage:
1) Put all the URLs you want to check in the ~/.cronrss/url text file (one
URL per line).
[...]
/* inet_hijacker:
* a simple tool that wraps other programs forbidding their
* access to inet resources.
*
* AlpT
*/
/*
* This source code is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as published
* by the Free Software Foundation; either version 2 of the License,
* or (at your option) any later version.
*
* This source code is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* Please refer to the GNU Public License for more details.
[...]
Prayishtar
http://freaknet.org/alpt/src/utils/prayishtar
prayishtar: forwards all your Internet traffic over two secure SSH tunnels
or in other words: How to reach the Internet anonymously from a
hostile network
** Requirements **
You need two trusted SSH servers, one with a BIG BIG upload
bandwidth and another normal one. We call the former `bigbwhost' and the
latter `myhome'.
You also need OpenSSH >= 4.3 on bost this localhost and on `myhome'
Be sure also to have the support for /dev/tun, iptables and LARTC.
** This is what we do **
We forward all of our Internet traffic trough a SSH vpn created with
[...]
- Pwdrc -
http://www.freaknet.org/alpt/src/utils/pwdrc
Pwdrc lets you executes your set of commands each time you walk in a directory
with `cd'. You can associate a different set of commands to each directory.
*** USAGE
Each time you walk in a directory the file .`whoami`_pwdrc is read and
executed (if it exists), thus if your user name is "foo", your pwdrc
file is ".foo_pwdrc".
You can use the `cdd' command, instead of `cd', to avoid the execution of the
pwdrc file.
[...]
-( rum )-
To avoid the madness of rm mistakes
-= Scenario 1:
# rm -rf /
Oops! I didn't mean to... DAMN! I got distracted.
I lost all!
-= Scenario 2:
# mkdir /eternal
# rm -rf /et
# ls: /etc: No such file or directory
Nooooooooo!
[...]
-( susu )-
For the nostalgic of suauth
In these days none wants to keep a nice, clean suauth file with the juicy NOPASSWD.
The coreutils doesn't help you and if you really want to have something like suauth
you have to suicide with pam.
What a nice world. ;0
So here it is the stuff:
susu.c is a wrapper to su - toor / su - root
susu-bsd.c is susu.c for net/open-bsd. (not tested in freebsd)
/* susu: It is a simple wrapper tu su - root.
* It reads a list of userid from the SUSU_FILE file then it checks if the user who
* started susu is present in the list. If the check is positive, the user will
* became ROOT with su - ROOT.
[...]
VIM scripts and programs
{- Web Of Code -}
Vim client
http://freaknet.org/alpt/src/utils/woc/readme
This is the WoC client for Vim.
If you don't know what WoC is, read doc/woc_protocol, or see
http://dev.dyne.org/trac.cgi/wiki/Woc
Download the latest WoC-vim tarball from:
http://www.freaknet.org/alpt/src/utils/woc/tarball/
*
** Installation
[...]
xmplayer
A XMMS replacement in bash
http://www.freaknet.org/alpt/src/utils/xmplayer/
The name of xmplayer derives from xm(ms)mplayer.
Xmplayer executes, only once, mplayer in background and controls it
through a FIFO. It supports all the (useful) features you'll find in XMMS and
it is easily extendible.
However, unlike XMMS, Xmplayer doesn't require any X server active. You can
even use it from a remote shell. Indeed, this was the main reason for its
development.
Xmplayer has also some unique features like `jgrep' that lets you jump to the
[...]
--
Generated by comment2html.sh