Skip to content

Instantly share code, notes, and snippets.

View mavwolverine's full-sized avatar

Viraj Kanwade mavwolverine

View GitHub Profile
@mavwolverine
mavwolverine / aws_mfa_creds.sh
Last active August 12, 2020 17:54
AWS CLI with MFA
#!/bin/bash
# source ./aws_mfa_creds.sh <MFA KEY> <ORIG AWS PROFILE NAME - optional, default>
# https://aws.amazon.com/premiumsupport/knowledge-center/authenticate-mfa-cli/
# Works on MacOS. Might need changes to date command params for linux
if [ -n "$AWS_SESSION_TOKEN_EXPIRATION" ]
then
if [ $(date -jf "%Y-%m-%dT%H:%M:%SZ" "$AWS_SESSION_TOKEN_EXPIRATION" +"%s") -gt $(date +"%s") ]
showthread.php/1507523-Bhagya-Dile-Tu-Mala-10th-October-2022-Video-Watch-Online?highlight=bhagya+dile+mala,Bhagya Dile Tu Mala 10th October 2022 Video Watch Online
showthread.php/1507162-Bhagya-Dile-Tu-Mala-7th-October-2022-Video-Watch-Online?highlight=bhagya+dile+mala,Bhagya Dile Tu Mala 7th October 2022 Video Watch Online
showthread.php/1506991-Bhagya-Dile-Tu-Mala-6th-October-2022-Video-Watch-Online?highlight=bhagya+dile+mala,Bhagya Dile Tu Mala 6th October 2022 Video Watch Online
showthread.php/1506806-Bhagya-Dile-Tu-Mala-5th-October-2022-Video-Watch-Online?highlight=bhagya+dile+mala,Bhagya Dile Tu Mala 5th October 2022 Video Watch Online
showthread.php/1506614-Bhagya-Dile-Tu-Mala-4th-October-2022-Video-Watch-Online?highlight=bhagya+dile+mala,Bhagya Dile Tu Mala 4th October 2022 Video Watch Online
showthread.php/1506428-Bhagya-Dile-Tu-Mala-3rd-October-2022-Video-Watch-Online?highlight=bhagya+dile+mala,Bhagya Dile Tu Mala 3rd October 2022 Video Watch Online
showthread.php/1506206-Bhagya-Dile-Tu-Mala-1st-Oct
@mavwolverine
mavwolverine / aws-key-pair-private.sh
Created July 19, 2024 04:23
get private key from AWS key pair
KEY_PAIR_NAME="XYZ"; aws ssm get-parameter --name /ec2/keypair/$(aws ec2 describe-key-pairs --filters "Name=key-name,Values=$KEY_PAIR_NAME" --query "KeyPairs[*].KeyPairId" --output text) --with-decryption --query "Parameter.Value" --output text