Debugging Turbolinks 5
Public

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

Autocomplete SSH hosts in Bash
Public

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

Local HTTP server using ruby
Public

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

Flush dns in macOS
Public

``` sudo killall -HUP mDNSResponder ```

De Morgan's laws in Ruby
Public

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
Public

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 'postmaster.pid' already exists
Public

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

Ruby logger log levels
Public

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
Public

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

Labelary - an online ZPL editor
Public

Labelary is an online ZPL (Zebra Programming Language) editor and viewer

http://labelary.com/viewer.html

Rubular - a Ruby regular expressions editor
Public

Rubular is an online tool to check regular expressions written in Ruby.

http://rubular.com/