Skip to content

Instantly share code, notes, and snippets.

View codingjoe's full-sized avatar

Johannes Maron codingjoe

View GitHub Profile
@codingjoe
codingjoe / keybase.md
Last active March 4, 2026 20:46
keybase.md

Keybase proof

I hereby claim:

  • I am codingjoe on github.
  • I am codingjoe (https://keybase.io/codingjoe) on keybase.
  • I have a public key ASCrU7QTyGthlfb3w79A6pMudUWkbZQmlqMOYbCqEeRR0Qo

To claim this, I am signing this object:

@codingjoe
codingjoe / test_noio.py
Last active December 22, 2025 19:14
TestNoIO
import itertools
from django.conf import settings
from django.http import HttpResponse
from django.template import engines
from django.utils.module_loading import import_string
import pytest
@codingjoe
codingjoe / README.md
Last active September 10, 2025 18:20
Run MCP on Django w/o a headache

WSGI and ASGI on a single server

We want to attach a an ASGI app, like FastAPI, to an existing Django app, without any performance downsides.

In our example we are attaching an MCP server, including auto-loading.

Preparation

You have an existing Django app, you serve via WSGI on a server like guinicorn. That's it!

@codingjoe
codingjoe / Code.gs
Last active January 7, 2025 14:52
Export GitHub Project Board to Google Sheets
function updateData () {
/* Fetch project cards from GitHub project and insert into Google Sheet. */
const scriptProperties = PropertiesService.getScriptProperties()
const spreadsheet = SpreadsheetApp.getActive()
const sheetName = scriptProperties.getProperty('SHEET_NAME')
const sheet = spreadsheet.getSheetByName(sheetName)
const githubApiUrl = 'https://api.github.com/graphql'
const githubAccessToken = scriptProperties.getProperty('GITHUB_ACCESS_TOKEN')
const githubOrg = scriptProperties.getProperty('GITHUB_ORG')
@codingjoe
codingjoe / Procfile
Created January 19, 2021 17:29
Sentry Release on Heroku w/ commits, sourmaps & assets
release: bin/release
web: ...
worker: ...
@codingjoe
codingjoe / dev-db.yml
Last active January 31, 2024 09:55
Sanaitize a development database via GitHub actions & Heroku
name: Development DB
on:
schedule:
- cron: "0 4 * * *"
workflow_dispatch:
jobs:
dev-db:
services:
@codingjoe
codingjoe / geodjango_macOS_arm64.md
Created March 11, 2021 10:29
HowTo run GeoDjango and PostGIS on M1 macOS arm64 MacBook
  1. Install PostgreSQL with PostGIS via Postges.app
  2. Install brew as recommended.
  3. Install dependencies:
    brew install geos gdal
    
  4. Add the following to your settings:
    # settings.py
    

GDAL_LIBRARY_PATH = os.getenv('GDAL_LIBRARY_PATH')

@codingjoe
codingjoe / django_docs.md
Last active July 24, 2022 23:16
Build Django docs like a pro!

Build Django docs like a pro!

Sphinx config

docs/conf.py

import importlib
import inspect
import os
import sys
diff --git a/django/core/checks/security/base.py b/django/core/checks/security/base.py
index c21725518b..ecd5f5e004 100644
--- a/django/core/checks/security/base.py
+++ b/django/core/checks/security/base.py
@@ -4,6 +4,8 @@ from django.conf import settings
from django.core.exceptions import ImproperlyConfigured
from .. import Error, Tags, Warning, register
+from ...cache import caches
+from ...cache.backends.filebased import FileBasedCache
@codingjoe
codingjoe / camping-checklist-cabin-tour-summer.md
Last active August 12, 2020 16:34
Camping Checklist – Summer

Camping Checklist – Cabin Tour

All items are if needed.

Personal Items

Clothing

  • hiking boots
  • 2 x pair of hiking socks