Skip to content

Instantly share code, notes, and snippets.

#include <stdio.h>
#include <windows.h>
#include <winternl.h>
#pragma comment(lib, "bcrypt.lib")
#pragma comment(lib, "ntdll.lib")
typedef struct _FEISTEL64_ROUND_DATA {
DWORD FunctionID;
DWORD Rand0;
@gastonmorixe
gastonmorixe / feature-flag-bypass-pure.mjs
Created January 26, 2026 08:04
Claude Code Feature Flag Bypass - Enable swarm features with npx
/**
* Pure Feature Flag Bypass Injector (Zero Disk Writes)
*
* Enables swarm features by intercepting fs.readFileSync calls and injecting
* the tengu_brass_pebble feature flag into the returned settings content.
*
* This version:
* - NEVER writes to ~/.claude/ or any global path
* - NEVER writes log files to disk
* - Only modifies data IN MEMORY
@willccbb
willccbb / grpo_demo.py
Last active February 4, 2026 02:26
GRPO Llama-1B
# train_grpo.py
#
# See https://github.com/willccbb/verifiers for ongoing developments
#
"""
citation:
@misc{brown2025grpodemo,
title={Granular Format Rewards for Eliciting Mathematical Reasoning Capabilities in Small Language Models},
author={Brown, William},
@Maharshi-Pandya
Maharshi-Pandya / contemplative-llms.txt
Last active February 4, 2026 01:17
"Contemplative reasoning" response style for LLMs like Claude and GPT-4o
You are an assistant that engages in extremely thorough, self-questioning reasoning. Your approach mirrors human stream-of-consciousness thinking, characterized by continuous exploration, self-doubt, and iterative analysis.
## Core Principles
1. EXPLORATION OVER CONCLUSION
- Never rush to conclusions
- Keep exploring until a solution emerges naturally from the evidence
- If uncertain, continue reasoning indefinitely
- Question every assumption and inference
<Forming_Correct_Responses>
1. **Thinking Process:**
- KonspecterAI uses \`<Thinking />\` tags to internally process and determine the best approach for generating responses.
- It assesses whether to utilize the \`getInformation\` tool based on the availability of information within the provided documents.
- **In any ambiguous or unclear situation, KonspecterAI should automatically invoke the \`getInformation\` tool to retrieve relevant information.**
2. **Summarization Guidelines:**
- Follow the user's instructions regarding the type and scope of the summary.
- Ensure factual accuracy and maintain the original context and language of the source material.
import os
from tqdm import tqdm
import ollama
directory = 'C:\\tools\\training\\illustration_pending'
model_name = 'llama3:8b-instruct-q6_K'
def rewrite_description(description):
"""
@Attunewise
Attunewise / ConvertFunctions.py
Last active April 24, 2024 01:44
Convert OpenAI functions to system prompt that works with other LLMs
# Converts OpenAI compatible function calling JSON schema to a prompt that instructs the LLM to return
# a JSON object that is a choice of a function call conforming to one of the functions or a message reply
def convert_schema_to_typescript(schema):
if not schema:
return 'any'
if '$ref' in schema:
return schema['$ref'].replace('#/definitions/', '')
@HackingLZ
HackingLZ / altitude.py
Created April 19, 2023 13:29
altitude alert
import csv
import requests
import argparse
from bs4 import BeautifulSoup
from colorama import Fore, Style, init
init(autoreset=True)
known_security_vendors = [
'symantec', 'mcafee', 'trendmicro', 'kaspersky', 'bitdefender',
@realoriginal
realoriginal / Entry.c
Created March 29, 2023 16:40
TLDR: How a socks proxy client is written to tunnel connections from a 'teamserver' to an agent.
/*!
*
* RPROXICMP
*
* GuidePoint Security LLC
*
* Threat and Attack Simulation Team
*
!*/
@mfd
mfd / teams.sh
Last active February 6, 2026 20:03
Download any video from Microsoft Teams, SharePoint and OneDrive
2teams() {
NOW=$(date +"%Y-%m-%d_%H%M")
if [ ! -z $2 ] ; then
echo $NOW"_"$2.mp4
ffmpeg -i $1 -codec copy $NOW"_"$2.mp4
else
echo $NOW"_teamsvid".mp4
ffmpeg -i $1 -codec copy $NOW"_teamsvideo".mp4
fi
}