Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
Happily Coding!

Gary A. Stafford garystafford

💭
Happily Coding!
View GitHub Profile
View gist:485b481553d5e7a5afa7c3c08ed36612
curl -X POST --data-binary @payload.yaml -H "Content-type: text/x-yaml" http://localhost:4200/some-url/1024
View get_s3_env
#!/usr/bin/env ruby
require 'aws-sdk'
# reference: https://www.promptworks.com/blog/handling-environment-secrets-in-docker-on-the-aws-container-service
# usage: `ruby get_env_from_s3.rb`
########## CHANGE THESE VARIABLES ##########
file_to_decrypt = '.env'
key_alias = 'demo-key'
View put_env_to_s3
#!/usr/bin/env ruby
require 'aws-sdk'
# reference: https://www.promptworks.com/blog/handling-environment-secrets-in-docker-on-the-aws-container-service
########## CHANGE THESE VARIABLES ##########
file_to_encrypt = '.env'
file_path = "../../../fav-color-private-stuff/#{file_to_encrypt}"
key_alias = 'demo-key'