Command Line
pry -r ./config/app_init_file.rb- load your app into a pry session (look at the file loaded by config.ru)pry -r ./config/environment.rb- load your rails into a pry session
Debugger
| import Combine | |
| import Foundation | |
| extension Publisher { | |
| public func retry<S: Scheduler>( | |
| _ max: Int = Int.max, | |
| delay: Publishers.RetryDelay<Self, S>.TimingFunction, | |
| scheduler: S | |
| ) -> Publishers.RetryDelay<Self, S> { |
| From 42fdc91e497cc1fc7380b1bfd14216802ed4c63c Mon Sep 17 00:00:00 2001 | |
| From: Koen Punt <[email protected]> | |
| Date: Tue, 16 Mar 2021 11:10:48 +0100 | |
| Subject: [PATCH] patch | |
| --- | |
| common.gypi | 2 +- | |
| deps/v8/BUILD.gn | 1 + | |
| deps/v8/include/v8-platform.h | 8 ++- | |
| deps/v8/src/base/page-allocator.cc | 14 ++++ |
| // Original video tutorial | |
| // https://www.youtube.com/watch?v=6iSuc2vxT8g | |
| // 0. Install a Homebrew | |
| // https://brew.sh/ | |
| // 1. Install Ruby to your Mac | |
| // brew install ruby | |
| // 2. Install aria2 tool |
| const format = require('string-format'); | |
| // These are the numbers to forward the call to | |
| const destinations = ['+1', '+1']; | |
| // These are the numbers that will be forwarded to the cell phones | |
| const allowedCallers = [ | |
| '+1', // | |
| ]; |
| #! /bin/bash | |
| sudo apt-get update | |
| sudo apt-get install -y software-properties-common debconf-utils | |
| sudo add-apt-repository -y ppa:webupd8team/java | |
| sudo apt-get update | |
| sudo echo "oracle-java8-installer shared/accepted-oracle-license-v1-1 select true" | sudo debconf-set-selections | |
| sudo apt-get install -y oracle-java8-installer |
| # in spec_helper.rb | |
| RSpec.configure do |config| | |
| records = [] | |
| config.before :suite do | |
| Cequel::Record.descendants.each do |klass| | |
| klass.after_create {|r| records << r } | |
| end | |
| end |
| # features/support/capybara.rb | |
| Capybara.app_host = 'http://staging.my-app.com' |
Command Line
pry -r ./config/app_init_file.rb - load your app into a pry session (look at the file loaded by config.ru)pry -r ./config/environment.rb - load your rails into a pry sessionDebugger
| #!/bin/bash | |
| # -------------------------------------------------------------------------------------------- | |
| # Installs Ruby using rbenv/ruby-build on the Raspberry Pi (Raspbian) | |
| # | |
| # Run from the web: | |
| # bash <(curl -s https://gist.githubusercontent.com/blacktm/8302741/raw/install_ruby_rpi.sh) | |
| # -------------------------------------------------------------------------------------------- | |
| # Set the Ruby version you want to install |
If the namespace is not used then the commands will perform on top of the default database.
bundle exec rake db:create
bundle exec rake db:migrate
By using the namespace we are going to use all the configuration for our alternate DB.
bundle exec rake store:db:create
bundle exec rake store:db:migrate