To check your apache2 config files for syntax errors run sudo apache2ctl configtest or shorter sudo apache2ctl -t
In order to request a SSL certificate from any dealer, you usually need a CSR certificate. As both the CSR...
This snippet makes links that refer to an anchor (like "...
...") scroll softly to it.\ In this example we only do...
Note: In Rails 3+ you can use Array.wrap instead of the solution here. In the past you could use Array...
I found a nice script on crazylittlehacks and modified it slightly. Put the attachment to /usr/local/bin, chmod +x and run...
XPath matchers can be combined with CSS-selector matchers. This is really useful if not, for example, the content of...
If you want to enforce soft tabs (spaces instead of tabstops) in Vim put this into your ~/.vimrc (Linux) or...
Copy the attached Ruby code to config/initializers, or paste it into your IRB console. You can now dump any two...
Update: Staticmatic will not be further developed. They suggest to switch to middleman. If you need to make a static...
When running an executable, ALWAYS use bundle exec. In some cases, running executables without bundle exec may work, if the...
Deprecated ways to execute shell code in Ruby This is just a reference for legacy code. For new code, always...
You probably already manage servers you often connect to inside the ~/.ssh/config file. What is nice: you may define alias...
When your cucumber features grow massively over time, the test execution can take a lot of time.
One of the more controversial changes in the Ubuntu 10.04 beta is the Mac OS-inspired change to have window...
After having written useful scripts into makandra notes for a long time, we’ve now tied them into a powerful...
This card shows you how to center a float horizontally in CSS. Also: find out what techniques are available for...
If you manipulate the DOM with JavaScript and your page contains nested elements with position: relative, chances are Internet Explorer...
Since May 2011 we are cutting new gems using Bundler, which is less painful than cutting gems using Jeweler. You...
This is an awful way to test whether a number is shown on the screen: Then I should see "5...
Capybara allows you to select DOM elements, e.g. by using field, find_field(...) or field_labeled(...): role_select = field_labeled...
These steps are now part of Spreewald. Here are some useful examples how to use the attached Cucumber Timecop steps...
Today I needed to execute a ruby gem executable with sudo. But, surprisingly, bash would tell me command not found...
When you simply want to get to know Puppet, follow puppetlabs’ Learning Puppet Docs. They give you a handy introduction...
Although regular expression syntax is 99% interchangeable between languages, keep this in mind: By default, the dot character (".") does not...