brew remove rbenv
rm -rf ~/.rbenv
Remove the following line from your .zshrc
require 'optparse' | |
def generate_links | |
# insert code to generate download links here | |
puts "Download links generated." | |
end | |
def download_packages(mandatory_only) | |
# insert code to download packages here | |
puts "Packages downloaded." |
require_relative 'lpx_links' | |
describe "lpx_links" do | |
describe "#generate_links" do | |
it "generates download links" do | |
expect { generate_links }.to output("Download links generated.\n").to_stdout | |
end | |
end | |
describe "#download_packages" do |
# 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 |
# 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 |
#!/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 |
# = 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>'+ |
# 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", ";"] |
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
name: CI | |
on: [push, pull_request] | |
jobs: | |
linters: | |
name: Linters | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code |