Skip to content

Instantly share code, notes, and snippets.

View interifter's full-sized avatar

Zachary interifter

  • OR, US
View GitHub Profile
@interifter
interifter / cython_mypy.md
Last active May 15, 2025 01:12
Cython-Built Pyd file with pyi header Using Cython and Mypy

Here we experiment with using this module back in python

Previous Multifile Cython with Python and EWDK

Important

I created a different module called 'say_hello.py' for this. I haven't touched things in a while.

takeaways

  • demonstrate how to use a .pyd file with python
@interifter
interifter / loguru-my-mongo-baby.py
Last active April 23, 2025 19:05
Creating Serializable JSONs with loguru and MongoDb
# Assumes you are using python3.12
"""Example code to use loguru with a Db.
Specifically, how to generate a serializable JSON
There may be better ways to do this, but this is a way
"""
import asyncio
from datetime import datetime
import sys
@interifter
interifter / multifile_cython_ewdk.md
Last active December 7, 2024 18:01
Multifile Cython with Python and EWDK
@interifter
interifter / cython_ewdk_hello_world.md
Last active December 7, 2024 18:00
Cython from Python With the EWDK
@interifter
interifter / ewdk_hello_world_c.md
Last active December 7, 2024 03:22
Hello World C Program with EWDK

Disclaimer: I'm not sure if this is the best way, but I could not find any official ways. I spend most of my time developing Python CLIs, building and deploying microservices, and automating CI/CD pipelines. So, running builds at this level, and playing with multiple C files, is outside of my typical professional skillsets.

This is part of my explorations into cython with the EWDK.

Next: Cython from Python with the EWDK

Contents

Example on how to do context logging with a guid and loguru

"""Noodling"""
from __future__ import annotations
import asyncio
import random
import sys
import uuid
import loguru
@interifter
interifter / backpain.md
Created March 9, 2024 01:53
Help on alleviating back pain

This is what I do to help combat: Lower back pain, hip flexor pain, gluteus pain. This also addresses general weakness from sitting.

I am not a professional trainer, physician, or any other person qualified for providing fitness recommendations. This is simply what works for me.

This routine should be added to any existing routines you may already have. Replace as you see fit.

Note: This is a bare minimum. Anything you do beyond this is even better (I plan to as I recover).

@interifter
interifter / get-net-info.cmd
Created August 18, 2023 22:33
Get Network Info
ipconfig /all
netsh wlan sh interface
powershell -command "Get-NetAdapter -Name Wi-Fi | Select Name, InterfaceDescription,DriverVersion, DriverDate, DriverProvider"
@interifter
interifter / fcgi.py
Last active December 3, 2020 19:37 — forked from antoinemartin/fcgi.py
Modified from the original to support Python34 syntax
# encoding: utf-8
# FastCGI-to-WSGI bridge for files/pipes transport (not socket)
#
# Copyright (c) 2002, 2003, 2005, 2006 Allan Saddi <allan@saddi.com>
# Copyright (c) 2011 Ruslan Keba <ruslan@helicontech.com>
# Copyright (c) 2012 Antoine Martin <antoine@openance.com>
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without