Powered by
Movable Type 5.2.9

 Web Dump Archives

2006, October 06 (Fri)

Web Dump Nei's Web Dump

Did you come here looking for Nei’s Web Dump — a few patches or Irssi scripts? adv_windowlist.pl? Irssi for Windows?

You can now find the content on http://anti.teamidiot.de/static/nei/*/ in a steamlined appearance. Something’s missing and you’re sure it was there earlier? Tell me about it!

Or are you maybe looking for some TLA/Arch repositories? ircu--ailin--2.10.12 or srvx--ailin--1.3? They're mirrored at the SuperMirror (Browser (slow)).

Sorry about that.

2006, November 27 (Mon)

Linux, Web Dump misc scripts: 32bit chroot on 64

compiling software in a 32bit chroot on a 64bit box which tries to loot out the arch with “uname” requires some guidance:


/bin/uname "$@"|sed -e's/x86_64/i686/'

Linux, Web Dump misc scripts: shadow mirror (aka xcopy/t)

populate a directory tree without the actual files, for example if you want to show someone your hdd content without giving her the data:

on the system with the data, create a list of directories:

find -type d > hdd_dirlist

and a list of files:

find -type f > hdd_filelist

on the target, replay these with

perl -ne'chomp;mkdir$_' ~/hdd_dirlist
touch .empty
perl -ne'chomp;link ".empty",$_' ~/hdd_filelist

beware of the links, if you want to put an actual file in place of a shallow one, rm it first or modify the scripts to create files instead of just links.

2007, January 16 (Tue)

Netzwelt, Web Dump, Windows Irssi 0.8.10 for Windows (Cygwin/Win32)

(Update the download has been removed but I preserve the post for itself. Please install irssi from Cygwin’s setup.exe)

This has been in my static folder at least since the official release of that version, but I hadn’t posted it on the website yet.

Back in the days, when I was looking for a Windows version of this rather popular *nix IRC client, they did not have a single working link on their website/ download page http://irssi.org/!

Of course you can always tell the users to “just build it yourself”, but seriously, which average user is capable of doing that?

So after researching the Internet and not finding any suitable Windows build of Irssi, I decided to fix that gap myself. So I created above build.

When I checked back at the time of writing this entry, they now link to a build of Irssi 0.8.9 on their download page; I would claim that this is no official build (but maybe they’ve gotten the creators permission to hot-link (deep-link) it).

I believe I had already found this build at the time when I was looking for one, and the website didn’t have any; but not only is it outdated (version-wise), it also does not support Perl, Irssi’s premier scripting binding. Since I like to enhance my client with several scripts, that was no good.

Also, there is a new feature called “recode” in Irssi 0.8.10, which (although it ultimately sucks) enables you to chat in places where ISO-8859 and UTF8 charsets are in mixed use.

Given these two reasons, the 0.8.9 version of Irssi was not an option to me.

For those interested in making their own Irssi/Cygwin builds on Windows, I’ve written down the necessary steps. Hit the jump to read them.

Continue reading “Irssi 0.8.10 for Windows (Cygwin/Win32)” »

2007, January 31 (Wed)

Netzwelt, Programmierung, Web Dump Irssi Scripts

Don’t get me wrong, please. I haven’t written these scripts — I was
merely using them.

Because I’ve got them lying ‘round in my so called “Web Dump”
for a long time now, I thought I’d write a slightly more comprehensive
introduction to what made my life easier just a little while ago.

I hope this can be of interest to some of you, and maybe I have a lucky
hand with keywords so that even more people can benefit from these nice
scripts when a search engine spider picks them up.

I have lsted these works in no particular order:

Web Dump Irssi theme for light background colour terminals

Download default.theme

Now, this isn’t actually a script but it is important nonetheless. There
are quite some people using terminals with lightly coloured backgrounds,
and the Irssi default theme is particularly bad suited for these since
it hardcodes several text colours as white! This is a slightly
modified default theme simply replacing these with the black colour.

Web Dump BitchX like tab completion for Irssi

Download niq.pl

