Shiny and new
After having moved to a new server yesterday, I just installed the new theme I was working on in my spare time for the last weeks. I set the focus on a clean, bright and typography-oriented design and I’m quite satisfied with the result. Heavily based on Thematic, Sandbox and Blueprint CSS, I had a very good platform to build on and skipped the most part of digging in WordPress’ theme documentation. Please let me know if you run into any problems.
Install git 1.6 from source on debian etch
aptitude install build-essential gettext wget http://kernel.org/pub/software/scm/git/git-1.6.0.1.tar.gz tar xvzf git-1.6.0.1.tar.gz cd git-1.6.0.1 ./configure make make install
Risotto al Teroldego
Typisch italienischer Risotto. Der aus Norditalien stammende Teroldego verleiht dem Gericht eine einzigartige und markante Note. Original ohne Speck und Rucola, aber ich finde es passt gut dazu und rundet alles ein wenig ab.
GNU Nano Tipps&Tricks, Shortcuts und Syntax Highlighting
Ich verwende auf der Kommandozeile bevorzugt nano gegenüber vim, ganz einfach deswegen weil mir vim zu umständlich ist, ich mir die Befehle nie merke und ich für die Bearbeitung von ein paar Configfiles nicht unbedingt einen “mächtigen” Editor benötige. Zum Programmieren verwende ich sowieso lieber eine graphische Umgebung. Trotzdem kann nano eigentlich mehr, als man auf den ersten Blick meinen könnte. In der Augustausgabe von freiesMagazin sind ab Seite 25 einige nützliche Tipps&Tricks, Shortcuts und die Möglichkeit des Syntax Highlighting für diverse Sprachen beschrieben.
Wem Syntaxhighlighting für eine bestimmte Sprache abgeht: auf dem LinuxHelp Wiki gibts noch ein paar rc-files für diverse Sprachen. Hier meine für PHP (aus dem Wiki leicht angepasst):
syntax "php" ".php[2345s~]?$"
color brightblue start="<?(php)?" end="?>"
color blue start="<[^?]" end="[^?]>"
color cyan "$[a-zA-Z_0-9]*"
color cyan "([)|(])"
color blue "<(var|class|function|echo|case|break|default|exit|switch|if|else|elseif|@|while|foreach|return|public|private|protected|require|require_once|new|true|false|as)>"
color red "="
color green "[,{}()]"
color green "=="
color white "('[^']*')|("[^"]*")"
color yellow start="<!--" end="-->"
color yellow start="/*" end="*/"
color yellow start="#" end="$"
Lustige und kreative Werbungen
Gerade gefunden: auf afrison.de gibt es Auflistungen von wirklich lustigen und kreativen Werbungen. Anschauen lohnt sich :)
- 67 Verdammt Kreative Werbungen! Werbung Muß Nicht Dumm Oder Langweilig Sein!
- 54 Humorvolle Und Ausgefallene Werbideen Perfekt In Szene Gesetzt!
(via Frank Helmschrott)
VPN-Verbindungen mit VBS automatisiert erstellen
Da ich meine Rechner relativ oft neu aufsetze, ist es ziemlich nervig, jedes Mal diverse VPN-Verbindungen per Hand einrichten zu müssen. Deshalb hab ich eine Runde im Netz gesucht und bis auf ein VB-Script in einem Forumpost nicht viel gefunden. Da das Script aber tut, was es soll, habe ich es schnell auf ein deutsches Windows umgeschrieben und um die Möglichkeit mehrerer Verbindungen erweitert. Einfach das Connections-Array anpassen, als dateiname.vbs abspeichern und ausführen. Macht Spaß dabei zuzusehen ;)
Getestet unter Windows XP Pro, sollte aber auch unter Windows 2000 funktionieren. Keine Ahnung wie es unter Vista aussieht, wenn es jemand probiert wäre ein kurzes Feedback super.
Dim objShell
Set objShell = WScript.CreateObject("WScript.Shell")
Dim Connections
Connections = Array(Array("Verbindung 1", "127.0.0.1"), Array("Verbindung 2", "localhost"), Array("Verbindung 3", "192.168.1.1"))
With objShell
.Run "Control ncpa.cpl"
wscript.sleep 2000
End With
For i = 0 To UBound(Connections)
With objShell
.AppActivate "Netzwerkverbindungen"
wscript.sleep 500
.SendKeys "%DN"
wscript.sleep 500
.SendKeys "%W"
wscript.sleep 500
.SendKeys "%NW"
wscript.sleep 500
.SendKeys "%VW"
wscript.sleep 500
.SendKeys "%N" & Connections(i)(0) & "%W"
wscript.sleep 500
.SendKeys "%KW"
wscript.sleep 500
.SendKeys "%H" & Connections(i)(1) & "%W"
wscript.sleep 500
.SendKeys "{TAB}{TAB}{ENTER}"
wscript.sleep 500
.SendKeys "{ESC}"
wscript.sleep 500
End With
Next
Update: habe die Sleep-Zeiten auf 500ms erhöht, da ich teilweise Probleme hatte, wenn viele Verbindungen erstellt werden sollten.
Lazy Linux: 10 essential tricks for admins
Sehr interessanter Artikel von IBM, der einige nützliche Tipps&Tricks für den Linux Admin beschreibt.
Fetchmail and Sieve with Virtual Mail on Debian Etch
Update: This post is quite old and does not work out of the box with the current ISPMail tutorials. I posted an update here.
When it comes to mail servers, I really like the setup Christoph Haas describes in his Document Howto: ISP-style Email Server with Debian-Etch and Postfix 2.3. One thing I was missing on a server was the ability to automatically generate config files for fetchmail and sieve from the database in order to get mail from other servers and being able to apply server side filters on incoming mail. This howto is based on the mentioned tutorial.
The additional setup is quite simple: 2 more database tables hold the data for fetchmail and sieve rules and a set of PHP scripts called by cron every few minutes fetches the data and writes it into the appropriate config files. For fetchmail, a script creates a .fetchmailrc file in /home/vmail/. For sieve, another script creates a .dovecot.sieve config file for every user who got sieve rules in the database.

I just discovered “Quickstart”, the swiss army knife for Ubuntu which is a handy little tool for different tasks. For more information see 