Setuid and Sticky Bits
On Unix-like systems there are special permission types for files and directories. What do the sticky bit and setuid mean and how can you use these? Let’s compare them. (Sidenote: incorrect use of these permission types may result in severe security...
Tweak SpamAssassin thresholds
In a previous post I explained how to setup Amavis, ClamAV and SpamAssassin. In this post I will describe how to customize the SpamAssassin thresholds in order to better block spam messages.
Automatic update of CloudFlare IP addresses in nginx
Recently I’ve explained how to display the real IP address of a visitor when you’re using CloudFlare. In this follow up, I will explain how you can use a script to keep the list of CloudFlare IP addresses in your nginx config up to date.
Filter grep results with regular expressions
Anyone that uses the unix command line on a regular basis will probably also use grep a lot to search input files for a certain string. I use it many times each day, but somehow didn’t bother to improve my “grep fu”.
Extract tar files to another directory
When you extract a tar archive, by default the files and directories will be extracted to the current working directory.
Custom error pages for nginx
By default the error messages in nginx are hardcoded and are not really nice looking. It is possible to show your own custom error pages. In order to so, a minor change to the config file is needed.
Create a MySQL user and set the correct privileges
Kicking the habit of a phpMyAdmin addiction
A confession: My name is Marek and I’m an recreational phpMyAdmin user. Although I’m not a big fan of phpMyAdmin - its imaginative user interface keeps surprising me - there is one thing for which I use it constantly: adding new users to MySQL and...
Node.js server examples
With Node.js it is really easy to set up a simple server. Below I’ve collected some examples I’ve found and added a short explanation to each one.
Flush or delete messages from the mail queue
Postfix stores messages in a mail queue before actually sending it. Sometimes a message can’t be sent and in that case you can access the queue and remove it manually.
CSS cursors all around
A lot of CSS cursors Cause I’m a sucker for neat and ordered lists, today’s example is a collection of CSS cursors. With screenshots and live previews.