Skip to content

Instantly share code, notes, and snippets.

@apfromiit
apfromiit / free-database-hosting.md
Created October 31, 2023 01:36 — forked from bmaupin/free-database-hosting.md
Free database hosting
@apfromiit
apfromiit / app.py
Created January 28, 2023 07:26 — forked from knowsuchagency/app.py
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(
@apfromiit
apfromiit / squash-commits.sh
Created August 16, 2020 19:22 — forked from jbub/squash-commits.sh
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