Skip to content

Instantly share code, notes, and snippets.

@PBhadoo
PBhadoo / Clean-IDM-Registry.bat
Created November 24, 2026 10:50
Cleans up IDM Registry - by Claude
@echo off
:: ============================================================
:: Clean-IDM-Registry.bat - REGISTRY ONLY cleanup of Internet
:: Download Manager leftovers (use after IDM is already
:: uninstalled). Does not touch any files or folders.
:: Double-click to run (asks for Administrator itself).
:: Dry run (changes nothing): Clean-IDM-Registry.bat /dry
:: ============================================================
setlocal
net session >nul 2>&1
@Tharun8951
Tharun8951 / lexer.cpp
Created March 30, 2024 20:12
A C++ lexer for a basic programming language. Tokenizes source code into various token types such as numbers, identifiers, operators, and keywords. Includes functions for splitting strings, checking for numbers and alphabetic characters, and handling skippable characters. The lexer reads input from a file, tokenizes it, and prints the resulting…
#include <iostream>
#include <string>
#include <vector>
#include <map>
#include <cctype>
#include <fstream>
#include <sstream>
#include <cstring>
#include <cstdlib>
<!DOCTYPE html>
<html>
<head>
<title></title>
<meta charset="utf-8" />
<script src="Scripts/jquery-1.9.1.min.js"></script>
<link href="Content/bootstrap.min.css" rel="stylesheet" />
<script src="Scripts/isRockFx.js"></script>
<script>
$(function () {
Create my "WORK WRAPPED" for the current calendar year, from January 1 until today, in the style of Spotify Wrapped. The result will be shared publicly on LinkedIn. Follow these instructions exactly and do not make your own interpretations. All text on the cards and in the LinkedIn post must be in English.
=== 1. PRIVACY (overrides everything else) ===
- Person names may ONLY appear on card 3 (chat buddies) and card 6 (summary). This applies to colleagues as well as external people and guests.
- Show first name and last name only. NEVER show a person's company, organization, email address, email domain or job title. Never show labels such as "(Guest)", "(External)" or a company name in parentheses. Remove such additions from the name before showing it.
- Never show bots or apps.
- NEVER show names of customers, companies, projects, meetings, email subjects, files or channels. Never quote any content.
- Never count calendar items marked private, confidential or out of office (OOF).
- If a number cannot be ret
@vasanthk
vasanthk / System Design.md
Last active December 4, 2026 03:05
System Design Cheatsheet

System Design Cheatsheet

Picking the right architecture = Picking the right battles + Managing trade-offs

Basic Steps

  1. Clarify and agree on the scope of the system
  • User cases (description of sequences of events that, taken together, lead to a system doing something useful)
    • Who is going to use it?
    • How are they going to use it?
@LukeberryPi
LukeberryPi / settings.json
Last active December 4, 2026 03:01
disable all italics vscode
"editor.tokenColorCustomizations": {
"textMateRules": [
{
"scope": [
"comment",
"comment.block",
"comment.block.documentation",
"comment.line",
"constant",
"constant.character",
@HallyG
HallyG / icon_viewer.sqf
Created November 10, 2020 19:20
Arma 3 Icon Viewer
fn_iconViewer = {
params [
["_mode", "", [""]],
["_args", [], [[]]]
];
if (!hasInterface) exitWith {};
disableSerialization;
private _fnc_GRID_X = {
@ehsan18t
ehsan18t / grand-cp-list.md
Last active December 4, 2026 02:49
This is a list of programming problems from various sites (like LeetCode, Codeforces) and designed in way to take you from zero. All you need to do is follow the serial and solve problems.

🏆 The Ultimate Competitive Programming Roadmap

From 800 Codeforces Rating to Candidate Master (2200+)

655+ Problems | Multi-Platform | Serial Progression

This roadmap is designed for someone with ~800 Codeforces rating who wants to systematically level up. Follow problems serially from #1 onwards - the order is carefully crafted so each problem builds on previous concepts.


📚 Philosophy & How to Practice

@Youngv
Youngv / U20+OpenWrt.md
Created April 5, 2025 08:11
OpenWrt 连接飞猫 U20 之后局域网设备流量分流设置

下面是设置和复原网络规则的完整命令集合。你可以直接按照以下步骤运行每条命令,快速实现配置和清理。


设置规则

以下命令将指定设备 192.168.1.6 的流量通过 USB 网口 eth4 (网关 192.168.88.1) 出网。

1. 创建 USB 路由表

将路由表名称 usb_route 写入 /etc/iproute2/rt_tables 文件:

@jjesusfilho
jjesusfilho / README.md
Created October 13, 2026 18:55
Leitura de petições iniciais em PDF: triagem de páginas (texto nativo x leitura visual) e transcrição com Gemini

Leitura de petições iniciais em PDF: texto nativo ou leitura visual

Duas etapas:

  1. triagem_paginas.py (só pymupdf, processamento local): para cada página, extrai o texto nativo e decide se ela precisa de leitura visual. Vai para leitura visual a página que tem imagem de conteúdo ou quase nenhum texto. Não contam como imagem de conteúdo:
    • imagens que se repetem em 3 ou mais páginas (timbre, marca d'água), detectadas pelo hash do conteúdo, porque alguns PDFs re-embutem o mesmo timbre com xref novo em cada página;
    • imagens pequenas (menos de 0,15 Mpx: logotipos, assinaturas);