Skip to content

Instantly share code, notes, and snippets.

View oNddleo's full-sized avatar
🎯
Focusing

Nguyễn Đức Long oNddleo

🎯
Focusing
View GitHub Profile
@oNddleo
oNddleo / dsh-marketplace-overview.md
Created August 26, 2026 19:20
dsh Plugin Marketplace (dshmp.com) — Verified Catalog for DeepSeek Harness

🚀 dsh Plugin Marketplace — Verified Discovery for DeepSeek Harness

dsh Plugin Marketplace (dshmp.com) is the official community catalog and discovery platform for dsh (DeepSeek Harness) plugins.


💡 What is dsh?

dsh (@deepseek-ai/dsh-base) is an extensible CLI harness for DeepSeek AI tools and workflows, extendable via modular npm plugins.

🎯 Why dshmp.com?

@oNddleo
oNddleo / prompt-injections.md
Created August 26, 2026 10:37 — forked from kibotu/prompt-injections.md
Prompt Injection & Jailbreak Techniques — Comprehensive Reference

Prompt Injection & Jailbreak Techniques — Comprehensive Reference

Purpose & scope. A defensive/educational knowledge base cataloguing known prompt-injection and jailbreak patterns, the models/systems they have affected, and the defenses against them. Compiled from primary literature (arXiv papers, vendor disclosures) and security research, June 2026.

How to read this. Every technique lists: how it works, an illustrative structural skeleton (the shape of the attack, not a weaponized payload), the models/systems it was reported against, and its current status. Examples are deliberately defanged. >

@oNddleo
oNddleo / llm-wiki.md
Created April 18, 2026 12:13 — forked from karpathy/llm-wiki.md
llm-wiki

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.

@oNddleo
oNddleo / optimize-query.md
Created December 10, 2025 08:33
Optimize Query

Phân tích và Tối ưu Query

🔍 Phân tích vấn đề

Các điểm nghẽn chính:

  1. ANY operator trên array columns (campaign_ids, tags)
    • Không thể sử dụng B-tree index hiệu quả
    • Full scan hoặc bitmap index scan tốn kém
@oNddleo
oNddleo / s3-cloudflare.md
Last active December 8, 2025 10:33
CloudFlare

Complete Guide: Configure Private S3 Bucket with CloudFront and Cloudflare

Overview

This guide walks through setting up a private S3 bucket with CloudFront as the content delivery layer and Cloudflare as the proxy/caching layer. This architecture provides security, performance, and cost optimization.


Phase 1: AWS S3 Configuration

+-------------+        +------------+        +--------------+
| Client Apps | <----> | WebSockets | -----> | Chat Service |
+-------------+        +------------+        +--------------+
                                                 |
                                                 v
                                         +----------------+
                                         | Message Service|
                                         +----------------+
                                                 |
@oNddleo
oNddleo / snacks.lua
Last active September 1, 2025 05:13
-- ~/.config/nvim/init.lua
-- Neovim configuration with snacks.nvim terminal and transparent background
-- Basic settings
vim.opt.number = true
vim.opt.relativenumber = true
vim.opt.tabstop = 2
vim.opt.shiftwidth = 2
vim.opt.expandtab = true
vim.opt.smartindent = true
@oNddleo
oNddleo / query-billion.sql
Created July 1, 2025 03:34
Query Billion
SELECT symbol, close, date
FROM public.historical_data
WHERE symbol IN ({placeholders})
AND date BETWEEN %s::date AND %s::date
AND close IS NOT NULL
ORDER BY symbol, date
@oNddleo
oNddleo / config.yaml
Created June 24, 2025 04:12 — forked from taroj1205/config.yaml
Komorebi and Yasb Bar Configuration
watch_stylesheet: true
watch_config: true
debug: false # Enable debug mode to see more logs
# This komorebi setting will be used for tray context menu.
# If you don't use komorebi, you can remove this section.
komorebi:
start_command: "komorebic start --whkd"
stop_command: "komorebic stop --whkd"
reload_command: "komorebic reload-configuration"
@oNddleo
oNddleo / go-pprof.md
Created June 2, 2025 02:24 — forked from andrewhodel/go-pprof.md
Go profiling with pprof

Importing net/http/pprof adds HTTP endpoints to serve profile files that can be viewed or charted with a command line tool when the runtime.Set* functions are executed.

1. import pprof into the go program

import _ "net/http/pprof"

If your application is not already running an http or https server, add net/http to the program imports and the following code to the start of the main function:

go http.ListenAndServe(":8550", nil)