Skip to content

Instantly share code, notes, and snippets.

@myusuf3
myusuf3 / delete_git_submodule.md
Created November 3, 2014 17:36
How effectively delete a git submodule.

To remove a submodule you need to:

  • Delete the relevant section from the .gitmodules file.
  • Stage the .gitmodules changes git add .gitmodules
  • Delete the relevant section from .git/config.
  • Run git rm --cached path_to_submodule (no trailing slash).
  • Run rm -rf .git/modules/path_to_submodule (no trailing slash).
  • Commit git commit -m "Removed submodule "
  • Delete the now untracked submodule files rm -rf path_to_submodule

GitHub Search Syntax for Finding API Keys/Secrets/Tokens

As a security professional, it is important to conduct a thorough reconnaissance. With the increasing use of APIs nowadays, it has become paramount to keep access tokens and other API-related secrets secure in order to prevent leaks. However, despite technological advances, human error remains a factor, and many developers still unknowingly hardcode their API secrets into source code and commit them to public repositories. GitHub, being a widely popular platform for public code repositories, may inadvertently host such leaked secrets. To help identify these vulnerabilities, I have created a comprehensive search list using powerful search syntax that enables the search of thousands of leaked keys and secrets in a single search.

Search Syntax:

(path:*.{File_extension1} OR path:*.{File_extension-N}) AND ({Keyname1} OR {Keyname-N}) AND (({Signature/pattern1} OR {Signature/pattern-N}) AND ({PlatformTag1} OR {PlatformTag-N}))

Examples:

**1.

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.

@ddoronin
ddoronin / compression-dictionary-transport-kit.md
Last active August 10, 2026 13:27
compression-dictionary-transport-kit
name compression-dictionary-transport-kit
description Portable, framework-agnostic kit for adding Compression Dictionary Transport (RFC 9842, "dcz") to ANY project with a JS/CSS build step and a server that can set response headers — not tied to any specific stack. Copy the files in this skill into the target project and wire them in. Use when asked to add/implement compression dictionaries, shared dictionaries, or `dcz` support in a project.

Compression Dictionary Transport — portable kit

A drop-in implementation of RFC 9842 (Compression Dictionary Transport, the dcz content-coding). Copy the files below into the target project, fill in the two adapter functions for its

@kinsamanka
kinsamanka / README.md
Last active August 10, 2026 13:23
Steps to install OpenStick on JZxx boards

These are the steps required to install OpenStick on JZxxx boards

The JZxxx board is a variant of the UFIxxx series, which enters EDL mode when the reset button is pressed during powerup.

To facilitate easy updates of the kernel and device tree files (or to run the mainline kernel), the latest version of lk2nd is used.


Disclaimer

Flashing Roms carries the risk of bricking your board, sometimes for good. We cannot be held responsible in the event something goes wrong with your board during the process of following this guide.

@mosioc
mosioc / frontend-architecture.md
Last active August 10, 2026 13:17
Frontend Architecture Patterns

Frontend Architecture Patterns

A comprehensive guide to modern frontend architecture patterns, rendering strategies, state management, and code organization approaches.



@battenr
battenr / iptw_vs_msm.R
Created April 11, 2025 19:29
IPTW vs MSM for Time-Varying Confounding
# Title: Time-Varying Confounding (MSM vs IPTW)
# Description: Demonstrating how marginal structural models provide
# less biased estimates compared to using IPTW at baseline only, when
# there is time-varying confounding.
# Setup ----
#... Libraries ----
@bahadiraraz
bahadiraraz / Git_Commit_Freeze_Solution.md
Last active August 10, 2026 13:10
Git Commit Freeze Due to GPG Lock Issues (Solution)

Git Commit Freeze Due to GPG Lock Issues

If you encounter a problem where you cannot commit changes in Git – neither through the terminal nor via the GitHub Desktop application – the issue might be a freeze during the Git commit process. This is often caused by GPG lock issues. Below is a concise and step-by-step guide to resolve this problem.

Solution Steps

1. Check for GPG Lock Messages

Open your terminal and try to perform a GPG operation (like signing a test message). If you see repeated messages like gpg: waiting for lock (held by [process_id]) ..., it indicates a lock issue.