Scaffold for serverless directory with layer, log retention, and http wildcard http api gateway
Deploy
- Run
yarn
- Edit
./config.yaml
as needed - Edit
./serverless.yml
as needed - Run
make build
- Run
make deploy
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
"""List git modified files for use in something like vim.""" | |
import subprocess | |
def main(): | |
"""Run main function.""" | |
edit_keys = { | |
"A", |
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
"""bulk object modify and move.""" | |
import concurrent.futures as cf | |
import json | |
import boto3 | |
from mypy_boto3_s3.service_resource import Bucket, ObjectSummary | |
BUCKET_NAME = "some-bucket" |
yarn
./config.yaml
as needed./serverless.yml
as neededmake build
make deploy
443
to your internal ip port 2222
docker-compose up
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
"""Find common strings in multiple files.""" | |
import argparse | |
from io import BytesIO | |
from pathlib import Path | |
import tokenize | |
def _itertokens(file: Path): |
git log --pretty=format: --name-only --diff-filter=A |
package crypt | |
import ( | |
crypto_rand "crypto/rand" | |
"encoding/hex" | |
"io" | |
"golang.org/x/crypto/nacl/box" | |
) |
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
"""Dump AWS logs entries by in timestamp range""" | |
import argparse | |
from datetime import datetime | |
import logging | |
import json | |
import boto3 |
#!/usr/bin/env bash | |
set -euo pipefail | |
IFS=$'\n\t' | |
DIR="$(dirname "$(readlink -f "$0")")" | |
GENERATED_DEST="${DIR}/frontend/src/lib/generatedapi" | |
OPENAPI_FILE="${DIR}/openapi.json" | |
test -d "${GENERATED_DEST}" || rm -rfv "${GENERATED_DEST}" | |
mkdir -p "${GENERATED_DEST}" |