My Geeky Page
by Guillaume Chazarain

importgraph.py


Screenshot

importgraph.py is a Python script that attempts to extract module dependencies from the import statements in a Python project. Its output can be fed into graphviz to produce graphs as these examples show.


Screenshot

getenv.sh

Ever wondered which environment variables are consulted by a program? ltrace -e getenv does not tell the full story, so getenv.sh lists all calls to getenv(3) made by a program. For example, on my Fedora ltrace does not show that xclock(1) reads the DISPLAY environment variable.

With ltrace:

[g ~]$ ltrace -e getenv xclock
+++ exited (status 0) +++

Nothing … and now with getenv.sh:

[g ~]$ ./getenv.sh xclock
getenv("XTAPPPEEKEVENT_SKIPTIMER") = NULL
getenv("DISPLAY") = ":0.0"
getenv("XAUTHORITY") = "/tmp/.gdmWQFWIT"
getenv("XLIBBUFFERSIZE") = NULL
getenv("XKB_DEBUG") = NULL
getenv("_XKB_OPTIONS_ENABLE") = NULL
getenv("XKB_DISABLE") = NULL
getenv("RESOURCE_NAME") = NULL
getenv("XLOCALEDIR") = NULL
getenv("XLOCALEDIR") = NULL
getenv("XMODIFIERS") = NULL
getenv("XENVIRONMENT") = NULL
getenv("HOME") = "/home/g"
...

Gedit completion plugin

I wrote a Python plugin to do some text completion in gedit, to install it just copy completion.gedit-plugin and completion.py in ~/.gnome2/gedit/plugins. Once the plugin is enabled, completion is accessible with Alt-/, it will show a list with possible completions.

Elias Holzer simplified the plugin usage and released an improved version in which Tab cycles between completions.

Iotop

Iotop has now moved to its own project page.

Dovecot IMAP plugin

If like me you aggregate all your mails with the Dovecot/Fetchmail couple, here is a Dovecot plugin to automatically wake up Fetchmail when Dovecot looks for new mails.

Please contact me for any suggestion, problem, feedback…

Valid XHTML 1.1! Valid CSS! and hopefully compliant with your expectations

S