SSH into Root
$ ssh root@123.123.123.123
Change Root Password
class MyJob < ActiveJob::Base | |
queue_as :urgent | |
rescue_from(NoResultsError) do | |
retry_job wait: 5.minutes, queue: :default | |
end | |
def perform(*args) | |
MyService.call(*args) | |
end |
SSH into Root
$ ssh root@123.123.123.123
Change Root Password
------------ From Rake Task | |
namespace :app do | |
# Checks and ensures task is not run in production. | |
task :ensure_development_environment => :environment do | |
if Rails.env.production? | |
raise "\nI'm sorry, I can't do that.\n(You're asking me to drop your production database.)" | |
end | |
end |
Install the following requirements:
brew info zeromq
npm install zmq
npm install socket.io
gem install ffi-rzmq
Within the app directory run the following commands in different panes.
ruby worker.rb
'use strict'; | |
var express = require('express'), | |
app = express(), | |
http = require('http'), | |
server = http.createServer(app), | |
path = require('path'), | |
io = require('socket.io').listen(server), | |
fs = require('fs'), | |
zmq = require('zmq'), |
const localStorageMock = (() => { | |
let store: IDict = {}; | |
return { | |
getItem(key: any) { | |
return store[key] || null; | |
}, | |
setItem(key: any, value: any) { | |
store[key] = value.toString(); | |
}, |
### Keybase proof | |
I hereby claim: | |
* I am chuckjhardy on github. | |
* I am chuckjhardy (https://keybase.io/chuckjhardy) on keybase. | |
* I have a public key ASDN6G-JWLU8Pn-F7HdCOeMj2z0URHrG3PbkQYifsUV5wAo | |
To claim this, I am signing this object: |
Verifying my Blockstack ID is secured with the address 1L2WKTJbQV4da4RwRmaSRAx114K8M6Uzg5 https://explorer.blockstack.org/address/1L2WKTJbQV4da4RwRmaSRAx114K8M6Uzg5 |
# Queue / Workers | |
gem "sidekiq" | |
gem "sidekiq-statistic" | |
gem "sidekiq-failures" | |
gem "clockwork", git: "https://github.com/Rykian/clockwork.git" |