Category: How-to

  • Workaround for Homebrew: “terraform@0.12 has been disabled because it is not supported upstream!”

    I needed to install an older version of Terraform on my work Mac, but got this error: Error: terraform@0.12 has been disabled because it is not supported upstream! I tried to edit terraform@0.12 and tried to install without success. This is what worked: HOMEBREW_NO_INSTALL_FROM_API=1 brew install terraform@0.12 ?  Source brew install terraform@0.12 Error: terraform@0.12 has been…

  • GCloud: List roles a service account is a member of

    ,

    GCloud command to list roles a service account is a member of: SERVICE_ACCOUNT=my-service-account@my-gcp-project.iam.gserviceaccount.com GCP_PROJECT=my-gcp-project gcloud projects get-iam-policy $GCP_PROJECT \ –flatten="bindings[].members" \ –format='table(bindings.role)' \ –filter="bindings.members:$SERVICE_ACCOUNT" Reference: https://jamiekt.wordpress.com/2019/06/13/use-gcloud-to-list-all-project-roles-that-a-service-account-is-a-member-of/

  • iTerm2: Add Keystroke to move between words

    ,

    On a Mac, I use iTerm2 as my default terminal due to the added features, such as auto-copy and the ability to split multiple terminals. One nuance was not having the ability to move between words (like in vim); however, I found the below how-to on Stack Overflow — where else? 🙂 Go to Preferences,…

  • How to add environment variables in Mac OS X

    ,

    Adding here for reference (tried this in Mac OS X Mojave): # To set an environment variable, enter the following command: launchctl setenv variable "value" # To find out if an environment variable is set, use the following command: launchctl getenv variable # To clear an environment variable, use the following command: launchctl unsetenv variable

  • How to update nodejs on OS X

    ,

    Adding here as reference. node -v npm cache clean -f npm install -g n n stable\ node -v

  • Gatling How-To: Installation and Execution on OS X

    This is here for my own reference, but may help others.  I’m a software craftsman on a Mac, and I use Homebrew whenever possible.  So, the info here relates to that. Prerequisite: Java must be installed (i.e. brew cask install java). Install Scala via Homebrew: brew install scala Optionally: Install Scala plugin in IntelliJ Download from https://gatling.io/download/…