I hereby claim:
- I am kronn on github.
- I am kronn (https://keybase.io/kronn) on keybase.
- I have a public key ASAibO_1tMYCUH7PN-MxnSXnXqU8EnXmBCFc-48kHAvXmAo
To claim this, I am signing this object:
| #!/usr/bin/env ruby | |
| # frozen_string_literal: true | |
| # Detect the monitor setup | |
| # | |
| # rubocop:disable Metrics/LineLength,Lint/MissingCopEnableDirective | |
| command = ARGV[0] | |
| # subcommand = ARGV[1] | |
| # value-object with high-end regex string-parsing power |
| #!/usr/bin/env /home/mviehweger/.rvm/wrappers/ruby-2.4.2/ruby | |
| # frozen_string_literal: true | |
| # http://trac.luon.net/data/ruby-dbus/tutorial/basic_client.html | |
| # for ubuntu, there is d-feet | |
| begin | |
| require 'dbus' | |
| rescue LoadError => e | |
| require 'rbconfig' |
| PreCommit: | |
| UpdatedLicenseHeader: | |
| enabled: true | |
| description: 'Checking if license is present and updated' |
I hereby claim:
To claim this, I am signing this object:
| #!/usr/bin/env ruby | |
| # rubocop:disable Style/SpecialGlobalVars | |
| begin | |
| require 'ruby-progressbar' | |
| rescue LoadError | |
| system 'gem', 'install', 'ruby-progressbar' | |
| exec "#{$0} #{ARGV.join(' ')}" | |
| end |
| #!/usr/bin/env bash | |
| # An own database for every branch | |
| # | |
| # 1) put this script somewhere, make it executable (chmod +x) | |
| # 2) modify your database.yml: | |
| # development: | |
| # adapter: postgresql | |
| # database: "<%= `path/to/stored_script` %>" | |
| # 3) If you want a separate db for your branch, follow the instructions on STDERR on environment startup |
| #!/bin/bash | |
| ssh_host=$1 | |
| host_name=${2:-$ssh_host} | |
| puppet_version="2.7.1" | |
| if [ -z "$ssh_host" ]; then | |
| echo "please provide hostname for node to fetch facts from" | |
| exit | |
| fi |
| current_scheduler = scheduler(:availabilities) | |
| def current_scheduler.handle_exception(job, exception) | |
| Airbrake.do_the_right_thing(exception, other_params) | |
| puts "job #{job.job_id} caught exception '#{exception}' - the Airbrake has been triggered" | |
| end |
| ActiveRecord::Base.connection_pool.disconnect! | |
| ActiveRecord::Base.connection_handler.remove_connection(ActiveRecord::Base) | |
| Rails.application.config.database = new_database_config # not strictly necessary | |
| ActiveRecord::Base.configurations = new_database_config | |
| ActiveRecord::Base.establish_connection |
| #!/usr/bin/env ruby | |
| # | |
| # A quick script to dump an overview of all the open issues in all my github projects | |
| # | |
| require 'octokit' | |
| require 'awesome_print' | |
| require 'rainbow' |