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
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 |
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
class CustomHash | |
def hash_tree | |
{ | |
"readers" => { | |
"Ivan Testenko" => { | |
"pages" => 328, | |
"books" => 1, | |
"authors" => ["Leo Tolstoy"] | |
}, |
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
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 |
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 'gmail' | |
require 'pry' | |
require 'zip' | |
require 'csv' | |
require 'active_support/all' | |
desc "Make coffee" | |
task :check_homework do | |
counter = 1 | |
results = [] |