Skip to content

Instantly share code, notes, and snippets.

@rene-d
rene-d / colors.py
Last active October 9, 2026 20:45
ANSI color codes in Python
# SGR color constants
# rene-d 2018
class Colors:
""" ANSI color codes """
BLACK = "\033[0;30m"
RED = "\033[0;31m"
GREEN = "\033[0;32m"
BROWN = "\033[0;33m"
BLUE = "\033[0;34m"
@probonopd
probonopd / Wayland.md
Last active October 9, 2026 20:40
Think twice about Wayland. It breaks everything!

Think twice before abandoning X11. Wayland breaks everything!

tl;dr: Wayland is not "the future", it is merely an incompatible alternative to the established standard with a different set of priorities and goals.

Wayland breaks everything! It is binary incompatible, provides no clear transition path with 1:1 replacements for everything in X11, and is even philosophically incompatible with X11. Hence, if you are interested in existing applications to "just work" without the need for adjustments, then you may be better off avoiding Wayland.

Wayland solves no issues I have but breaks almost everything I need. Even the most basic, most simple things (like xkill) - in this case with no obvious replacement. And usually it stays broken, because the Wayland folks mostly seem to care about Automotive, Gnome, maybe KDE - and alienating e

<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Fill in the Missing Letters!</title>
<style>
:root {
--primary: #4f46e5;
--primary-hover: #4338ca;
@jeffbrl
jeffbrl / user-data.yaml
Created October 21, 2018 00:04
AWS CloudFormation UserData Example
# This example is from https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html.
UserData:
Fn::Base64:
!Sub |
#!/bin/bash -xe
yum update -y aws-cfn-bootstrap
/opt/aws/bin/cfn-init -v --stack ${AWS::StackName} --resource LaunchConfig --configsets wordpress_install --region ${AWS::Region}
/opt/aws/bin/cfn-signal -e $? --stack ${AWS::StackName} --resource WebServerGroup --region ${AWS::Region}
@imtdifoxn
imtdifoxn / core-probe-results.json
Created October 9, 2026 20:36 — forked from narugo1992/core-probe-results.json
JerryProxy protocol r11 and subscription-client audit r1; high-assurance closure status is 0/197 and evidence repository is internal
{
"document_type": "credential_free_core_probe_results",
"observed_at": "2026-08-02T09:06:54Z",
"evidence_scope": "local credential-free execution with fixed backend releases",
"certificate_effect": "none; these observations do not change the frozen 0/152 catalogue or 0/197 execution certificate counts",
"runner": {
"repository": "narugo1992/jerryproxy-evidence",
"commit": "dbce19dc6d7bdee380d08dea07ca35cc4331fed0",
"worktree_state": "clean",
"execution_mode": "unsigned local probe"

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.

@thanksshu
thanksshu / cf_cors_worker.js
Last active October 9, 2026 20:24
CORS proxy in Cloudflare Worker
export default {
/**
* Send request to this API with querys param "url" and "apikey"
* @param {Request} request
* @param {*} env
* @param {*} ctx
* @returns Response
*/
async fetch(request, env, ctx) {
const supportMethods = new Set(['GET', 'HEAD', 'POST', 'PUT', 'DELETE', 'PATCH']);
@chrisjrn
chrisjrn / naur-1985.md
Last active October 9, 2026 20:23
"Programming as Theory Building", P. Naur (1984/85)
@JubairRahman
JubairRahman / QA_Benchmark.md
Created September 28, 2025 10:53
A structured 30-day roadmap to learn Software Testing (QA) from scratch to intermediate level using only free resources. This roadmap covers manual testing, QA fundamentals, API testing, automation basics, and practice projects.

πŸ§ͺ 30-Day Free QA Learning Roadmap

A structured 30-day roadmap to learn Software Testing (QA) from scratch to intermediate level using only free resources.
This roadmap covers manual testing, QA fundamentals, API testing, automation basics, and practice projects.


πŸ“Œ Prerequisites

  • Basic computer knowledge πŸ’»
  • Interest in problem-solving πŸ”Ž