Let’s be honest for a second, the Irssi nick completion sucks. In
particular, it does not feature “partial” completion like BitchX or your
favourite shell might.

I found a script called niq on the “official” scripts page which
promised to relieve this shortcoming, but for some reason it wouldn’t

So one day when I was muttering about this in the #irssi irc channel,
some guy (don’t remember you, sorry! contact me if you want credits.)
told me “well yea this is broken and there is a fixed version at
this-and-that place.”

And I was like “oh great why did noone ever tell me” — and this is
exactly the problem with the central Irssi scripts archive: badly

I don’t even know what this page was where it had the fixed version,
sorry about that. But at least I mirrored the script so hopefully
someone will find it here.

Web Dump Irssi: Format additional whois output from Undernet IRCd (ircu)

Download ircuwhois.pl

This script is based on the quakenet.pl script I first found on
http://www.oberkommando.org/~senneth/irssi/scripts/ — I only extracted
the message formatting part, though.

Many IRC servers introduce reply codes which are not, or not fully
supported by Irssi. Since I was an avid user of QuakeNet and Undernet
IRC networks, which are both running the same software, I was
dissatisfied with Irssi’s presentation of the /whois output.

In particular, this script formats the reply containing the user’s account
name (this is used by network services), the user’s actual IP and
hostname (the hostname shown in the user@hostname string may be replaced
with a custom one on these networks), and whether the user is connected
via SSL (this is an extension not present on QuakeNet or Undernet,

This script is not really important, but it was important to please my
aesthetical senses.

Web Dump Make the chat start at the bottom in Irssi

Download messages_bottom.pl

On a freshly started Irssi, all message text will start floating from
the top of page; just like when you open a new terminal on X11 or
‘clear’ your screen on the console.

I find this highly distracting, since whenever you are looking at a
window, you need to make a decision as to where exactly the text ends.

A much better approach is to fixate the viewpoint on the bottom line, as
will automatically happen with time, anyway.

This script will make it happen immediately, much improving my IRC
morning. Simply by printing a number of empty lines, the “cursor” will
be moved to the very end of screen and new messages will start appearing
at the bottom right away.

A yet better (and still missing) script would be one to reload the IRC
log files when you start Irssi. mIRC already has a builtin feature to do

(There actually is a script to do the latter, at least for private
messages, on the official scripts archive. But it sucks so much that I
daren’t recommend it.)

Web Dump Draw a line at the position where you last left the Irssi window

Download trackbar22.pl

Once you’re in the flow of IRC, another important tool to keep track of
which messages are new is what mIRC calls the Line Marker. Whenever you
switch windows, it will add a horizontal line marking the position where
you switched away from this window.

That way, you’ll easily be able to refind the spot where you left off
reading the chat window when you return to it.

The mIRC original will only update the marker if you have actually
“visited” it, i.e. scrolled the screen so much that you could actually
see the marker (in case it had went off-screen). Unfortunately, there is
no such feature in this trackbar.pl version.

I am pretty sure that I once had a trackbar version which would allow you to directly jump in scrollback to the position at
which the trackbar is located. I wonder where it went.
(I’m also fairly sure that I was using that mentioned version in the
last days, and not this one.)
This script has now been located and is available as trackbar22.pl

Web Dump Redirect DCC sends with Irssi

Download dccrelay.pl

This is actually a port of a mIRC script I stole from nnscript, I think.
In any case, depending on your circumstances a very handy script.

I used to run Irssi on a shell account, but wanted to receive DCC file
transfers directly to my home box. Well, this script does just that. It
forwards (relays) the DCC messages to another user on IRC.

This means you can redirect DCC file transfers to any other user; it is
not limited to your home box.

(The original mIRC source is included in the file.)

Web Dump Mouse wheel support in Irssi

Download mouse_soliton.pl

The original version of this can actually be found on
http://wouter.coekaerts.be/irssi/. This script enables the mouse scroll
wheel to scroll the channel content as well as supporting some gesture
recognition to do stuff.

The problem with the mouse scripts is, that since they enable XTerm
mouse reporting, but Irssi does not actually support this in any way,
nor is it possible through scripts to simulate copying and pasting of
text, that it is difficult to copy like e.g. quotes or URIs out of the
Irssi terminal window.

This version is enhanced by Soliton to provide easy means to disable the
XTerm mouse reporting mode, in order to allow for easier access to
terminal copy&paste behaviour.

Web Dump Irssi: Interactively read user input from scripts

Download question.pl

The question script isn’t a script that I actually use, it was more like
a demo written by someone called Cydex to show how you can make a script
that asks the user a question — by overwriting the send command
and send text handlers.

There are a few problems with this though: how do you save the text user
has already inputted when the question arises? How do you restore it?

2010, October 18 (Mon)

Netzwelt, Web Dump nonoh command line dialer

If you are using nonoh to manage international IP calls with acceptable rates, I can recommend taking a look at this command line dialer script.

It is much more convenient to use than the website (no need for the ugly select box country code), and you can easily set up aliases or another front end for it. Besides, it doesn’t need a big web browser so you it is also good to use over SSH. Furthermore, you can easily see the rates (which are setup charge; tariff; and billing interval for caller and callee, in €-¢t/10000) before even accepting the call.

To use it, you need a working Perl installation. Then just type cpan followed by install WebService::Nonoh. Obviously, the script might break when the website changes.

An older script was based on the script found on voip-info.org with added fee and error code output.

A small usage summary:

# check balance:
# connect call
# send SMS

2011, November 25 (Fri)

Web Dump (AIX) 16-color table for Emacs' ansi-color

here’s a quick and dirty way to teach ansi-color the aix color codes

(setq ansi-color-map
           default bold
                           default italic underline bold bold-italic modeline
                           nil nil nil nil nil nil nil nil nil nil nil
                           nil nil nil nil nil nil nil nil nil nil nil
                           (foreground-color . "black")
                           (foreground-color . "dark red")
                           (foreground-color . "forest green")
                           (foreground-color . "dark orange")
                           (foreground-color . "dark blue")
                           (foreground-color . "dark magenta")
                           (foreground-color . "dark cyan")
                           (foreground-color . "light grey")
                           nil nil
                           (background-color . "black")
                           (background-color . "dark red")
                           (background-color . "forest green")
                           (background-color . "dark orange")
                           (background-color . "dark blue")
                           (background-color . "dark magenta")
                           (background-color . "dark cyan")
                           (background-color . "light grey")
                           nil nil nil nil nil nil nil nil nil nil nil
                           nil nil nil nil nil nil nil nil nil nil nil
                           nil nil nil nil nil nil nil nil nil nil nil
                           nil nil nil nil nil nil nil nil nil
                           (foreground-color . "dim grey")
                           (foreground-color . "red")
                           (foreground-color . "green")
                           (foreground-color . "gold")
                           (foreground-color . "slate blue")
                           (foreground-color . "magenta")
                           (foreground-color . "cyan")
                           (foreground-color . "white")
                           nil nil
                           (background-color . "dim grey")
                           (background-color . "red")
                           (background-color . "green")
                           (background-color . "gold")
                           (background-color . "slate blue")
                           (background-color . "magenta")
                           (background-color . "cyan")
                           (background-color . "white")
                           nil nil

2012, March 07 (Wed)

Web Dump \autoref completion in AUCTeX

you can use this code

(add-hook 'LaTeX-mode-hook
          (lambda ()
             (lambda ()
                '("autoref" TeX-arg-label))))
            (add-to-list 'TeX-complete-list
                           1 LaTeX-label-list "}"))))

(Complete by C-c RET RET TAB or M-TAB)

2012, October 28 (Sun)

Web Dump hocr fix for tesseract

If you like to use tesseract to make “searchable” PDFs and find that some parts of the page content are missing in the PDF, here is the necessary fix for ExactCODE’s hocr2pdf

Index: lib/hocr.cc
--- lib/hocr.cc
+++ lib/hocr.cc
@@ -327,6 +327,12 @@
   //std::cerr << "elementStart: '" << name << "', attr: '" << attr << "'" << std::endl;
   BBox b = parseBBox(attr);
+  // explicitly flush line of text on manual preak or end of paragraph
+  if (attr.find("class='ocr_line'") != std::string::npos ||
+      attr.find("class='ocr_par'") != std::string::npos)
+    textline.flush();
   if (b.x2 > 0 && b.y2 > 0)
     lastBBox = b;

2013, October 30 (Wed)

Linux, Programmierung, Web Dump Network Scanner Server, headless

Usage scenario:

Your small group has a scanner in walking distance, and wants to use it for simple scanning.

  • It is not worth it to connect the scanner to the user’s computer,

  • and also not worth it to be running back and forth between scanner and computer to check the scanning progress (as is suggested by saned).

  • Mixed local/network scanning on the machine is not required (as suggested in scanbd.)

  • The scanner is connected to a machine without display but with audio hardware. In our case it is an old broken Thinkpad.

  • Maybe the scanner is a cheap crappy scanner without automatic document feeding etc.

This script will poll the buttons, scan according to two pre-sets (you could make the scripts more complex if desired) and publish the result on a Windows share.

Communication with the user is done through speech synthesis software.

End user experience:

  • The Windows share is added once through “Connect Network Drive” in Windows or as a smb:// Bookmark in Nautilus, possibly by a local “Computer Expert”

  • User has something to scan, takes the papers to the room with the scanner. He puts each sheet on the scanner and pushes Button 1. When the scan is finished, he does the same with the next sheet and so on. At the end, the user pushes Button 4 to signal he is done scanning.

  • User goes back to his computer, copies the finished PDF file out of the network share. If necessary, he launches Adobe or another software to fix up any rough edges in the scan.

  • User could also print this document to some printer in yet another room, after reviewing that everything is in order.

Script to do it:

You can grab your copy here: scanbtn.tar. Detailed information is inside the README file therein. Enjoy!

2015, June 09 (Tue)

Linux, Web Dump Firmware updates for Z30 from Linux

BIOS update

  • Download bios .exe from Toshiba (US site), it includes ISO
    (EU updates are only for Windows ☹ )
  • Extract iso image from .exe
  • Run isohybrid image.iso
  • cp image.iso /dev/usbstickhere
  • reboot
  • set bios to CSM boot
  • F12 for boot menu → USB stick
  • cross fingers…
  • set bios back to UEFI boot

SSD firmware update

  • Download Samsung firmware update tool
  • Download SSD firmware package from Toshiba
  • extract *.enc firmware files from the self-extracting archive
  • run ./magician -d 0 -F -p /path/to/firm

Required folder structure for /path/to/firm:


Linux, Web Dump Keyboard Light on Z30

By default in GNOME, you cannot toggle the keyboard light. For GNOME, there is no solution to use the key binding (XF86KbdLightOnOff) as intended, because gnome-settings-daemon reserves the key at a level that does not allow any further capturing. Other DMs may not suffice from this “feature”.

What you can do is, to put the function on another keyboard shortcut (ex. Winkey+Z) and have it execute this script

That will toggle through the three keyboard states (automatic, on, off). You can put it on suid-root so that you can change the file in the /sys interface.

Update you can also use acpid and this config file:


(thanks to nulli)

2015, June 16 (Tue)

Web Dump manual connect to 802.1x with netagent

Note, The following only works on firmware 5.7 or smaller, I have found no way to make the new dynamic connect version of netagent starting from fw 5.8 work :-(

Adjust the following configs like this:




[ {
  "id": "wifi",
  "cacert": "yourcert.crt",
  "essid": "eduroam",
  "hidden": 0,
  "idle": 10,
  "key": "",
  "mode": 0,
  "security": 2,
  "wepmode": 0,
  "eaptype": "TTLS",
  "username": "user@realm",
  "usercert": "",
  "password": "yourpassword",
  "eapmethod": "\"auth=PAP\"",
  "network_param": { "ipconfig": 0, "dns_list": [ "", "" ] }
} ]

and put the certificate file into I:\system\Certificates