Apache conf serving static files with question mark in filename

If you have files on your filesystem with ‘?’ question mark in them, for example: index.html?q=somestring This can occur when you have site-ripped a PHP based website with for instance wget or other tools. If you access an url with ‘?’ in it, the webserver will try to serve the string after the question mark …

Convert multiple files from latin1 to utf8 with vim

If you have several files that need to be converted to utf8, you can do it with vim. First start vim with: $ vim $(find . -type f -iname ‘*.htm*’) Which will find all .htm and .html files from the current directory. Then in vim, use : to go into command mode. Run these two …

Use Curl to read your imap emails

You can use the bash command “curl” to read your imap emails like this: Note: your password will be visible on the command line, so don’t use this on a public server. So it is actually better to create a file, for instance called secret, then write your password in it, and protect it with: …