Skip to content

Instantly share code, notes, and snippets.

View ericbfriday's full-sized avatar

Eric Friday ericbfriday

  • NMDP
  • Minneapolis, MN
View GitHub Profile
@ericbfriday
ericbfriday / preprocessor_fun.h
Created September 24, 2025 15:20 — forked from aras-p/preprocessor_fun.h
Things to commit just before leaving your job
// Just before switching jobs:
// Add one of these.
// Preferably into the same commit where you do a large merge.
//
// This started as a tweet with a joke of "C++ pro-tip: #define private public",
// and then it quickly escalated into more and more evil suggestions.
// I've tried to capture interesting suggestions here.
//
// Contributors: @r2d2rigo, @joeldevahl, @msinilo, @_Humus_,
// @YuriyODonnell, @rygorous, @cmuratori, @mike_acton, @grumpygiant,
@ericbfriday
ericbfriday / cli.mjs
Created August 5, 2025 09:35 — forked from leehanchung/cli.mjs
formatted claude code cli.mjs
This file has been truncated, but you can view the full file.
#!/usr/bin/env -S node --no-warnings=ExperimentalWarning --enable-source-maps
// Claude Code is a Beta product per Anthropic's Commercial Terms of Service.
// By using Claude Code, you agree that all code acceptance or rejection decisions you make,
// and the associated conversations in context, constitute Feedback under Anthropic's Commercial Terms,
// and may be used to improve Anthropic's products, including training models.
// You are responsible for reviewing any code suggestions before use.
// (c) Anthropic PBC. All rights reserved. Use is subject to Anthropic's Commercial Terms of Service (https://www.anthropic.com/legal/commercial-terms).
@ericbfriday
ericbfriday / claude_desktop_config.json
Created July 24, 2025 19:04 — forked from sotayamashita/claude_desktop_config.json
How to Run DeepWiki MCP Server on Claude Desktop for Volta Users
{
"mcpServers": {
"deepwiki": {
"command": "<TODO: Replace with output from `which -a npx` (use the Volta path)>",
"args": [
"-y",
"mcp-remote",
"https://mcp.deepwiki.com/sse"
]
}
// Note - Retrieved in 2025 via source: https://web.archive.org/web/20081021054308/http://www.battleforums.com/forums/diablo-hacking/104427-cloakdll-cpp.html
// Note - call from within your own DLL `CloakDLL(ProcessName, DLLName)`
// CloakDll - by Darawk - RealmGX.com
//
// The purpose of CloakDll is to allow the user to hide any loaded
// module from the windows API. It works by accessing the modules
// list stored in the PEB, and subsequently unlinking the module
// in question from all 4 of the doubly-linked lists that it's a
// node of. It then zeroes out the structure and the path/file
@ericbfriday
ericbfriday / mangosd.conf
Created October 3, 2024 03:18 — forked from cbrgm/mangosd.conf
cmangos config
#####################################
# MaNGOS Configuration file #
#####################################
[MangosdConf]
ConfVersion=2019020601
###################################################################################################################
# CONNECTIONS AND DIRECTORIES
#
@ericbfriday
ericbfriday / launch.json
Created August 28, 2019 04:38
.vscode launch configuration for Rust Debugging
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Guessing Game (Rust)",
"type": "cppvsdbg",
"request": "launch",
@ericbfriday
ericbfriday / do-not-go-gentle.txt
Last active June 5, 2019 16:55
Talk to Transformer - Do not go
Alright, so I found the underlying engine/model that the 'name cats with AI' uses. I was thinking it'd be funny if I fed in a poem with very serious meaning and traditional vignette. So I used the beginning of Dylan Thomas' Do Not Go Gentle Into the Good Night.
From: https://talktotransformer.com/
Do not go gentle into that good night,
Old age should burn and rave at close of day;
Rage, rage against the dying of the light.
Though wise men at their end know dark is right,
Because their words had forked no lightning they
Do not go gentle into that good night.