- Create or find a gist that you own.
- Clone your gist (replace
<hash>with your gist's hash):# with ssh git clone git@gist.github.com:<hash>.git mygist # with https
git clone https://gist.github.com/.git mygist
<hash> with your gist's hash):
# with ssh
git clone git@gist.github.com:<hash>.git mygist
# with httpsgit clone https://gist.github.com/.git mygist
Last Updated: March 2023
IMPORTANT: Ignore the out-of-date steps below for getting Chromium keys.
Instead, read this up-to-date guide (Jan 2023) written by @LearningToPi.
P.S. Thank you to every contributor below who provided tips over the years on what should be a straightforward process: setting up Chromium for local development.
Long live the web!
| FROM rails:4.2.3 | |
| MAINTAINER Renato Filho <renatosousafilho@gmail.com> | |
| ENV HOME /home/app | |
| ENV RAILS_ENV development | |
| RUN useradd -m -s /bin/bash app | |
| RUN gem install -N bundler |
| -- Inspired by Linux alt-drag or Better Touch Tools move/resize functionality | |
| function get_window_under_mouse() | |
| -- Invoke `hs.application` because `hs.window.orderedWindows()` doesn't do it | |
| -- and breaks itself | |
| local _ = hs.application | |
| local my_pos = hs.geometry.new(hs.mouse.getAbsolutePosition()) | |
| local my_screen = hs.mouse.getCurrentScreen() |
| # install with yaourt | |
| yaourt -S firebird-superserver | |
| # create symlink for firebird isql due to a conflict with unixODBC isql | |
| # check with this command: | |
| whereis isql (ENTER) | |
| isql: /usr/bin/isql /opt/firebird/bin/isql /usr/share/man/man1/isql.1.gz | |
| # creating symlink: | |
| sudo ln -s /opt/firebird/bin/isql /usr/bin/isql-fb |
| require 'mina/git' | |
| require 'mina/nginx' | |
| set :application, 'your_app_name' | |
| set :domain, 'your_server' | |
| set :user, 'ubuntu' | |
| set :deploy_to, '/location/to/deploy' | |
| set :app_path, "#{deploy_to}/#{current_path}" | |
| set :repository, 'your_repo' | |
| set :branch, 'master' |
| #Insall Ajenti | |
| apt-get update | |
| wget http://repo.ajenti.org/debian/key -O- | apt-key add - | |
| echo "deb http://repo.ajenti.org/ng/debian main main ubuntu" >> /etc/apt/sources.list | |
| apt-get update | |
| apt-get install ajenti | |
| service ajenti restart | |
| # Uninstall Apache2 | |
| sudo apt-get autoremove && sudo apt-get remove apache2* |
Version numbers should be the ones you want. Here I do it with the last ones available at the moment of writing.
The simplest way to install elixir is using your package manager. Sadly, at the time of writing only Fedora shows
the intention to keep its packages up to date. There you can simply sudo dnf install erlang elixir and you are good to go.
Anyway, if you intend to work with several versions of erlang or elixir at the same time, or you are tied to
a specific version, you will need to compile it yourself. Then asdf is your best friend.
Note: This guide works with Ruby 2.6+ through Ruby 3.x, with modern Ruby 3.x features highlighted where applicable. Core metaprogramming concepts remain consistent across Ruby versions.
This document has been collaboratively updated and modernized through an interactive process with Claude Code, revised with examples, visual diagrams, and Ruby 3.x compatibility.
| # Call scopes directly from your URL params: | |
| # | |
| # @products = Product.filter(params.slice(:status, :location, :starts_with)) | |
| module Filterable | |
| extend ActiveSupport::Concern | |
| module ClassMethods | |
| # Call the class methods with names based on the keys in <tt>filtering_params</tt> | |
| # with their associated values. For example, "{ status: 'delayed' }" would call |