bundle exec rake active_record_doctor:unindexed_foreign_keys
notifications job_idbundle exec rake active_record_doctor:extraneous_indexes
The following indexes are extraneous and can be removed:| Redis.current = Redis.new(:host => ENV["REDIS_HOST"], :port => ENV["REDIS_PORT"]) |
bundle exec rake active_record_doctor:unindexed_foreign_keys
notifications job_idbundle exec rake active_record_doctor:extraneous_indexes
The following indexes are extraneous and can be removed:A curated list of AWS resources to prepare for the AWS Certifications
A curated list of awesome AWS resources you need to prepare for the all 5 AWS Certifications. This gist will include: open source repos, blogs & blogposts, ebooks, PDF, whitepapers, video courses, free lecture, slides, sample test and many other resources.
For more about AWS and AWS Certifications and updates to this Gist you should follow me @leonardofed
| gem install rails --prerelease && rails new *** -d postgresql --skip-action-mailbox --skip-action-text --skip-action-cable --skip-sprockets --skip-spring --skip-test --skip-bundle |
| # Macro::Queue(Api::V1::Clients::Bookings::Operation::CreateChat, args: [:booking]) | |
| module Macro | |
| def self.Queue(constant, args:) | |
| task = lambda { |(ctx, flow_options), **| | |
| StepWorker.perform_async(constant, ctx.slice(*args)) | |
| [Trailblazer::Activity::Left, [ctx, flow_options]] | |
| } |
| # Signal catching | |
| def shut_down | |
| puts "\nShutting down gracefully..." | |
| sleep 1 | |
| end | |
| puts "I have PID #{Process.pid}" | |
| # Trap ^C | |
| Signal.trap("INT") { |
| export default function useDevices() { | |
| const [deviceInfo, setDeviceInfo] = useState({ | |
| audioInputDevices: [], | |
| videoInputDevices: [], | |
| audioOutputDevices: [], | |
| hasAudioInputDevices: false, | |
| hasVideoInputDevices: false, | |
| }); | |
| useEffect(() => { |