Skip to content

Instantly share code, notes, and snippets.

View parkeyparker's full-sized avatar

Aaron Parker parkeyparker

View GitHub Profile
@parkeyparker
parkeyparker / notes.md
Created January 27, 2022 12:33
Awsume time remaining + oh-my-zsh prompt segment

Displaying Current Role & Time Remaining in oh-my-zsh Prompt Segment

If you are using awsume for AWS role switching then it's handy to be able to see how long you have left before the role expires.

Get Time Remaining

Put the following in your .zshrc so it can be available at any point:

alias timeremaining='_timeremaining'
@parkeyparker
parkeyparker / template.yaml
Created December 1, 2021 09:08
HttpApi Authoriser CloudFormation
ApiGateway:
Type: AWS::Serverless::HttpApi
Properties:
StageName: '$default'
Description: 'API'
Auth:
Authorizers:
LambdaAuthorizer:
AuthorizerPayloadFormatVersion: "1.0"
FunctionArn:

Keybase proof

I hereby claim:

  • I am parkeyparker on github.
  • I am sourcecube (https://keybase.io/sourcecube) on keybase.
  • I have a public key ASAZSnudlwqJWQETl-TfFB3ZdHqNanMaFDqrN7MuKoc-jwo

To claim this, I am signing this object: