I use this to simulate the (non-existing) :last-letter CSS pseudoclass, e. g. to insert a tombstone at the...

makandra dev
tldp.org

There are 3 built-in file descriptors: stdin, stdout and stderr (std=standard). (You can define your own, see the...

makandra dev

If you once had HTTP Strict Transport Security enabled for a domain, and you want to disable it again, you...

makandra dev

When you want the table headers to always stay around (e.g. because that table is huuuge), use the code below...

With this command you can initiate an application restart without touching restart.txt. Unlike touching restart.txt, this tool initiates the restart...

Use the following command to test if a server (in this example: makandra.com on port 443) uses Perfect Forward Secrecy...

stackoverflow.com

Check out the jsFiddle Demo. CSS .absoluteCenterWrapper { position: relative; /* Declare this element as the anchor point for centering */ } /* Positioning */ .absoluteCenter...

medium.com

When you, as a developer, look at the choices used to build a particular application, you’re blown away at...

relishapp.com

Sometimes you have a test expectation but actually want a better error message in case of a failure. Here is...

If your terminal has many tabs, you'll want to keep them organized. To change their title from the prompt...

I had a huge MySQL dump that took forever (as in: days) to import, while I actually just wanted to...

You might sometimes use self to capture the context of this before it is destroyed by some function. Unfortunately self...

makandra dev
cronmaker.com

"CronMaker is a utility which helps you to build cron expressions." Check it out at http://www.cronmaker.com/.

Sometimes you need to monitor a connection from your machine to a specific, single host or network in order to...

makandra dev
magnus-g.github.io

Awesome Sass plugin to experiment with Subtle Patterns based textures. It automatically removes the base color from the pattern, leaving...

So you client has asked you to implement a row of buttons to like the URL on Facebook, Twitter and...

When two elements with display: inline-block are sitting next to each other, whitespace between becomes a space character.

tldp.org

$RANDOM on bash returns a random integer between 0 and 32767. echo $RANDOM 9816 echo $RANDOM 30922

makandra dev

Using CSS sprites for background images is a technique for optimizing page load time by combining smaller images into a...

makandra Operations

Create a 1 GB file to swap to (we have sufficient space on / on this machine. Use a different partition...

Connect to your memcached host. (AWS elasticache is memcached) telnet foohost23.cs2631.0001.euw1.cache.amazonaws.com 11211 Once you're connected, find out which 'slabs...

This card shows how to upgrade a Rails 2 application from Rails 2.3.8 through every single patch level up to...

linuxsa.org.au

Here is a good explanation for zombie processes. Quote: If you have zombie processes it means those zombies have not...

Back in the old days, we couldn't do something like that: .foo { position: absolute; bottom: 0; /* This was bad...