Awesome is a very good tiling window manager that provides neat features like automatic layouting of windows, good multi-display...
If you want to access top-level constants inside a BasicObject class, you need to prefix them with ::.
When creating an index using CREATE INDEX, Postgres will create a B-Tree type index by default. The B-Tree...
Git commands tend to come in groups. Avoid typing git over and over and over by running them in a...
jQuery's deferred objects behave somewhat like standard promises, but not really. One of many subtle differences is that there...
Flexbox is great, but you don't get reliable support in Internet Explorer. The attached article shows how to accomplish...
This card existed before, but was outdated due to browser implementation changes. The information below is validated for the current...
Current webkit browsers like Chrome and Safari have a special variable in their consoles that refers to the selected DOM...
To see all jails: fail2ban status Our $JAIL is usually ssh. To see which IPs are banned currently: fail2ban-client...
You can find out about disk space usage of all tables within your database by running this: SELECT table_name...
The attached Coffeescript helper will let you create mouse events: $element = $('div') Trigger.mouseover($element) Trigger.mouseenter($element) Trigger.mousedown($element) Trigger.mouseup($element...
Don't use exec without user parameter If you use exec without user parameter, the command will get executed as...
Create htpasswd entry and print to stdout: $ sudo apt install apache2-utils # Optional $ htpasswd -n $USERNAME New password:
Sometimes you might want to check a short link for it's destination before clicking on it. Additional you get...
Some modern Javascript APIs return iterators instead of arrays. In plain Javascript you can loop through an iterator using
To upload a file via AJAX (e.g. from an ) you need to wrap your params in a FormData object.
Angular's location provider stalls links to the current URL, i.e. window.location. As soon as the $location service is activated...
If you try to restart you may encouter the problem that your networking connection gets shutdown but not start again...
When full text search is overkill and like queries do not deliver this might be an approach you could try...
Brendan Gregg is the Linux performance god. Use the information in this link to find out what ways there are...
If you want to inspect the compiled code of your erb (or haml) templates, you can run the following code...
We want to make the following firewall rule to be applyable to different network interfaces (for e.g. different environments...
This will give the target site full access to your Javascript environment through window.opener, if the target is on the...
Stackprof is a sampling call-stack profile for Ruby 2.1+. Instead of tracking all method calls, it will simply collect...