This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import type { Plugin } from "@opencode-ai/plugin" | |
| // Em dash (U+2014) and en dash (U+2013). | |
| const DASH_RE = /[\u2014\u2013]/ | |
| const SYSTEM_RULE = | |
| "Never use em dashes (—) or en dashes (–) in any file you write or edit. " + | |
| "Use a hyphen (-), a comma, or reword the sentence instead. " + | |
| "Writes/edits that introduce these characters will be rejected." |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """ | |
| title: Langfuse Filter Pipeline for v3 | |
| author: open-webui | |
| date: 2025-07-31 | |
| version: 0.0.1 | |
| license: MIT | |
| description: A filter pipeline that uses Langfuse v3. | |
| requirements: langfuse>=3.0.0 | |
| Fix applied 2026-06-14: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| """ | |
| Fetch model definitions from models.dev and upsert them into a local | |
| Langfuse instance via the public API. | |
| Usage: | |
| ./sync-models-to-langfuse --provider anthropic,openai | |
| ./sync-models-to-langfuse --provider all | |
| ./sync-models-to-langfuse --provider all --dry-run | |
| ./sync-models-to-langfuse --provider all --tokenizer openai |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==UserScript== | |
| // @name Google Auto Change to English | |
| // @namespace http://tampermonkey.net/ | |
| // @version 1.1 | |
| // @description Automatically clicks the "Change to English" link on Google.com, waiting for uBO to hide the cookie banner first. | |
| // @match *://*.google.com/* | |
| // @grant none | |
| // @run-at document-end | |
| // ==/UserScript== |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==UserScript== | |
| // @name YouTube Block "Experiencing interruptions?" Toast | |
| // @namespace http://tampermonkey.net/ | |
| // @version 3.0 | |
| // @match https://www.youtube.com/* | |
| // @run-at document-start | |
| // @grant none | |
| // ==/UserScript== | |
| (function () { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Script to create a private fork of a public GitHub repository | |
| # Usage: ./private_fork.sh <source_repo_url> <owner/new_repo_name> | |
| # Owner can be your username or an org name | |
| set -e | |
| # Colors for output | |
| RED='\033[0;31m' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| await (async () => { | |
| const $$ = document.querySelectorAll.bind(document); | |
| const $$$ = (selector, text) => [...$$(selector)].find(e => e.innerText === text); | |
| const sleep = async (ms) => new Promise(resolve => setTimeout(resolve, ms)); | |
| const rand = (min, max) => Math.floor(Math.random() * (max - min + 1) + min); | |
| if (!window.location.pathname.includes('your_activity/interactions/likes')) throw 'pls go to https://www.instagram.com/your_activity/interactions/likes'; | |
| if (!$$$('span', 'Oldest to newest')) throw 'pls enable oldest to newest sort'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * This is free and unencumbered software released into the public domain. | |
| * For more information, please refer to <http://unlicense.org/> | |
| */ | |
| import android.content.Context; | |
| import android.view.LayoutInflater; | |
| import android.view.View; | |
| import android.view.ViewGroup; | |
| import androidx.annotation.NonNull; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import 'dart:async'; | |
| import 'dart:io'; | |
| import 'dart:typed_data'; | |
| import 'package:dio/dio.dart'; | |
| typedef OnHttpClientCreate = HttpClient? Function(HttpClient client); | |
| /** | |
| * Copied verbatim from dio's io_adapter.dart and |