Skip to content

Instantly share code, notes, and snippets.

@MangaD
MangaD / abi.md
Last active December 3, 2026 11:14
Comprehensive Guide to the Application Binary Interface (ABI) in C and C++

📌 Comprehensive Guide to the Application Binary Interface (ABI) in C and C++

CC0

Disclaimer: ChatGPT generated document.

The Application Binary Interface (ABI) defines how programs interact at the binary level. It is crucial for compatibility, function calling conventions, object layout, name mangling, and exception handling in C and C++.

Understanding the ABI is important for:

@luisjunco
luisjunco / VS -Code-Shortcuts.md
Last active December 3, 2026 09:56
VS Code Shortcuts

Common shortcuts in VS Code (Win // Mac):

  • Comment code: Ctrl (K+C) // ⌘ (K+C)
  • UnComment code: Ctrl (K+U) // ⌘ (K+U)

  • Duplicate line: Alt & Shift + Arrow Down // Option & Shift + Arrow Down
  • Multicursor: hold Alt + click // hold Option + click
@AshlinRejo
AshlinRejo / Discount rules v2: Apply discount for the products which already have custom price or discount
Last active December 3, 2026 09:42
Discount rules v2: Apply discount for the products which already have custom price or discount
add_action('plugins_loaded', function (){
add_filter('woocommerce_product_get_price', function ($price, $product){
if(isset($product->is_awdr_free_product)){
if($product->is_awdr_free_product){
$price = 0;
}
}
return $price;
}, PHP_INT_MAX, 2);
@karthicraghupathi
karthicraghupathi / advanced_requests.py
Last active December 3, 2026 09:30
Advanced usage of python requests - timeouts, retries, hooks
import requests
from requests.adapters import HTTPAdapter, Retry
DEFAULT_TIMEOUT = 5
class TimeoutHTTPAdapter(HTTPAdapter):
"""Set a default timeout for all HTTP calls."""
@Pulimet
Pulimet / AdbCommands
Last active December 3, 2026 09:10
Adb useful commands list
Hi All!
I've recently launched a tool that wraps many of the commands here with a user interface. This desktop application is currently available for macOS. There's a roadmap outlining planned features for the near future.
Feel free to request any features you'd like to see, and I'll prioritize them accordingly.
One of the most important aspects of this application is that every command executed behind the scenes is displayed in a special log section. This allows you to see exactly what’s happening and learn from it.
Here's the link to the repository: https://github.com/Pulimet/ADBugger
App Description:
ADBugger is a desktop tool designed for debugging and QA of Android devices and emulators. It simplifies testing, debugging, and performance analysis by offering device management, automated testing, log analysis, and remote control capabilities. This ensures smooth app performance across various setups.
#!/usr/bin/python
#
# Derived from:
#
# MD5C.C - RSA Data Security, Inc., MD5 message-digest algorithm
#
# Copyright (C) 1991-2, RSA Data Security, Inc. Created 1991. All
# rights reserved.
#
# License to copy and use this software is granted provided that it
@OrionUnix
OrionUnix / Sublime Text 3.2.2 Build 3211 key licence
Last active December 3, 2026 08:38
Sublime Text 3.2.2 Build 3211 key licence
----- BEGIN LICENSE -----
Member J2TeaM
Single User License
EA7E-1011316
D7DA350E 1B8B0760 972F8B60 F3E64036
B9B4E234 F356F38F 0AD1E3B7 0E9C5FAD
FA0A2ABE 25F65BD8 D51458E5 3923CE80
87428428 79079A01 AA69F319 A1AF29A4
A684C2DC 0B1583D4 19CBD290 217618CD

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.

# This isn't really intended to be run I just figured it was the easiest way to
# document the process
# You should really just hand it to whatever agent you're using to manage your servers
# since you're probably not as paranoid as me
#!/usr/bin/env bash
# AI GENERATED SCRIPT FOR DOCUMENTATION PURPOSES
# ONLY REMOVE THIS IF YOU HAVE REVIEWED THE SCRIPT
exit 0
set -euo pipefail
umask 022