This file contains hidden or 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
| #!/usr/bin/env ruby | |
| require 'openssl' | |
| require 'securerandom' | |
| require 'byebug' | |
| # http://docs.ruby-lang.org/en/2.1.0/OpenSSL/Cipher.html#class-OpenSSL::Cipher-label-Authenticated+Encryption+and+Associated+Data+-28AEAD-29 | |
| # http://security.stackexchange.com/questions/17044/when-using-aes-and-cbc-is-it-necessary-to-keep-the-iv-secret | |
| ENV['ENCRYPTED_ATTRIBUTES_KEY']=SecureRandom.hex(40) #This isn't a real key used anywhere but it's representative | |
| ENV['ENCRYPTED_ATTRIBUTES_ALGORITHM']='aes-256-gcm' |
This file contains hidden or 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
| #!/usr/bin/env ruby | |
| require 'googleauth' | |
| require 'httparty' | |
| require 'active_support/all' | |
| class GDirectory | |
| # https://github.com/jnunemaker/httparty | |
| include HTTParty |
This file contains hidden or 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
| #!/usr/bin/env ruby | |
| require "bundler" | |
| Bundler.setup | |
| require "httparty" | |
| require "byebug" | |
| unless ENV["BUILDKITE_KEY"] | |
| puts "you need to set your BUILDKITE_KEY" |
This file contains hidden or 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
| #!/usr/bin/env ruby | |
| require "bundler" | |
| Bundler.setup | |
| require "httparty" | |
| unless ENV["BUILDKITE_KEY"] | |
| puts "you need to set your BUILDKITE_KEY" | |
| exit 1 |
OlderNewer