Line icons based on Font Awesome

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

NazwaPL SSL certificate chain

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

Multiline method memoization in ruby

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

Recommended by

Hello World in Slack

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

Launching subprocessess in Ruby

This graph shows several ways to launch subprocess in Ruby.

Free icon rainbow - big source of free icons

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

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

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

When to use let, let! and before in RSpec

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

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

Debugging Turbolinks 5

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

Autocomplete SSH hosts in Bash

``` # ~/.bash_profile _complete_ssh_hosts () { COMPREPLY=() cur="${COMP_WORDS[COMP_CWORD]}" comp_ssh_hosts=`cat ~/.ssh/known_ho...

Local HTTP server using ruby

``` ruby -run -ehttpd . -p8000 ```

Flush dns in macOS

``` sudo killall -HUP mDNSResponder ```

De Morgan's laws in Ruby

The negation of a disjunction is the conjunction of the negations and The negation of a conjunction is the disjunction of the negations.

How to simplify nested ifs

If you have `if`s nested in this way: ``` if a if b 1 else 2 end else 3 end ``` You can flatten and simplify them into this: ...

How to run PostgreSQL if '' already exists

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

Ruby logger log levels

OK, it seems obvious but I always spend several minutes finding it. So I think it's a good idea to put it here.

How to include logo into devise messages

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