I hereby claim:
- I am sumdog on github.
- I am djsumdog (https://keybase.io/djsumdog) on keybase.
- I have a public key ASC2qIxUbImlbNqXtlKPQNjsbt6nVee1M9zT7OXQE-Oy-Qo
To claim this, I am signing this object:
| options = {} | |
| opts = OptionParser.new do |opts| | |
| opts.banner = 'Usage: create_env [-f] [-e (build|run)] [-d (mysql|postgres|mssql)] <environment name>' | |
| opts.on_tail("-h", "--help", "Show this message") do | |
| puts STDERR.opts | |
| exit | |
| end |
| # Check if password has been generated | |
| - local_action: stat path={{ pgp_password_file }} | |
| register: local_pgp_password_file | |
| # Generate password if it doesn't exist | |
| - local_action: command pwgen -s 25 1 #TODO: settings for length | |
| register: password |
| module Jekyll | |
| class << self | |
| def sanitized_path(base_directory, questionable_path) | |
| if base_directory.eql?(questionable_path) | |
| base_directory | |
| elsif questionable_path.start_with?(base_directory) | |
| questionable_path | |
| elsif File.exists?(questionable_path) | |
| File.expand_path(questionable_path) |
| require 'nokogiri' | |
| module Jekyll | |
| module StripFootnotesFilter | |
| def strip_footnotes(raw) | |
| doc = Nokogiri::HTML.fragment(raw.encode('UTF-8', :invalid => :replace, :undef => :replace, :replace => '')) | |
| for block in ['div', 'sup', 'a'] do | |
| doc.css(block).each do |ele| |
| # Records = [ 'something.example.com', 'some.other.example.com', 'example.net', 'somethingelse.example.net', 'example.org' ] | |
| def domain_records(records) | |
| records.map { |r| | |
| base = r.split('.')[1..2].join('.') | |
| sub_domain = .split('.')[-3].join('.') | |
| } | |
| end | |
| # Is there a functional way to get a result like.. | |
| # { 'example.com' => [ 'something', 'some.other' ], 'example.net' => ['somethingelse'], 'example.org' => [] } |
I hereby claim:
To claim this, I am signing this object: