Slides for Henning's talk on Sep 21st 2017. Understanding sync vs. async control flow Talking to synchronous (or "blocking...

If you are using PDFKit / wkhtmltopdf, you might as well want to use custom fonts in your stylesheets. Usually this...

I frequently find myself needing a combination of group_by, count and sort for quick statistics. Here's a method...

Dump this method into your Ruby console to quickly print data in columns. This is helpful for e.g. comparing attributes...

ImageMagick has a command line tool called identify which can read image metadata: >identify -verbose DSC00136.JPG Image: DSC00136.JPG Format: JPEG...

makandra Operations

on the bash (issued as postgres user) Start/Stop/Restart PostgreSQL pg_ctl -D $configdir start|stop|restart Start/Stop/Restart the corresponding PostgreSQL...

medium.freecodecamp.com

Collection of useful tools in the Chrome JavaScript console. Make the whole page editable This is not special to Chrome...

So you're getting this failure when running bundle install on an older project: Your Gemfile.lock is corrupt. The following...

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...

unixetc.co.uk

When a directory has more than a few thousand entries, ls will start taking really long to list its content...

makandra dev

These are Chrome plugins that proved useful at makandra. Each is the best-in-class. Dimensions Auto-measure distances by...

This pretty-prints a JSON object, with two spaces of indentation: JSON.stringify(object, null, 2)

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...

You can configure a stat socket for haproxy in the global section of the configuration file: global daemon