Skip to content

Instantly share code, notes, and snippets.

View VoronoyAlexandr's full-sized avatar
👀

Alexandr Voronoy VoronoyAlexandr

👀
View GitHub Profile
sudo docker run --rm -t -i -v /srv/gitlab-runner/config:/etc/gitlab-runner gitlab/gitlab-runner register
--non-interactive
--executor "docker"
--docker-image alpine:latest
--url "http://it"
--registration-token "token"
--description "docker-runner"
--tag-list "docker,aws"
--run-untagged="true"
--docker-privileged
class CustomHash
def hash_tree
{
"readers" => {
"Ivan Testenko" => {
"pages" => 328,
"books" => 1,
"authors" => ["Leo Tolstoy"]
},
def email_notification
<<-TEXT
Hello, #{email_notification_params[:reader_name]}
You should return a book #{email_notification_params[:book_title]} authored by "#{email_notification_params[:book_author]}" in #{email_notification_params[:time_left]} hours.
Otherwise you will be charged $#{email_notification_params[:penalty_per_hour]} per hour.
TEXT
require 'gmail'
require 'pry'
require 'zip'
require 'csv'
require 'active_support/all'
desc "Make coffee"
task :check_homework do
counter = 1
results = []