Skip to content

Instantly share code, notes, and snippets.

View mvaaltola's full-sized avatar

Mikael Vaaltola mvaaltola

  • Vaisala
  • Helsinki, Finland
  • 09:38 (UTC +03:00)
View GitHub Profile
@mvaaltola
mvaaltola / config.rasi
Last active June 7, 2022 08:12
rofi-config
configuration {
modi: "window,drun,ssh,combi";
font: "Cascadia Code PL 14";
/* location: 0;*/
/* yoffset: 0;*/
/* xoffset: 0;*/
/* fixed-num-lines: true;*/
/* show-icons: false;*/
terminal: "kitty";
/* ssh-client: "ssh";*/
@mvaaltola
mvaaltola / get-aws-mfa-vars.sh
Created December 16, 2021 09:04
Get AWS MFA session and store environment variables in /tmp/aws-mfa-token.
#!/usr/bin/env bash
set -e
if ! command -v aws &>/dev/null; then
echo "Command aws not found: install AWS CLI first!" >&2
exit 1
fi
if [ "$#" -ne 2 ]; then