Skip to content

Instantly share code, notes, and snippets.

@gubenkoved
gubenkoved / TolerantEnumConverter.cs
Last active July 12, 2025 07:35
Tolerant JSON.NET enum converter
/// <summary>
/// Tolerant Enum converter. Based on code in the StackOverflow post below, but adds EnumMember attribute support.
/// http://stackoverflow.com/questions/22752075/how-can-i-ignore-unknown-enum-values-during-json-deserialization
/// </summary>
public class TolerantEnumConverter : JsonConverter
{
[ThreadStatic]
private static Dictionary<Type, Dictionary<string, object>> _fromValueMap; // string representation to Enum value map
[ThreadStatic]
@sergeyk
sergeyk / explore-plan-code-test.md
Last active July 12, 2025 07:18
Explore - Plan - Code - Test Workflow

At the end of this message, I will ask you to do something. Please follow the "Explore, Plan, Code, Test" workflow when you start.

Explore

First, use parallel subagents to find and read all files that may be useful for implementing the ticket, either as examples or as edit targets. The subagents should return relevant file paths, and any other info that may be useful.

Plan

Next, think hard and write up a detailed implementation plan. Don't forget to include tests, lookbook components, and documentation. Use your judgement as to what is necessary, given the standards of this repo.

If there are things you are not sure about, use parallel subagents to do some web research. They should only return useful information, no noise.

@ishad0w
ishad0w / aveyo_edge_removal.bat
Last active July 12, 2025 07:18
AveYo (Microsoft Edge Removal)
@(set "0=%~f0"^)#) & powershell -nop -c iex([io.file]::ReadAllText($env:0)) & exit /b
#:: just copy-paste into powershell - it's a standalone hybrid script
sp 'HKCU:\Volatile Environment' 'Edge_Removal' @'
$also_remove_webview = 1
## why also remove webview? because it is 2 copies of edge, not a slimmed down CEF, and is driving bloated web apps
$also_remove_widgets = 1
## why also remove widgets? because it is a webview glorified ad portal on msn and bing news cathering to stupid people
$also_remove_xsocial = 1
## why also remove xsocial? because it starts webview setup every boot - xbox gamebar will still work without the social crap
@nin-jat
nin-jat / FreeCamera.gd
Last active July 12, 2025 07:07
A FreeCamera for godot. Add it to a camera node and add some input actions for WASD. Supports gamepads.
extends Camera
# How fast the camera speeds up to the moveSpeed and slows down to zero.
export var acceleration = 50.0
# The top speed of the camera.
export var moveSpeed = 8.0
# The speed of the mouse input.
export var mouseSpeed = 300.0
@appleboy
appleboy / docker.md
Created November 15, 2017 01:21
Docker 容器技術教學營

課程簡介

[Docker][2] 是一個開源專案,原始碼放在 [GitHub][1] 上面做維護,支援多平台,從筆電到公、私有雲上能進行快速部署輕量、獨立的作業環境。 Docker 使用 Linux 核心中的功能,Namespace 及 Control Groups (cgroups) 等,來達到建置獨立的環境及控制 CPU 、Memory 、網路等資源。 為什麼要使用 Docker 技術?Docker 帶給我們在工作環境上有什麼樣的優勢:

  1. 更快速的交付和部署
  2. 更有效率的虛擬化
  3. 更輕鬆的遷移和擴展
  4. 更簡單的管理
@janclarin
janclarin / download_gifs.py
Last active July 12, 2025 06:53
Download Wikipedia Kana Stroke Animation Gifs
from bs4 import BeautifulSoup
from urllib import request, parse
BASE_FILE_URL = 'https://commons.wikimedia.org/wiki/File:'
# First param is {Hiragana, Katakana}. Second param is {い, か}
BASE_FILE_NAME = '{}_{}_stroke_order_animation.gif'
HIRAGANA = 'Hiragana'
KATAKANA = 'Katakana'
KANA = [
/// <summary>
/// A listing of ASCII control characters for readability.
/// </summary>
public static class AsciiControlChars
{
/// <summary>
/// Usually indicates the end of a string.
/// </summary>
public const char Nul = (char)0x00;
@dreamorosi
dreamorosi / readme.md
Created October 17, 2023 12:18
Install neovim on Amazon Linux 2023

Build & Install neovim

AL2023 doesn't have a distribution for neovim, so you need to build it from source - for more info see here.

Install prerequisites:

sudo yum -y install ninja-build cmake gcc make unzip gettext curl git --allowerasing

Clone repository:

@arijit7899
arijit7899 / mee.js
Last active July 12, 2025 06:24 — forked from Mr-rabbit-xd/mee.js
const { bot, jidToNum } = require('../lib/')
bot(
{
pattern: 'mee ?(.*)',
fromMe: true,
desc: 'Tags yourself',
type: 'audio',
},
async (message) => {
{
"success": true,
"credits_left": 100,
"rate_limit_left": 100,
"person": {
"publicIdentifier": "eden-marco",
"linkedInIdentifier": "ACoAABx4394BeQhL15XiUqnQf7d9fobHXw13SMo",
"memberIdentifier": "477683678",
"linkedInUrl": "https://www.linkedin.com/in/eden-marco",
"firstName": "Eden",