Skip to content

Instantly share code, notes, and snippets.

View Riddle1001's full-sized avatar

Riddle Riddle1001

View GitHub Profile
@Riddle1001
Riddle1001 / gmod_gamemovement.cpp
Created May 20, 2026 12:49
gmod's gamemovement reversed with Claude & Ghidra MCP
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
// $NoKeywords: $
//=============================================================================//
#include "cbase.h"
#include "gamemovement.h"
#include "in_buttons.h"
#include <stdarg.h>
@Riddle1001
Riddle1001 / sv_realms.lua
Last active November 29, 2024 17:00
a library for creating separate dimensions for entities and players
--[[
RealmSystem Library by Riddle
==================
a library for creating separate dimensions for entities and players
Basic Example:
-- Create two realms
local build = RealmSystem:CreateRealm("builder")
local play = RealmSystem:CreateRealm("play")
@Riddle1001
Riddle1001 / bcheck-to-caido-sdk.txt
Created May 19, 2024 18:23
BCheck to Caido SDK transpile prompt
Console
Log messages at different levels:
debug(message: any): Debug message.
log(message: any): Informational message.
warn(message: any): Warning message.
error(message: any): Error message.
All messages are logged in the backend logs. See the bug reporting docs.
Body
const MAX_BODY_CHARS = Infinity; // Skips the check if the response body is longer than this, e.g MAX_BODY_CHARS = 10000
const triggerData = [
// Add your triggers here, don't forget to escape special characters in the pattern
// Having many triggers and encountering a long response can lead to very long response times
{
pattern: "\\.php on line [0-9]+",
technology: "PHP",
severity: "Low",
status: "Certain",
cause: "Error in PHP code on specified line",
@Riddle1001
Riddle1001 / caido-sdk-ai-generated-docs.md
Last active May 11, 2024 19:19
Cadio documentation of the javascript node generated using AI

Caido.io SDK Documentation

Welcome to the Caido.io SDK! This SDK provides a simple way to interact with the Caido.io platform from your TypeScript or JavaScript code.

Console

The Console interface allows you to log messages at different levels:

  • debug(message: any): Log a debug message. This is useful for detailed information that is only needed when debugging issues.
  • log(message: any): Log a general informational message.
@Riddle1001
Riddle1001 / 1
Created December 14, 2023 00:48
test
test
@Riddle1001
Riddle1001 / toggleterm.sh
Created October 27, 2023 18:57
ToggleTerm optimizes workflow by swiftly toggling your existing tmux terminal with Ctrl+Alt+T, avoiding excess windows.
# Code generated by GPT4
# Set this script on a keybind, I chose ctrl + alt + t (the default that opens a new terminal)
# created because I create and leave left over terminals to much and I use tmux, faster than alt + tabbing, etc.
#!/bin/bash
# Define the command to launch your terminal.
LAUNCH_TERMINAL="gnome-terminal"
# Get the window ID of the current active window.
alert(1)
body {
background: yellow !important;
}
<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
>
<channel>