This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
RETRY_FREQUENCY=5 | |
MAX_TRIES=100 | |
PIDFILE=/var/www/app/current/tmp/pids/sidekiq.pid | |
# Helper function for printing logs with timestamp | |
echo_time() { | |
date +"[%H:%M:%S] [Sidekiq-smart-restart] $*" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# EDlink Olive Grove District generation | |
require 'faker' | |
require 'digest' | |
# To always get the same names | |
Faker::Config.random = Random.new(42); | |
I18n::Debug.logger = Logger.new('/dev/null') | |
def fake_guid(key) | |
hash = Digest::SHA1.hexdigest(key) |