Skip to content

Instantly share code, notes, and snippets.

View chris-feist's full-sized avatar

Chris Feist chris-feist

View GitHub Profile
@jasonmimick
jasonmimick / aws-access-lister.sh
Created April 21, 2021 12:57
Add all AWS IP ranges to a MongoDB Atlas Org api key access list
#!/usr/bin/env bash
#
# aws-access-lister.sh
#
# This utility script can be used to maintain the Access List for
# a MongoDB Atlas Programatic API Key. For example, when running on AWS lambda
# the IP-address of the host is not know beforehand and thus it's not possible to
# securly configure an api key. This script will dynamically fetch a valid set of
# IP ranges directly from AWS and then either create a new apikey or modify an existing key
@DavidWells
DavidWells / aws-lambda-redirect.js
Created June 28, 2018 20:48
How to do a 301 redirect from an AWS lambda function
exports.handler = (event, context, callback) => {
const response = {
statusCode: 301,
headers: {
Location: 'https://google.com',
}
};
return callback(null, response);
}
@hurricane-voronin
hurricane-voronin / README.md
Last active July 13, 2024 15:26
Naming Classes Without a 'Manager'
@rymawby
rymawby / stripe-credit-card-numbers.md
Last active June 14, 2024 04:34
Stripe test credit card numbers for use in development

#Test credit card numbers to use when developing with Stripe

4242424242424242 Visa

4012888888881881 Visa

4000056655665556 Visa (debit)