Skip to content

Instantly share code, notes, and snippets.

View blindman2k's full-sized avatar

Aron Steg blindman2k

  • Launch Systems Pty Ltd
  • Melbourne, Australia
View GitHub Profile
@blindman2k
blindman2k / AWSDynamoDB.class.nut
Last active August 29, 2016 01:36
AWSRequestV4 and AWSDynamoDB
/**
* This class can be used to interact with a Amazon DynamoDB table
*
* @author Aron Steg <[email protected]>
*
* @version 0.0.1
*/
class AWSDynamoDB {
static version = [0, 0, 2];
@blindman2k
blindman2k / timer.class.nut
Created November 22, 2016 11:34
Squirrel timer class with all the bells and whistles
// =============================================================================
class Timer {
self = null;
cancelled = false;
paused = false;
running = false;
callback = null;
interval = 0;
params = null;
@blindman2k
blindman2k / download_all_lambda_functions.sh
Created April 1, 2020 11:14
Download all AWS Lambda functions in the account
# Serially download all aws-lambda functions
# Assumes you have ran `aws configure` or have the AWS_DEFAULT_PROFILE variable set
# Works with "aws-cli/1.16.72 Python/3.6.7 Linux/4.15.0-42-generic botocore/1.12.62"
mkdir -p lambda_functions
for fn in $(aws lambda list-functions --output text --query "Functions[*].FunctionName" | xargs);
do
echo "Downloading function $fn ..."
aws lambda get-function --function-name $fn --output text --query 'Code.Location' | xargs wget -q --show-progress -O ./lambda_functions/$fn.zip
done