Skip to content

Instantly share code, notes, and snippets.

View gitjonez's full-sized avatar

mahled gitjonez

  • Software Engineer at Joyent
  • GMT -8
View GitHub Profile
@gitjonez
gitjonez / README.md
Last active December 22, 2023 06:53
Function to set AWS_ temporary token variables with MFA code

awsmfa

A [ba|z]sh function to fetch temporary access credentials for awscli

Inspired by this 'ogavrisevs' gist

Requires

  • awscli (and configured config, credentials files)
  • Working AWS account MFA and the device ARN
  • awk
@gitjonez
gitjonez / macos-zshrc-readme.md
Last active November 24, 2022 19:24
ssh-agent on macos ~/.zshrc

What to put in your ~/.zshrc

Brainless ssh-agent code for ZSH (or BASH) on macos

Quickstart

Probably near the top, after the point where the macos ssh-agent -l is running via launchd, but could be anywhere:

~/.zshrc

if ! ssh-add -l > /dev/null; then
@gitjonez
gitjonez / minikube-docker-bind-mount.md
Last active August 7, 2023 17:25
Workaround for minikube docker-env bind mount
@gitjonez
gitjonez / keybase.md
Created February 9, 2017 23:40
keybase proof

Keybase proof

I hereby claim:

  • I am gitjonez on github.
  • I am dmahle (https://keybase.io/dmahle) on keybase.
  • I have a public key ASAi0b8Bbsh6B2dITzxMQpE9ndIJJNa2jioP22yGcEi40Qo

To claim this, I am signing this object: