Loosely ordered with the commands I use most towards the top. Sublime also offer full documentation.
Cmd+C | copy current line (if no selection) |
Cmd+X | cut current line (if no selection) |
Ctrl+⇧+K | delete line |
Cmd+↩ | insert line after |
Loosely ordered with the commands I use most towards the top. Sublime also offer full documentation.
Cmd+C | copy current line (if no selection) |
Cmd+X | cut current line (if no selection) |
Ctrl+⇧+K | delete line |
Cmd+↩ | insert line after |
This guide enables you to install (ruby-build) and use (rbenv) multiple versions of ruby, isolate project gems (gemsets and/or bundler), and automatically use appropriate combinations of rubies and gems.
# Ensure system is in ship-shape.
aptitude install git zsh libssl-dev zlib1g-dev libreadline-dev libyaml-dev
# Paginate a collection | |
# | |
# Usage: | |
# | |
# {% paginate contents.projects by 5 %} | |
# {% for project in paginate.collection %} | |
# {{ project.name }} | |
# {% endfor %} | |
# {% endpaginate %} | |
# |
# First the end result of what we want: | |
class Foo | |
before_hook :whoa | |
before_hook :amazing | |
def test | |
puts "This is kinda cool!" | |
end |
In the apps config/puma.rb
file:
Change to match your CPU core count
# Check using this on the server => grep -c processor /proc/cpuinfo
workers 4
# Min and Max threads per worker
threads 1, 6
app_dir = File.expand_path('../..', FILE)