The Github doesn't provide country code for Brazil (+55). To add this option, just run the code below in your console. The option Brazil +55
will be the first on the list, already selected:
🇧🇷 [pt-BR]
#!/bin/bash | |
# PATH | |
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin | |
# Store the base dir | |
BASEDIR=$( cd $(dirname $0); pwd) | |
# Get all dependencies |
The Github doesn't provide country code for Brazil (+55). To add this option, just run the code below in your console. The option Brazil +55
will be the first on the list, already selected:
🇧🇷 [pt-BR]
raise 'Wrong Ruby version!' unless RUBY_VERSION >= '2.6.0' | |
module Strings | |
Trim = -> str { String(str).strip } | |
Replace = -> (sub, new_sub, str) { String(str).gsub(sub, new_sub) } | |
LowerCase = -> str { String(str).downcase } | |
end | |
# -- Alternative syntax -- | |
Slugify = # Slugify = |
# This is a skeleton for testing models including examples of validations, callbacks, | |
# scopes, instance & class methods, associations, and more. | |
# Pick and choose what you want, as all models don't NEED to be tested at this depth. | |
# | |
# I'm always eager to hear new tips & suggestions as I'm still new to testing, | |
# so if you have any, please share! | |
# | |
# @kyletcarlson | |
# | |
# This skeleton also assumes you're using the following gems: |
RSpec.shared_context "bullet" do | |
before(:each) do | |
Bullet.enable = true | |
Bullet.bullet_logger = true | |
Bullet.raise = true # raise an error if N+1 query occurs | |
Bullet.start_request | |
end | |
after(:each) do | |
Bullet.perform_out_of_channel_notifications if Bullet.notification? |
require 'bundler/inline' | |
gemfile(true) do | |
source 'https://rubygems.org' | |
gem 'pry', '~> 0.13.1' | |
gem 'rails', '~> 6.0', '>= 6.0.3.4' | |
gem 'sqlite3', '~> 1.4', '>= 1.4.2' | |
gem 'u-authorization', '~> 2.3' | |
end |
ps -ef | grep sidekiq | grep busy | grep -v grep | awk '{print $2}' > tmp/sidekiq.pid
cat tmp/sidekiq.pid
bundle exec sidekiqctl stop tmp/sidekiq.pid
You can add all conventional comments Labels to Github as a saved replies by following the following steps:
- Go to https://github.com/settings/replies
- Open Developer Tools
- Copy/Paste above code in JavaScript console
- Press enter