##YML
sidekiq.yml
---
:verbose: false
:concurrency: 10
:pidfile: tmp/pids/sidekiq.pid
:queues:
- [critical, 2]
- default
class Predictor | |
attr_accessor :ticks, :enemies, :bot | |
def initialize bot | |
@ticks = 0 | |
@enemies = {} | |
@bot = bot | |
end | |
def predict_coordinates &b |
name: | |
RFIDTagID | |
value: | |
params[:rfid] | |
action: | |
REQUEST | |
cuando: | |
en ProcessController#rfid_input | |
name: |
##YML
sidekiq.yml
---
:verbose: false
:concurrency: 10
:pidfile: tmp/pids/sidekiq.pid
:queues:
- [critical, 2]
- default
gem 'sidekiq-cron'
config/initializers/sidekiq.rb
Sidekiq.configure_server do |config|
config.redis = { url: 'redis://localhost:6379/0' }
schedule_file = "config/schedule.yml"
if File.exists?(schedule_file)
Sidekiq::Cron::Job.load_from_hash YAML.load_file(schedule_file)
end
require 'rails_helper' | |
include ActiveSupport::Testing::TimeHelpers | |
describe TimeTravel do | |
it 'allows person to answer after 1 day' do | |
expect(person_can_answer).to be_falsey | |
# About to go to the future | |
travel(1.day) do | |
# While in the future | |
expect(person_can_answer).to be_truthy |
upstream project { | |
server 22.22.22.2:3000; | |
server 22.22.22.3:3000; | |
server 22.22.22.5:3000; | |
} | |
server { | |
listen 80; | |
location / { |
http://www.google.com/accounts/DisplayUnlockCaptcha | |
https://www.google.com/settings/security/lesssecureapps |
0x1D66E3e60aA606c6912abC93674fEdfB41CbfA42 |