In the ruby shell (IRB) and rails console the return value of the previous command is saved in _ (underscore). This...
You can configure a Ubuntu system as a gateway in order to share it's internet connection (maybe via WLAN...
Webpack is the future. We're using it in our latest Rails applications. For tests, we want to compile assets...
RawGit serves raw files directly from GitHub with proper Content-Type headers, for CDN-like purposes. Note that they don...
When using GROUP BY, MySQL now complains if the SELECT includes columns which are not part of the GROUP BY...
When you have a multi-server setup, you'll be adding a new server from time to time. Before doing...
Rails supports time zones, but there are several pitfalls. Most importantly because Time.now and Time.current are completely different things and...
You can use gem list to list all gems available from a remote gem server: gem list -r --clear-sources...
By default Middleman generates files with a .html extension. Because of this all your URLs end in /foo.html instead of...
Middleman is a static page generator that brings many of the goodies that Rails developers are used to.
Sometimes, through some firewall or proxy misconfiguration, you might have to deploy to a server that cannot access the git...
Dump this method into your Ruby console to quickly print data in columns. This is helpful for e.g. comparing attributes...
Database connections are not thread-safe. That's why ActiveRecord uses a separate database connection for each thread.
In case you want to require a gem, that is not in the Gemfile of you bundle and therefore not...
For the initial setup or changes in the sentry reporting it might be useful to enabled reporting of sentry in...
ImageMagick has a command line tool called identify which can read image metadata: >identify -verbose DSC00136.JPG Image: DSC00136.JPG Format: JPEG...
This card is just about creating simple PostgreSQL dumps. This is no instruction for a backup strategy nor a guide...
Crontabs are often unordered, especially when generated for an application where you usually group tasks by their domain/scope.
Website that offers lots of different kinds of HTTPS configurations, bad or good or complicated. They also offer a dashboard...
Occasionally, you have to talk to APIs via HTTPS that use a custom certificate or a misconfigured certificate chain (like...
run-one is a wrapper script that won't run the given command while another instance of it is running...
Add the following to /etc/rc.local: (sleep 3 && echo disable > /proc/acpi/ibm/bluetooth)& Bluetooth icon will be active for a few seconds, then...
To create a 10 GB file: fallocate -l 10G huge_file.dat
Just like we use gems on the server, we use third party JavaScript libraries in the browser. These typically provide...