BlogWikiAbout

Kyle Pericak

"It works in my environment"

RAG on the Bot-Wiki

RAG on the Bot-Wiki

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

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

Transferring files to Windows through Python's SimpleHTTPServer

Transferring files to Windows through Python's SimpleHTTPServer

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

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.

Python Ceph Examples

Python Ceph Examples

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

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.

AWS CodeBuild CICD - Deploy to Lambda

AWS CodeBuild CICD - Deploy to Lambda

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

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

Authenticating with AWS IAM in AWS API Gateway

Authenticating with AWS IAM in AWS API Gateway

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

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.

Create & Terminate EC2 Instances from Python

Create & Terminate EC2 Instances from Python

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

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

IAM Auth for Lambda

IAM Auth for Lambda

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

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.

Google Cloud Firestore Basics - Python

Google Cloud Firestore Basics - Python

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

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

Using AWS S3 from Python

Using AWS S3 from Python

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

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

Upload a Python Package to PyPi

Upload a Python Package to PyPi

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

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

Working with JSON SQL values in Python

Working with JSON SQL values in Python

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

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.

Python Reference Page

Python Reference Page

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

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

Blog code last updated on 2026-04-16: 8579f34f0a3ec5b8043d5eade8e87124d41cf83b