Skip to content

Category: Technology

Configuring thunderbird to put date of original message above quote

To put "on [date] x wrote" instead of "x wrote" above a quote, set the mailnews.reply_header_type param to 2.

Read More »

Preventing IOerror on stdout with modWSGI

By default, you can't use prints in a django app, because mod_wsgi restricts that. You can change that by putting this in your configuration: Read More »

Changing an apache virtual host to ssl

To change a virtual host in apache to ssl: #Redirect all normal traffic to the https site. RewriteEngine on RewriteRule ^/(.*) https://%{HTTP_HOST}/$1 [L,R] Read More »

Redirect multiple domains to one

When a site is available under multiple domains, it is usually bad idea to not have them all redirect to one domain. In apache, do this: Read More »

Making Windows RDP more secure

I don't really trust the security of RDP, so therefore I'd like to take some extra security measures. I found this article explaining a lot. Read More »

Generating key and certificate for courier-imap

To create a self-signed certificate for courier-imap: openssl req -new -x509 -days 3650 -nodes -out imapd.pem -keyout imapd.pem Read More »

Setting password for mysql user in .my.cnf

Sometimes you want automated access for root on your MySQL database. One way of accomplishing that is by doing this: Read More »

Disabling debug for mod wsgi

For the record, when deploying mod wsgi apps, remember to enable optimizations in mod_wsgi.conf. Otherwise debug will be true.

Read More »

Setting a custom greeting for an Asterisk voicemailbox

By default, Asterisk always plays its own vm-intro as voicemail intro. To enable the user to record their own message, the entry in extensions.conf which sends a caller to the voicemail should be: Read More »

Making a port forwarded machine available from within the LAN

When you forward a port to an internal machine on the network, you still can't access that host using your WAN-IP from within the LAN. This article explains it well. In short, it's because the reply the machine your connecting to makes, goes to the LAN IP directly, and not back through the router. Read More »