Skip to content

Instantly share code, notes, and snippets.

View f1shy-dev's full-sized avatar
💻
Coding!

f1shy-dev

💻
Coding!
View GitHub Profile
@f1shy-dev
f1shy-dev / patch_claude_code_haiku_call.ts
Created January 9, 2026 00:59
Patch out haiku-based security checks in Claude Code
#!/usr/bin/env bun
/**
* Resilient AST-based patcher for Generic Code CLI
*
* This patcher uses Babel to parse and transform the CLI bundle,
* making certain LLM-based checks configurable via environment variables.
*
* The patcher finds code by stable identifiers (querySource strings used for telemetry)
* rather than function names, making it resilient to minification and refactoring.
*
import { DelayedPromise } from "@/lib/utils/delayed-promise";
import type {
generateText,
LanguageModel,
LanguageModelUsage,
TextStreamPart,
ToolSet,
} from "ai";
import { streamText } from "ai";
@f1shy-dev
f1shy-dev / best_SAE_trick.md
Last active December 17, 2025 08:50
sneakyf1shy's apple intelligence tutorial

the sneakyf1shy apple intelligence tutorial v2.0

Warning

This is patched as of iOS/iPadOS 18.1 DevBeta 5. If you want to follow this, stay on Beta 4.

This actually downloads the models, and is NOT just new SiriUI. Hence, this process is complex and probably not worth it.

⚠️ Prepare to be disappointed and annoyed, and have your time wasted! ⚠️

  • What does not work: Writing Tools, Memories, Reduce Interruptions, Image Eraser and other tools that are within official Apple Intelligence on supported devices.
{"name":"moo","settings":"{\"settings\":\"{\\n \\\"todo-tree.tree.showScanModeButton\\\": false,\\n \\\"workbench.startupEditor\\\": \\\"newUntitledFile\\\",\\n \\\"editor.suggestSelection\\\": \\\"first\\\",\\n \\\"explorer.confirmDelete\\\": false,\\n \\\"workbench.editor.untitled.hint\\\": \\\"hidden\\\",\\n \\\"terminal.external.osxExec\\\": \\\"Hyper.app\\\",\\n \\\"remote.SSH.defaultExtensions\\\": [\\\"gitpod.gitpod-remote-ssh\\\"],\\n \\\"dart.openDevTools\\\": \\\"flutter\\\",\\n \\\"dart.debugExternalLibraries\\\": false,\\n \\\"[ignore]\\\": {\\n \\\"editor.defaultFormatter\\\": \\\"foxundermoon.shell-format\\\"\\n },\\n \\\"vsicons.dontShowNewVersionMessage\\\": true,\\n \\\"dart.openTestView\\\": [\\\"testRunStart\\\"],\\n \\\"[postcss]\\\": {\\n \\\"editor.defaultFormatter\\\": \\\"esbenp.prettier-vscode\\\"\\n },\\n \\\"files.autoSave\\\": \\\"onWindowChange\\\",\\n \\\"editor.codeActionsOnSave\\\": {\\n \\\"source.fixAll.eslint\\\": true\\n },\\n \\\"workbench.iconT
@f1shy-dev
f1shy-dev / elevate.bat
Created October 10, 2021 17:31
elevate to system with one line!
echo "test"
@f1shy-dev
f1shy-dev / f1shtheme.theme.css
Created August 2, 2021 13:27
my BD theme (frostedglass)
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;300;400;500;700&display=swap');
@import url('https://discordstyles.github.io/FrostedGlass/dist/FrostedGlass.css');
@import url('https://discordstyles.github.io/Addons/windows-titlebar.css');
:root {
--background-image: url('https://i.imgur.com/kYW2H5C.jpeg');
--background-image-blur: 3px;
--background-image-size: cover;
--background-image-position: center;
--popout-modal-image: var(--background-image);
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"blocks": [
{
"type": "prompt",
"alignment": "right",
"segments": [
{
"type": "path",
"style": "diamond",
unset zle_bracketed_paste
eval "$(oh-my-posh --init --shell zsh --config ~/.theme.omp.json)"
@f1shy-dev
f1shy-dev / .hyper.js
Created June 18, 2021 10:51
hyper config
// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See https://hyper.is#cfg for all currently supported options.
module.exports = {
config: {
// choose either `'stable'` for receiving highly polished,
// or `'canary'` for less polished but more frequent updates
updateChannel: 'canary',