Skip to content

Instantly share code, notes, and snippets.

@pwen
pwen / terraform_cli.3GXm2SSH
Created September 17, 2020 01:34
TF plan // test env // gcp cloud. **2020-09-16 19:34:54 MDT**
Refreshing Terraform state in-memory prior to plan...
The refreshed state will be used to calculate this plan, but will not be
persisted to local or remote state storage.
data.google_container_registry_image.ci_gate: Refreshing state... [id=gcr.io/chronosphere-test/ci-gate:4a418bfa]
data.google_iam_policy.noauth: Refreshing state... [id=3450855414]
google_container_registry.registry: Refreshing state... [id=artifacts.chronosphere-test.appspot.com]
google_project_service.service["monitoring"]: Refreshing state... [id=chronosphere-test/monitoring.googleapis.com]
google_project_service.service["containerregistry"]: Refreshing state... [id=chronosphere-test/containerregistry.googleapis.com]
google_service_account.ci_gate: Refreshing state... [id=projects/chronosphere-test/serviceAccounts/[email protected]]
#!/bin/bash
echo 'brew uninstall exiting openssl versions'
brew uninstall --ignore-dependencies openssl
brew uninstall --ignore-dependencies openssl
echo 'brew install openssl 1.0.2t'
brew install https://github.com/tebelorg/Tump/releases/download/v1.0.0/openssl.rb
@pwen
pwen / jq.sh
Last active March 10, 2020 16:13
# ref env var
cat sample.json | jq --arg city "$city" '{"first_name":.first_name, "last_name":.last_name, "location":$city}'
cat sample.json | jq --arg city "$city" '{"first_name":.first_name, "last_name":.last_name, "location":env.city}'
if [ ! -f .env ]
then
export $(cat .env | xargs)
fi
#######
if [ -f .env ]
then
export $(cat .env | sed 's/#.*//g' | xargs)