TL;DR Debugging problems with javascript errors in cucumber tests is sometimes easier in the browser. Run the test, stop...

This method will remove automatically installed packages that no other packages depend on any more. This, of course...

When building a web application, one is tempted to claim it "done" too early. Make sure you check this list...

When testing Ruby code that prints something to the terminal, you can test that output. Since RSpec 3.0 there is...

makandra dev
vectormagic.com

Automatically convert bitmap images like JPEGs, GIFs and PNGs to the crisp, clean, scalable vector art of EPS, SVG, and...

Create htpasswd entry and print to stdout: $ sudo apt install apache2-utils # Optional $ htpasswd -n $USERNAME New password:

If you are on a Linux shell and want to open a file with whatever default application is configured for...

The following sums up all connections (ESTABLISHED, TIME_WAIT, FIN_WAIT, etc.) and sorts it: netstat -n | awk ' $5 ~ /^[0...

makandra dev

Geordi is now (partially) tested with Cucumber. Yay! geordi cucumber supports a new @solo tag. Scenarios tagged with @solo...

makandra dev

Ever wondered how you can create a simple table output in bash? You can use the tool column for creating...

makandra dev
cyberciti.biz

Wondering which processes are placed in your swap you can use this bash oneliner: for file in /proc/*/status ; do...

makandra dev
serverfault.com

Logging tcpdump output all the time can create a huge amount of data. This can be both: too much data...

When you make a simple TCP connection to a remote server (like telnet), your client won't normally notice when...

Method lookup Understand all the terms in How Ruby method lookup works, in particular: include extend singleton class

makandra Curriculum

We've already learned how to integrate user-provided images uploads to our application in 205 basic file uploads and...

On Ruby 1.9+, standard ruby character classes like \w, \d will only match 7-Bit ASCII characters: "foo" =~ /\w+/ # matches...

If you'd like to preview the crontab that whenever will deploy, run the following: bundle exec whenever

Web security basics Einführung in die Web Security 🇩🇪 provides essentials for the topic of this card. Read following chapters:

makandra Curriculum

Goal of this lesson is to understand what middlewares in Rack are good for. Rack Start with these articles:

Running projects parallel makes some trouble with PDF generation. Use geordi rspec spec to force sequential tests for the whole...

JavaScript is a scripting language supported by all browsers. Browsers don't speak Ruby, so if we want to implement...

Investigate why mails are frozen The exim documentation says: Freezing occurs when a bounce message encounters a permanent failure because...

dmesg shows the kernel ring buffer containing low-level system messages. Per default, dmesg shows a timestamp:

yoyo.io

Fontawesome 4 has introduced new naming conventions that make it easy to retrieve variants of a given icon.