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)
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)
| <div> | |
| <nav x-data="{ open: false }" @keydown.window.escape="open = false" class="bg-gray-800"> | |
| <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8"> | |
| <div class="flex items-center justify-between h-16"> | |
| <div class="flex items-center"> | |
| <div class="flex-shrink-0"> | |
| <h3 class="text-gray-300 text-lg ">MyApp</h3> | |
| </div> | |
| <div class="hidden md:block"> | |
| <div class="ml-10 flex items-baseline"> |
| name: CI | |
| on: [push, pull_request] | |
| jobs: | |
| linters: | |
| name: Linters | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code |
https://www.nerdfonts.com/font-downloads
The following solution thanks to @hackerzgz & @snacky101 will install all nerd fonts;
brew tap homebrew/cask-fonts
brew search '/font-.*-nerd-font/' | awk '{ print $1 }' | xargs -I{} brew install --cask {} || true| # Using the 'phonelib' gem as it's based on Googles libphonenumber library. | |
| # https://github.com/daddyz/phonelib | |
| require 'phonelib' | |
| require 'active_support' | |
| # Set South Africa as the default country | |
| Phonelib.default_country = "ZA" | |
| Phonelib.extension_separate_symbols = ["x", ";"] |
| # = SimpleSpy | |
| # Dev util to show the filename (path), line number, object type | |
| # and value in the Rails console. | |
| # === Examples: | |
| # spy val = Object.new | |
| # | |
| # "---------------------------------------------------------------------- | |
| # properties.rb:13:in `<main>'+ |
| #!/usr/bin/env ruby | |
| require "fileutils" | |
| # path to your application root. | |
| APP_ROOT = File.expand_path("..", __dir__) | |
| def system!(*args) | |
| system(*args) || abort("\n== Command #{args} failed ==") | |
| end |
| # The Rails ActiveSupport core extensions provide additional | |
| # functionality to any Rails or Ruby application. | |
| require "active_support" | |
| # ActiveSupport#blank? | |
| nil.blank? # => true | |
| false.blank? # => true | |
| {}.blank? # => true | |
| [].blank? # => true | |
| "".blank? # => true |
| # In config/route.rb | |
| Rails.application.routes.draw do | |
| # other routes... | |
| # Allows us to use link_to for session destroy | |
| devise_scope :user do | |
| get "/users/sign_out", as: "sign_out", to: "devise/sessions#destroy" | |
| end | |
| end |