Skip to content

Instantly share code, notes, and snippets.

View misterwell's full-sized avatar

Mike Maxwell misterwell

View GitHub Profile
@misterwell
misterwell / get-aws-creds.sh
Created February 13, 2020 16:12 — forked from Yloganathan/get-aws-creds.sh
Extended https://github.com/sweharris/aws-cli-mfa/blob/master/get-aws-creds and pushed the token, access key and Id to credentials
#!/bin/bash
# This uses MFA devices to get temporary (eg 12 hour) credentials. Requires
# a TTY for user input.
#
# GPL 2 or higher
if [ ! -t 0 ]
then
echo Must be on a tty >&2
@interface NSObject (Debounce)
- (void)debounce:(SEL)action delay:(NSTimeInterval)delay;
- (void)debounce:(SEL)action object:(id)obj delay:(NSTimeInterval)delay;
@end