Skip to content

Instantly share code, notes, and snippets.

View reabiliti's full-sized avatar
🏠
Working at home

Aleksandr Dyuzhikov reabiliti

🏠
Working at home
  • skype: reabiliti
  • Krasnodar, Russia
View GitHub Profile
@reabiliti
reabiliti / sources.list
Created August 30, 2018 00:28
Ubuntu 18.04 Bionic default /etc/apt/sources.list
#deb cdrom:[Ubuntu 18.04 LTS _Bionic Beaver_ - Release amd64 (20180426)]/ bionic main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://us.archive.ubuntu.com/ubuntu/ bionic main restricted
# deb-src http://us.archive.ubuntu.com/ubuntu/ bionic main restricted
## Major bug fix updates produced after the final release of the
## distribution.
deb http://us.archive.ubuntu.com/ubuntu/ bionic-updates main restricted
@reabiliti
reabiliti / example_activejob.rb
Created August 17, 2018 13:56 — forked from ChuckJHardy/example_activejob.rb
Example ActiveJob with RSpec Tests
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