Skip to content

Instantly share code, notes, and snippets.

View olegbuevich's full-sized avatar

Aleh Buyevich olegbuevich

View GitHub Profile
@olegbuevich
olegbuevich / get-temporary-credentials.sh
Last active February 3, 2020 12:50
get temporary credentials for using aws resources with force mfa policy
#!/bin/bash
set -eu
# USAGE:
# ./get-temporary-credentials.sh TOKEN
# sample: ./get-temporary-credentials.sh 123456
# AWS named profile
AWS_PROFILE=personal
# The identification number of the MFA device that is associated with the IAM user who is making the GetSessionToken call
@olegbuevich
olegbuevich / audit.rules
Created February 13, 2021 23:43 — forked from Neo23x0/audit.rules
Linux Auditd Best Practice Configuration
# IMPORTANT!
# This gist has been transformed into a github repo
# You can find the most recent version there:
# https://github.com/Neo23x0/auditd
# ___ ___ __ __
# / | __ ______/ (_) /_____/ /
# / /| |/ / / / __ / / __/ __ /
# / ___ / /_/ / /_/ / / /_/ /_/ /
# /_/ |_\__,_/\__,_/_/\__/\__,_/