Using comment notes in Rails

In your code: ```ruby # TODO: fix this ``` In your shell: ```bash % rake notes ``` ```text config/routes.rb: * [ 1] [TODO] fix this ```

Move last commit to a feature branch

When you accidentally commit to master/staging and need to move the commit to a feature branch

RSpec rerun failures

How to configure RSpec to rerun failed specs only

Puppeteer - good library for generating pdf's from html.

Puppeteer is node library providing high level chromium api. One of it's key features is generating pdf from html using chromium web engine. This is great ad...

Disable `Missing frozen string literal comment.` Rubocop warning

If you use a Rubocop-connected linter in your IDE, one thing that keeps driving you mad is `Missing frozen string literal comment.` warning. In this post, I'll show you how to disable it.

Generate fake screenshot mockups in minutes

This app allows you to upload screenshots and paste them into a fake phone/laptop mockup.

Launching subprocessess in Ruby

This graph shows several ways to launch subprocess in Ruby.

How to run PostgreSQL if '' already exists

How to run PostgreSQL if it isn't starting because '' already exists

How to include logo into devise messages

A quick guide how to include any file, in this case logo to devise messages

Basic requirements for Facebook Cover Video

Essential requirements for Facebook Cover Video: Recommended resolution: 820 x 462 px Duration: 20 - 90 seconds Filetype: mp4 Remember top and bottom...

jsPDF - JavaScript library for generating PDFs without using backend

Sometimes you wonder if there's a way to generate PDF without dealing with wk*topdf, puppeteer and other massive serverside tools - and there's one - jsPDF - which will generate a PDF for you in a moment, all client-side!

How to hold Mac from going into sleep?

Every Mac owner knows how painful it is if their SSH session with a very important process just disconnects because of Mac going into sleep. Hopefully, there's a way to tell macOS that you don't want it to sleep - and here, you'll learn how to do it.

ThisPersonDoesNotExist, A Website That Uses AI To Make Fake Human Faces the website has the capabilities of conjuring up an image using the GAN algorithm. The GAN works by splitting the ta...

Fix bundler error "can't find gem bundler (>= 0.a) with executable bundle"

This error message seems to be related to network or Bundler issue, but it isn't - newer version of Bundler requires new version of RubyGems, which is not updated by default. Here, you'll see how to fix this issue.

Fix libv8 / therubyracer installing error

Sometimes, something unexpected grabs our attention - libv8 or therubyracer extensions installation error - here's how to get rid of them!

How to add images (i.e. logo) to email messages while using Pony gem.

Pony gem allows to easily send good looking and customizable emails, but it doesn't provide a way to include image in a way that it will be displayed in gma...

Prettier raw SQL in ruby

Use this syntax to format raw SQL nicely in ruby code. In some editors it also enables SQL syntax highlighting.

How to inspect an element that disappears on click (in chrome)

In chrome developer tools go to "Sources" find "Event Listener Breakpoints" and select "Mouse -> mousedown". Now each time the event is triggered, chrome wil...

Brakeman - An awesome gem that scans your app against vulnerabilities.

To use Brakeman, the only thing is to install the gem: ``` $ gem install brakeman ``` and then run the single command in Rails application's root dir...

Set the same password for all users in one query

Reset devise passwords quickly, even for thousands of users.

How to show macOS notification from Bash?

Sometimes some task takes a long time and you want to know when it finishes. The system can show you desktop notification with predefined (or added as variable) message.

NazwaPL SSL certificate chain

Here you can find SSL certificates needed to create SSL chain if you use certificate from NazwaPL.