Skip to content

Instantly share code, notes, and snippets.

@knowsuchagency
knowsuchagency / app.py
Created January 24, 2023 15:51
chalice-spec example
from apispec import APISpec
from chalice import Chalice, BadRequestError, Response
from chalice_spec import PydanticPlugin, ChalicePlugin, Docs, Operation
from pydantic import BaseModel, ValidationError
APP_NAME = "chalice-spec example"
app = Chalice(app_name=APP_NAME)
spec = APISpec(
@bmaupin
bmaupin / free-database-hosting.md
Last active May 10, 2024 11:17
Free database hosting
@jbub
jbub / squash-commits.sh
Created June 12, 2013 15:31
git squash last two commits into one
git rebase --interactive HEAD~2
# we are going to squash c into b
pick b76d157 b
pick a931ac7 c
# squash c into b
pick b76d157 b
s a931ac7 c