Define routes for external links in rails
Public

You can define external urls in routes.rb instead of creating helpers manually

https://guides.rubyonrails.org/routing.html#direct-routes

Close a frozen ssh session
Public

Properly close a frozen ssh session

Set the same password for all users in one query
Public

Reset devise passwords quickly, even for thousands of users.

Disable `Missing frozen string literal comment.` Rubocop warning
Public

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
Public

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

https://mockuphone.com/

How to get image details like creation timestamp using MiniMagic
Public

How to get image details like creation date and tile using MiniMagic

How to drop a production database in Rails 5
Public

I encountered a problem when dropping a production database. Here's the solution

How to show macOS notification from Bash?
Public

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.

Style PDFs using metric units in CSS with wicked pdf
Public

Configure wicked_pdf with: ```ruby disable_smart_shrinking: true ``` Then you can accurately use `mm` and `cm` as units in your CSS

Line icons based on Font Awesome
Public

Replace Font Awesome with modern line icons with a single line of code.

https://icons8.com/line-awesome

NazwaPL SSL certificate chain
Public

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

Multiline method memoization in ruby
Public

Method memoization in ruby is easy when the method is one line long: ``` def something @something ||= # your calculations end ``` But when we hav...

Global payment/billing provider compatible with EU laws
Public

Recommended by https://pawelurbanek.com/profitable-slack-bot-rails

https://paddle.com/

Hello World in Slack
Public

See the link for setup instructions. Then in ruby: ```ruby conn = Faraday.new(your_slack_webhook_url) conn.post do |req| req.headers['Content-Type'] ...

https://api.slack.com/tutorials/slack-apps-hello-world

Launching subprocessess in Ruby
Public

This graph shows several ways to launch subprocess in Ruby.

Transparent textures - a subtle backgrounds repository and generator
Public

Standing on the shoulders of Subtle Patterns. Built and maintained by mikehearn.

https://www.transparenttextures.com/

Free icon rainbow - big source of free icons
Public

Free icon rainbow - big source of free icons. Many sizes and 3 formats: png, jpg, svg

http://free-icon-rainbow.com/

Make RSpec shared examples easier to understand with this one trick!
Public

This guy makes his shared examples easier to understand. Overpaid consultants hate him!

When to use let, let! and before in RSpec
Public

When to use let, let! and before in RSpec.

Using comment notes in Rails
Public

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

Debugging Turbolinks 5
Public

```javascript document.addEventListener('turbolinks:click', () => console.log('turbolinks:click')) document.addEventListener('turbolinks:before-visit', () ...