This file contains 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
# To be executed in the Rails console | |
scheduled_set = Sidekiq::ScheduledSet.new | |
scheduled_set.each do |job| | |
Sidekiq::Client.push(job.item) | |
puts "Moved job from ScheduledSet to #{job.queue}: #{job.args.first['job_class']} with args #{job.args.first['arguments']}" | |
job.delete | |
end |
This file contains 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
source 'https://rubygems.org' | |
gem 'icalendar' | |
gem 'activesupport' | |
# gem 'pry' |
This file contains 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
require 'csv' | |
csv_path = Rails.root.join("#{Rails.application.class.parent.name.underscore.dasherize}_licenses.csv") | |
CSV.open(csv_path, 'wb') do |csv| | |
csv << ['Gem', 'Licenses'] | |
Gem.loaded_specs.each do |gem_name, spec| | |
csv << [gem_name, spec.licenses.join(', ')] | |
end |
This file contains 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
# original source: https://gist.github.com/tkarpinski/2369729 | |
require 'octokit' | |
require 'csv' | |
require 'date' | |
# Github access token to access the project | |
# Create one at https://github.com/settings/tokens | |
ACCESS_TOKEN="GITHUB_ACCESS_TOKEN" |