Skip to content

Instantly share code, notes, and snippets.

@tlikits
tlikits / dev.json
Last active May 29, 2025 13:14
thunder-tools
{"label":"dev","message":"v0.1.11","schemaVersion":1,"color":"brightgreen","namedLogo":"github"}
{"schemaVersion":1,"label":"live","message":"v0.1.8","color":"green","namedLogo":"github"}
{"schemaVersion":1,"label":"staging","message":"v0.1.8","color":"green","namedLogo":"github"}
{"label":"dev","message":"v0.1.9","schemaVersion":1,"color":"green","namedLogo":"github"}
@tlikits
tlikits / ramdisk.sh
Created August 5, 2020 14:30 — forked from rxin/ramdisk.sh
ramdisk create/delete on Mac OS X.
#!/bin/bash
# From http://tech.serbinn.net/2010/shell-script-to-create-ramdisk-on-mac-os-x/
#
ARGS=2
E_BADARGS=99
if [ $# -ne $ARGS ] # correct number of arguments to the script;
then

How to setup AWS lambda function to talk to the internet and VPC

I'm going to walk you through the steps for setting up a AWS Lambda to talk to the internet and a VPC. Let's dive in.

So it might be really unintuitive at first but lambda functions have three states.

  1. No VPC, where it can talk openly to the web, but can't talk to any of your AWS services.
  2. VPC, the default setting where the lambda function can talk to your AWS services but can't talk to the web.
  3. VPC with NAT, The best of both worlds, AWS services and web.