Skip to content

Instantly share code, notes, and snippets.

View akirayamamoto's full-sized avatar

Akira Yamamoto akirayamamoto

View GitHub Profile
@res0nat0r
res0nat0r / mfa.md
Last active July 15, 2020 01:42
Enable MFA for s3 bucket
aws s3api put-bucket-versioning \
	--bucket bucket \
	--versioning-configuration '{"MFADelete":"Enabled","Status":"Enabled"}' \
	--mfa 'arn:aws:iam::aws_account_id:mfa/root-account-mfa-device passcode'
aws s3api get-bucket-versioning --bucket bucket
@dwettstein
dwettstein / media_shortcuts.ahk
Last active December 22, 2022 11:28
AutoHotkey Media Control Shortcuts
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
#!Left::Send {Media_Prev} ; Win + Alt + Left
#!Down::Send {Media_Play_Pause} ; Win + Alt + Down
#!Right::Send {Media_Next} ; Win + Alt + Right
#!Up::Send {Volume_Mute} ; Win + Alt + Up
#!PgUp::Send {Volume_Up} ; Win + Alt + PageUp