Skip to content

Instantly share code, notes, and snippets.

View nphilipp's full-sized avatar

Nils Philippsen nphilipp

  • Red Hat
  • Leonberg, Germany
View GitHub Profile
@webknjaz
webknjaz / generative-ai-llm-spam-handling.md
Last active November 26, 2025 09:44
This Gist collects opinions and pointers on fighting LLM spam on GitHub

Tip

See a fully generated Claude summary of this gist, traversing a few hundred related links: https://claude.ai/public/artifacts/de2ffa40-98dc-4458-b1b5-f3e645bf7840

Note that this document has factual errors so double-check before citing it. The general sentiment is sound, though.

Important

Folks from CHAOSS have recently started gathering similar information at their Awesome LLM Policies page and I might start contributing there instead:

@simonw
simonw / recover_source_code.md
Last active September 14, 2025 04:26
How to recover lost Python source code if it's still resident in-memory

How to recover lost Python source code if it's still resident in-memory

I screwed up using git ("git checkout --" on the wrong file) and managed to delete the code I had just written... but it was still running in a process in a docker container. Here's how I got it back, using https://pypi.python.org/pypi/pyrasite/ and https://pypi.python.org/pypi/uncompyle6

Attach a shell to the docker container

Install GDB (needed by pyrasite)

apt-get update && apt-get install gdb
@protrolium
protrolium / ffmpeg.md
Last active December 1, 2025 21:36
ffmpeg guide

ffmpeg

Converting Audio into Different Formats / Sample Rates

Minimal example: transcode from MP3 to WMA:
ffmpeg -i input.mp3 output.wma

You can get the list of supported formats with:
ffmpeg -formats

You can get the list of installed codecs with: