Kyle Pericak

"It works in my environment"

Created: 2026-03-11
Modified: 2026-03-11

RAG on the Bot-Wiki

Build a tiny RAG pipeline over a 21-page wiki using FAISS flat index, OpenRouter embeddings, and whole-page chunks enriched with frontmatter context.

Created: 2020-03-06
Modified: 2020-01-13

Transferring files to Windows through Python's SimpleHTTPServer

Push a one-off file to a locked-down Windows box from Linux by hosting it with `python -m SimpleHTTPServer` and grabbing it in Internet Explorer.

Created: 2020-02-03
Modified: 2020-02-03

Python Ceph Examples

Use Ceph's rados and rbd Python libraries to check cluster health, list and create pools, and manage RBD block-device images with real code samples.

Created: 2020-01-27
Modified: 2020-01-27

AWS CodeBuild CICD - Deploy to Lambda

Build a CI/CD pipeline for Python Lambda functions using CodeCommit, CodeBuild, and AWS SAM templates to test and auto-deploy on every commit.

Created: 2020-01-21
Modified: 2020-01-21

Authenticating with AWS IAM in AWS API Gateway

Lock down an AWS API Gateway endpoint with IAM auth, wire it to a Python Lambda, and call it from a signed client using policies and access keys.

Created: 2020-01-09
Modified: 2020-01-09

Create & Terminate EC2 Instances from Python

Launch and terminate EC2 instances from Python using boto3, with a working example covering Ubuntu AMIs, security groups, tags, and wait_until_running.

Created: 2020-01-09
Modified: 2020-01-09

IAM Auth for Lambda

Restrict access to a specific AWS Lambda function using an IAM policy scoped to its ARN, then invoke it from Python with boto3 and access keys.

Created: 2019-10-14
Modified: 2019-10-14

Google Cloud Firestore Basics - Python

Read and write Google Cloud Firestore documents from Python, with pricing comparisons against Datastore mode and a walk through collections and references.

Created: 2019-09-26
Modified: 2019-09-26

Using AWS S3 from Python

Upload and download files to AWS S3 from Python using boto3, with IAM policies, user groups, and a dedicated service account for programmatic access.

Created: 2019-09-06
Modified: 2019-10-2

Upload a Python Package to PyPi

Publish a pip-installable Python package to PyPI. Walks through setup.py, setup.cfg, a GitHub release for download_url, and uploading with twine.

Created: 2019-09-05
Modified: 2019-09-05

Working with JSON SQL values in Python

Pull a JSON blob out of a MariaDB column into a file, edit it, and write it back using raw SQL in Python with the mysql-connector library.

Created: 2019-09-04
Modified: 2019-09-26

Python Reference Page

Python snippets I reach for often. Pylint disable comments, list comprehensions, Jinja2 templating, MySQL queries, stdin pipes, and file string replacement.