Skip to content

Instantly share code, notes, and snippets.

@codeslikejaggars
codeslikejaggars / aws_sso_creds.sh
Last active December 20, 2022 00:29
Export AWS SSO credentials to the environment
# Login to AWS via SSO and print a script to export temporary AWS credentials to the environment.
# Usage:
# eval $(aws_sso_creds <AWS profile>)
#
# Requires:
# - aws-cli
# - jq
function aws_sso_creds () {
export PAGER=''
profile=$1

Keybase proof

I hereby claim:

To claim this, I am signing this object:

@codeslikejaggars
codeslikejaggars / wol.sh
Last active January 9, 2019 19:00
Send Wake on LAN packet on MacOS
#!/usr/bin/env bash
# usage:
# brew install socat
# source wol.sh
# wakeonlan <mac address of device>
# requirements:
# socat, install with `brew install socat`
# credit:
# https://stackoverflow.com/questions/31588035/bash-one-line-command-to-send-wake-on-lan-magic-packet-without-specific-tool#31588036