Skip to content

Instantly share code, notes, and snippets.

require "json"
require "fileutils"
require "cgi"
include FileUtils::Verbose
folder = 'C:\Users\hyrious\OneDrive\Apps\Violentmonkey' # <-- change to your backup folder place
index_file = 'Violentmonkey'
target = File.join __dir__, 'ViolentmonkeyExport'
mkdir_p target
@y0ngb1n
y0ngb1n / docker-registry-mirrors.md
Last active January 9, 2026 05:23
国内的 Docker Hub 镜像加速器,由国内教育机构与各大云服务商提供的镜像加速服务 | Dockerized 实践 https://github.com/y0ngb1n/dockerized
@critical
critical / opencode-fix.nix
Created January 9, 2026 05:10
OpenCode fix for Anthropic plans
{ inputs, ... }:
{
environment.systemPackages = [
(inputs.opencode.packages.${pkgs.stdenv.hostPlatform.system}.default.overrideAttrs (old: {
postPatch =
(old.postPatch or "")
+ ''
substituteInPlace packages/opencode/src/session/prompt.ts \
--replace 'tools[item.id]' 'tools[`oc_''${item.id}`]' \
--replace 'id: item.id' 'id: `oc_''${item.id}`'
/*
* Copyright 2026 Kyriakos Georgiopoulos
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software

Since the original creator aamiaa does not want new features or improvements added to their code, I created this gist with some quality-of-life improvements instead.

My version still fully respects the Discord API and does not bypass or abuse it.


Patch Notes

Patch 0.0

@inetic
inetic / async_result.cpp
Last active January 9, 2026 05:11
Example usage of boost::asio::async_result
// Example of how to use boost::asio::async_result
#include <iostream>
#include <boost/asio.hpp>
#if BOOST_VERSION >= 106600
template<typename CompletionToken>
typename boost::asio::async_result
<CompletionToken, void(boost::system::error_code, std::string)>::return_type
@mariam-elelidy
mariam-elelidy / Finite-Sample Guarantees for ML Predictions.py
Last active January 9, 2026 05:02
Split conformal prediction dashboard that turns point predictions into finite-sample prediction intervals (≈90% coverage under exchangeability), reporting coverage/interval width trade-offs and stability across multiple seeds via terminal tensor outputs.
import time
import numpy as np
import torch
def ridge_fit_closed_form(X: np.ndarray, y: np.ndarray, lam: float = 1e-3) -> np.ndarray:
d = X.shape[1]
A = X.T @ X + lam * np.eye(d)
b = X.T @ y
return np.linalg.solve(A, b)
@mekeor
mekeor / init.lua
Created March 23, 2023 12:25
A Minimal Neovim Configuration for TypeScript Development featuring Lazy.nvim, LSP, Tree-Sitter, Prettier, Guess-Indent
---- about this neovim-configuration
-- - features: completion, lsp, tree-sitter, formatter, automatic configuration of indendation.
-- - goals: web development with typescript and tsx.
-- - themes: on mac, one-light; otherwise, gruvbox.
---- external setup
-- - install git and neovim. e.g., with guix as package-manager, run:
-- guix install git neovim
@sbolel
sbolel / instagram-comment-activity-deleter.js
Last active January 9, 2026 05:00
Instagram Comment Activity Deleter: Automate the deletion of all your Instagram comments from the 'Your Activity' section. Perfect for quick digital clean-up.
/**
* This script automates the process of deleting your own Instagram comments.
* It deletes comments in batches to avoid hitting rate limits or breaking the page.
*
* WARNING: This function directly manipulates the DOM and depends on the current HTML
* structure of Instagram's website to work. If Instagram implements changes to the
* activity page layout, structure, or functionality, this script may break or cause
* unexpected behavior. Use at your own risk and always review code before running it.
*
* How to use:
@levelsio
levelsio / 💁‍♀️ Karen Bot by @levelsio
Last active January 9, 2026 05:42
💁‍♀️ Karen Bot is an AI robot that lets you report problems in your neighborhood or city to your local city council
<?php
// Karen Bot by @levelsio
//
// ask Claude Code or Cursor to adapt it to your city
// mine is for Lisbon in Portuguese but it should work with any city and any language!
// save it as council.php and add a Nginx route /council on your server to use it
// make sure to add /council?key= and set a key below to use it privately
//
// more info: https://x.com/levelsio/status/2009011216132526407?s=20