Using a for loop in bash to read a file line by line can sometimes be very annoying, here’s a little trick to make it actually red it LINE BY LINE.
Update (2015-07-15): This script is outdated. Matteo Temporini gave live to a new version. This version can be found here: https://github.com/servisys/ispconfig_setup Update (2013-02-28): This script is pretty old. I changed jobs and don’t use ISPConfig anymore. The script is NOT being maintained anymore. Since I’m installing new ISPConfig 3 servers on a frequent base I […]
Today a customer wanted to use their current mail server for sending regular emails to a list with about 200.000 addresses in it. Sure no problem, but this will fill your queue and all other mail from/to your company will get delayed. To avoid this, you can setup Postfix so that it can run a […]
The .bash_history file has no date or time information in it. Sometimes it would be very nice to know when some command got executed. What i did is add the following 2 lines in /etc/profile: HISTTIMEFORMAT=’%F %T ‘ export HISTTIMEFORMAT Now logout, and log back in. Execute a command and check ‘history’: mark@localhost:~$ history 1 […]
People hotlinking your content on their websites can be pretty annoying, especially if you don’t have a flat-fee traffic contract. The following will explain how to setup hotlink protection for nginx.
Don’t you hate it when your file server is filled with .DS_Store files and .TemporaryItems directories? .DS_Store files are hidden files created by Mac OSX in each directory you access with Finder and stores custom attributes of a folder like icon position and background images. Since they’re ‘custom’ and besides that they’re annoying, you don’t […]
Update 2011-11-02: As of version 1.0.7, nginx has built-in support for mp4 streaming. When compiling Nginx with the nginx_mod_h264_streaming module, you might run into this error: error: ‘ngx_http_request_t’ has no member named ‘zero_in_uri’ Apply this patch or manual patch it like this: Look for this piece of code, and remove it. Save the file and […]
Mod_evasive tracks the number of requests at the apache webserver and blocks the delivery in case that a certain limit has been reached. This way you can prevent DOS attacks. DDoS attacks are not really prevented with this module, it might help a little bit, but it’s not a full prevention.