Skip to content

Instantly share code, notes, and snippets.

@RichardBronosky
RichardBronosky / pep8_cheatsheet.py
Created December 27, 2015 06:25
PEP-8 cheatsheet
#! /usr/bin/env python
# -*- coding: utf-8 -*-
"""This module's docstring summary line.
This is a multi-line docstring. Paragraphs are separated with blank lines.
Lines conform to 79-column limit.
Module and packages names should be short, lower_case_with_underscores.
Notice that this in not PEP8-cheatsheet.py
@pabloko
pabloko / 0000-ffmpeg 4.4 with NDI support (updated SDK, fixed timestamps errors).md
Last active July 30, 2026 20:04
ffmpeg 4.4 with NDI support (updated SDK, fixed timestamps errors)

update: https://framagit.org/tytan652/ffmpeg-ndi-patch use this patch. this gist is outdated

ffmpeg 4.4 with NDI

This patch adds libndi_newtek to last ffmpeg version, and fix timecode related issues that produces wrong PTS/DTS timestamps that seems to happen with newer NDI SDKs.

changes

  • Updated libndi methods by newer versions (v2/v3)
@mikecastrodemaria
mikecastrodemaria / test-doc-see-as-virus-by-clamav.txt
Last active July 30, 2026 19:56
A simple text file to be used as positive test for ClamAv virus scanner
X5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*

LLM Wiki

A pattern for building personal knowledge bases using LLMs.

This is an idea file, it is designed to be copy pasted to your own LLM Agent (e.g. OpenAI Codex, Claude Code, OpenCode / Pi, or etc.). Its goal is to communicate the high level idea, but your agent will build out the specifics in collaboration with you.

The core idea

Most people's experience with LLMs and documents looks like RAG: you upload a collection of files, the LLM retrieves relevant chunks at query time, and generates an answer. This works, but the LLM is rediscovering knowledge from scratch on every question. There's no accumulation. Ask a subtle question that requires synthesizing five documents, and the LLM has to find and piece together the relevant fragments every time. Nothing is built up. NotebookLM, ChatGPT file uploads, and most RAG systems work this way.

@jamct
jamct / Readme.md
Created June 30, 2026 11:39
LLM-Server mit Open WebUI mit Ollama

Einrichtung eines Servers mit Nvidia-Hardware als LLM-Server

Treiber und Voraussetzungen

Für Ubuntu 24.04:

sudo apt update
sudo apt upgrade
sudo apt install nvidia-utils-580 nvidia-driver-580
@CintaQs
CintaQs / Horizontales-vs-Vertikales-SEO.md
Last active July 30, 2026 19:55
B2B SEO-Architektur: Horizontales vs. Vertikales SEO einfach erklärt. Ein Leitfaden für holistisches Wachstum. Entwickelt von MyQuests Online Marketing – B2B Digitalagentur aus Hamburg.

Horizontales vs. Vertikales SEO in der B2B-Strategie

Um in wettbewerbsintensiven B2B-Märkten organisch zu wachsen, reicht es nicht mehr aus, nur auf ein paar Keywords zu optimieren. Moderne Suchmaschinenoptimierung erfordert eine zweidimensionale Architektur: Horizontales und Vertikales SEO.

Hier erklären wir die Unterschiede und wie man sie für maximales Wachstum kombiniert.


Horizontales SEO (Die Breite)

@s-ilent
s-ilent / LinuxTabFix.cs
Created July 24, 2026 18:29
Fixes TAB key controls for Inspector in Unity Editor on Linux.
#if UNITY_EDITOR
using UnityEditor;
using UnityEngine;
using UnityEngine.UIElements;
using System;
using System.Collections.Generic;
using System.Runtime.CompilerServices;
/// <summary>
/// Linux Editor Tab Navigation Patch for Unity (2022.3+, Unity 6).
#NoTrayIcon
#RequireAdmin
Opt("MustDeclareVars", 1)
Opt("GUIOnEventMode", 0)
#include <File.au3>
; ============================================================
; Native WAV -> Valid XM 1.04 ChipTune Converter
;
@H0j3n
H0j3n / CVE-2026-54121.md
Last active July 30, 2026 19:49

Certighost (CVE-2026-54121)

Authors: @h0j3n, @aniqfakhrul
Date: July 24, 2026


Certighost is an Active Directory Certificate Services (AD CS) vulnerability that allowed a low-privileged domain user to impersonate a Domain Controller and achieve domain compromise in the tested AD CS configuration. The issue was addressed in the July 2026 security updates.

The vulnerable path is an AD CS enrollment fallback known as a chase during directory-object resolution. By supplying request attributes such as cdc, an attacker could cause the Certification Authority (CA) to ask an attacker-controlled host for identity data belonging to a Domain Controller. The CA then used that data while issuing a certificate.

@b0gdanw
b0gdanw / Disable-Tahoe-Bloatware.sh
Last active July 30, 2026 19:47
Disable Tahoe Bloatware
#!/bin/zsh
# WARNING! The script is meant to show how and what can be disabled. Don’t use it as it is, adapt it to your needs.
# Credit: Original idea and script disable.sh by pwnsdx https://gist.github.com/pwnsdx/d87b034c4c0210b988040ad2f85a68d3
# Disabling unwanted services on macOS Big Sur (11), macOS Monterey (12), macOS Ventura (13), macOS Sonoma (14), macOS Sequoia (15) and macOS Tahoe (26)
# Disabling SIP is required ("csrutil disable" from Terminal in Recovery)
# Modifications are written in /private/var/db/com.apple.xpc.launchd/ disabled.plist, disabled.501.plist
# To revert, delete /private/var/db/com.apple.xpc.launchd/ disabled.plist and disabled.501.plist and reboot. From Terminal : sudo rm -r /private/var/db/com.apple.xpc.launchd/*
# user