Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
CONTAINER_NAME=stepfunctions
STATE_MACHINE_DEFINITION=/path/to/yourstatemachine.json
STATE_MACHINE_NAME="Name of your process"
ENV_FILE=path/to/your-stepfunctions-local-credentials.txt
INPUT="{ \"myInput\": \"hello world\"}"
function get_value_from_json(){
VALUE="$(jq .$1 temporary.json)"
@dougogisi
dougogisi / README.md
Created December 17, 2019 15:45 — forked from crypticmind/README.md
Setup lambda + API Gateway using localstack

Aws Cognito: Custom Auth (Developer Authenticated Identities)

How to get OpenID Token & IdentityId from AWS Cognito?

  • example: using bash (aws cli sdk)
  • example: using php (aws php sdk v3.*)

note

  • you need to add example.com as custom auth provider in aws console (cognito/federated)
import hashlib as hasher
import datetime as date
# Define what a Snakecoin block is
class Block:
def __init__(self, index, timestamp, data, previous_hash):
self.index = index
self.timestamp = timestamp
self.data = data
self.previous_hash = previous_hash
# Default extension package
sudo apt-get install libxml2-dev libbz2-dev libmcrypt-dev libreadline-dev libxslt1-dev autoconf -y
# Default extension package (18.04)
sudo apt-get install libssl-dev
# +apxs2
sudo apt-get install apache2-dev -y
# +gd (14.04)
sudo apt-get install -y libfreetype6 libfreetype6-dev libpng12-0 libpng12-dev libjpeg-dev libjpeg8-dev libjpeg8 libgd-dev libgd3 libwebp-dev
@dougogisi
dougogisi / webpack-setup.md
Created February 25, 2018 18:03 — forked from 1Marc/webpack-setup.md
Webpack Setup

To set up the project you’ll need:

  • Node version 6 (you can install it with nvm)
  • npm version 3 (comes with Node 6)
  • git

Then run these commands:

git clone https://github.com/kentcdodds/es6-todomvc.git