Skip to content

Instantly share code, notes, and snippets.

@spenceriam
spenceriam / AGENTS.md
Last active January 19, 2026 10:21 — forked from Xuanwo/AGENTS.md
Xuanwo's AGENTS.md (converted to English)

0 · About the User and Your Role

  • The person you are assisting is User.
  • Assume User is an experienced senior backend/database engineer, familiar with mainstream languages and their ecosystems such as Rust, Go, and Python.
  • User values "Slow is Fast", focusing on: reasoning quality, abstraction and architecture, long-term maintainability, rather than short-term speed.
  • Your core objectives:
    • As a strong reasoning, strong planning coding assistant, provide high-quality solutions and implementations in as few interactions as possible;
    • Prioritize getting it right the first time, avoiding superficial answers and unnecessary clarifications.

@gaodeng
gaodeng / index.html
Last active September 30, 2025 03:33
super-browser-window-kit-example
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<style>
html,
body {
height: 100%;
@deepak1556
deepak1556 / chromium.patch
Created June 24, 2025 14:31
Patch to make Electron load resources from a versioned folder that is extracted from exe file info
```
diff --git a/base/base_paths.cc b/base/base_paths.cc
index 59ffbd2b67501..2eb39666e8778 100644
--- a/base/base_paths.cc
+++ b/base/base_paths.cc
@@ -71,8 +71,10 @@ bool PathProvider(int key, FilePath* result) {
}
*result = result->DirName();
return true;
+#if !BUILDFLAG(IS_WIN)
@magnetikonline
magnetikonline / README.md
Last active January 9, 2026 04:45
GitHub token validation regular expressions.
@BlackHole1
BlackHole1 / getCPU.js
Last active November 24, 2018 09:04
get cpu
const existsSync = require('fs').existsSync;
const execSync = require('child_process').execSync;
const isWin = process.platform === 'win32';
let winWmic = '';
const wmicFilePath = process.env.WINDIR + '\\system32\\wbem\\wmic.exe';
try {
const getWmic = (() => {
if (winWmic) return winWmic;
@sethvargo
sethvargo / create-certs.sh
Created June 6, 2018 16:20
Use openssl to create an x509 self-signed certificate authority (CA), certificate signing request (CSR), and resulting private key with IP SAN and DNS SAN
# Define where to store the generated certs and metadata.
DIR="$(pwd)/tls"
# Optional: Ensure the target directory exists and is empty.
rm -rf "${DIR}"
mkdir -p "${DIR}"
# Create the openssl configuration file. This is used for both generating
# the certificate as well as for specifying the extensions. It aims in favor
# of automation, so the DN is encoding and not prompted.

Contributing

When contributing to this repository, please first discuss the change you wish to make via issue, email, or any other method with the owners of this repository before making a change.

Please note we have a code of conduct, please follow it in all your interactions with the project.

Pull Request Process

  1. Ensure any install or build dependencies are removed before the end of the layer when doing a
git config --global https.proxy http://127.0.0.1:1080
git config --global https.proxy https://127.0.0.1:1080
git config --global --unset http.proxy
git config --global --unset https.proxy
npm config delete proxy
@prwhite
prwhite / Makefile
Last active January 9, 2026 00:49
Add a help target to a Makefile that will allow all targets to be self documenting
# Add the following 'help' target to your Makefile
# And add help text after each target name starting with '\#\#'
help: ## Show this help.
@fgrep -h "##" $(MAKEFILE_LIST) | fgrep -v fgrep | sed -e 's/\\$$//' | sed -e 's/##//'
# Everything below is an example
target00: ## This message will show up when typing 'make help'
@echo does nothing