Skip to content

Instantly share code, notes, and snippets.

View xsyetopz's full-sized avatar
🔗

Krystian J. xsyetopz

🔗
  • 02:20 (UTC +02:00)
View GitHub Profile
@tejainece
tejainece / vscode_marketplace
Last active March 14, 2026 15:01
Marketplace for VS code to be used in Antigravity
https://marketplace.visualstudio.com/items
https://marketplace.visualstudio.com/_apis/public/gallery
@ruvnet
ruvnet / redaction.md
Last active March 11, 2026 22:11
Redaction hooks for Claude Code

A drop-in redaction hook wired through settings.json for Claude Code.

It masks secrets before tools run and censors sensitive fields in transcripts.

what is it?

Data leakage for enterprises using Ai coding is a ███ . Redaction hooks solve ██ problems by catching secrets before they leak. Here’s how I do it.

A redaction hook sits between your agent and the outside world. Every time Claude Code reads a file, runs a shell command, or fetches a web resource, the hook scans for sensitive patterns like API keys, tokens, or passwords. If it sees something dangerous, it either masks it with a placeholder or blocks the request outright. That way, your logs and transcripts remain useful but never expose private values.

@orneryd
orneryd / claudette-agent.installation.md
Last active February 25, 2026 14:32
Claudette coding agent (System Prompt, Preamble, Chatmode, etc…) built especially for free-tier models like chatGPT-3/4/5+ to behave more similar to Claude. Claudette-auto.md is the most structured and focuses on autonomy. *Condensed* nearly the same but smaller token cost for smaller contexts, *Compact* is for mini contexts. Memories file suppo…

Beast Mode

Beast Mode is a custom chat mode for VS Code agent that adds an opinionated workflow to the agent, including use of a todo list, extensive internet research capabilities, planning, tool usage instructions and more. Designed to be used with 4.1, although it will work with any model.

Below you will find the Beast Mode prompt in various versions - starting with the most recent - 3.1

Installation Instructions

  • Go to the "agent" dropdown in VS Code chat sidebar and select "Configure Modes".
  • Select "Create new custom chat mode file"
@Julienraptor01
Julienraptor01 / experiment.md
Last active February 23, 2026 12:58
How to enable Discord Developer Settings including the Experiments tab

How to enable Discord Developer Settings including the Experiments tab

image

Warning

This is being written as of 2025/04/05 18:45:00 UTC
Discord updates fast, so this could break !

1. Enable the Dev Console

// ==UserScript==
// @name Dowmload VSIX
// @namespace http://tampermonkey.net/
// @version 1.0.0
// @description This userscript allows you to download VSIX files directly from the Visual Studio Marketplace
// @updateURL https://gist.githubusercontent.com/Sigmanor/8e367568ba3dd88b8a2c30fb7ec083e3/raw/script.user.js
// @downloadURL https://gist.githubusercontent.com/Sigmanor/8e367568ba3dd88b8a2c30fb7ec083e3/raw/script.user.js
// @author sigmanor
// @homepageURL https://github.com/Sigmanor
// @match https://marketplace.visualstudio.com/*
@aamiaa
aamiaa / CompleteDiscordQuest.md
Last active March 14, 2026 22:40
Complete Recent Discord Quest

Complete Recent Discord Quest

Note

This does not works in browser for quests which require you to play a game! Use the desktop app to complete those.

How to use this script:

  1. Accept a quest under the Quests tab
  2. Press Ctrl+Shift+I to open DevTools
  3. Go to the Console tab
  4. Paste the following code and hit enter:
@o11c
o11c / every-vm-tutorial-you-ever-studied-is-wrong.md
Last active February 24, 2026 21:14
Every VM tutorial you ever studied is wrong (and other compiler/interpreter-related knowledge)

Note: this was originally several Reddit posts, chained and linked. But now that Reddit is dying I've finally moved them out. Sorry about the mess.


URL: https://www.reddit.com/r/ProgrammingLanguages/comments/up206c/stack_machines_for_compilers/i8ikupw/ Summary: stack-based vs register-based in general.

There are a wide variety of machines that can be described as "stack-based" or "register-based", but not all of them are practical. And there are a lot of other decisions that affect that practicality (do variables have names or only address/indexes? fixed-width or variable-width instructions? are you interpreting the bytecode (and if so, are you using machine stack frames?) or turning it into machine code? how many registers are there, and how many are special? how do you represent multiple types of variable? how many scopes are there(various kinds of global, local, member, ...)? how much effort/complexity can you afford to put into your machine? etc.)

  • a pure stack VM can only access the top elemen
@YodaEmbedding
YodaEmbedding / .clang-format
Last active January 16, 2026 07:49
.clang-format for Rust style (rustfmt)
AccessModifierOffset: -2
AlignAfterOpenBracket: BlockIndent # New in v14. For earlier clang-format versions, use AlwaysBreak instead.
AlignConsecutiveMacros: false
AlignConsecutiveAssignments: false
AlignConsecutiveDeclarations: false
AlignEscapedNewlines: DontAlign
AlignOperands: false
AlignTrailingComments: false
AllowAllArgumentsOnNextLine: false
AllowAllConstructorInitializersOnNextLine: false
@juliyvchirkov
juliyvchirkov / macos-sudo-nopasswd.sh
Last active February 10, 2026 03:26
bash: sudo without a password on macOS
#!/bin/bash
#
# Enable nopasswd mode for sudo on macOS from the userspace in fast and totally non-interactive way
#
# Type the password last time to apply the new mode and forget it for any console task for ages
# Use the rollback to restore password protection
#
# Developed and tested by https://juliyvchirkov.github.io/ under the MIT license on macOS Big Sur 11.2.0
#
# Get latest version at https://gist.github.com/juliyvchirkov/3ca76582ed6b6a8366c9e7d60644960d