A (more) complete cheatsheet for Arel, including NamedFunction functions, raw SQL and window functions.
posts = Arel::Table.new(:posts)
posts = Post.arel_table # ActiveRecord| # As root user | |
| # Update the OS | |
| sudo apt-get update | |
| sudo apt-get upgrade | |
| sudo apt-get dist-upgrade | |
| # Setup Hostname & TimeZone | |
| echo "{{HOSTNAME}}" > /etc/hostname | |
| hostname -F /etc/hostname | |
| dpkg-reconfigure tzdata |