Skip to content

Instantly share code, notes, and snippets.

@jehugaleahsa
jehugaleahsa / loc.ps1
Created August 18, 2017 17:27
A simple PowerShell script to count the lines of code in a solution
$path = "C:\path\to\solution\folder"
$files = Get-ChildItem -Path $path -Include *.cs,*.ts,*.vb -Recurse `
| ? { $_.FullName -notmatch ".*\\obj\\.*" } `
| ? { $_.FullName -notmatch ".*\\node_modules\.*" }
$shortNames = $files | % {
$fullName = $_.FullName
$lines = [System.IO.File]::ReadAllLines($fullName)
$lines = $lines | ? { -not [System.String]::IsNullOrWhiteSpace($_) }
@wikiti
wikiti / !FAB-CLAIM-README.md
Last active November 14, 2026 04:17
A script to automatically add all Quixel MegaScans items to your FAB account

Important

As per the beginning of 2025, Quixel assets are no longer free to claim, so this script is not useful anymore. Comments have been disabled due to this reason.

Note

This script was built for educational purposes. Due to how FAB APIs are built to handle search pagination, all assets might not be claimable through this script. With the last script update, a total of ~600 scanned pages, with ~14k assets. Please note that, by clicking on the "Claim All" quixel button, you'll already have claimed all assets for future free usage, beyond 2024 (official response). This script simply makes sure that assets are added to a library.

Script to add all quixel megascan items to your FAB account

As quixel megascan items will stop being free after 2024. So, this script will go through all Quixel MegaScan items and add them to your account. Quixel would be working on

LLM Wiki

A pattern for building personal knowledge bases using LLMs.

This is an idea file, it is designed to be copy pasted to your own LLM Agent (e.g. OpenAI Codex, Claude Code, OpenCode / Pi, or etc.). Its goal is to communicate the high level idea, but your agent will build out the specifics in collaboration with you.

The core idea

Most people's experience with LLMs and documents looks like RAG: you upload a collection of files, the LLM retrieves relevant chunks at query time, and generates an answer. This works, but the LLM is rediscovering knowledge from scratch on every question. There's no accumulation. Ask a subtle question that requires synthesizing five documents, and the LLM has to find and piece together the relevant fragments every time. Nothing is built up. NotebookLM, ChatGPT file uploads, and most RAG systems work this way.

# Source: https://gist.github.com/c7cdfef142bd65cc744789d3c1e90170
###########################################
# Talos Linux: OS Designed For Kubernetes #
# https://youtu.be/iEFb2Zg4xUg #
###########################################
# Additional Info:
# - Talos Linux: https://www.talos.dev/
# - How To Create, Provision, And Operate Kubernetes With Cluster API (CAPI): https://youtu.be/8yUDUhZ6ako
# Source: https://gist.github.com/c7cdfef142bd65cc744789d3c1e90170
###########################################
# Talos Linux: OS Designed For Kubernetes #
# https://youtu.be/iEFb2Zg4xUg #
###########################################
# Additional Info:
# - Talos Linux: https://www.talos.dev/
# - How To Create, Provision, And Operate Kubernetes With Cluster API (CAPI): https://youtu.be/8yUDUhZ6ako
@quepasaeltoro
quepasaeltoro / CurseForge-NoAds.md
Created October 17, 2026 07:39
Hide CurseForge ads from the launcher

CurseForge (no ads)

Starts the CurseForge desktop app for Windows with the ad panel on the right hidden. No CurseForge files are changed.

Install

  1. On this page, click Raw in the top right corner of the CurseForge-NoAds.ps1 box below.
  2. Press Ctrl+A to select all the text, then Ctrl+C to copy it.
  3. Open Notepad and press Ctrl+V to paste.
  4. Click File → Save as and:
@adasThePrime
adasThePrime / README.md
Last active November 14, 2026 04:03
A complete guide to installing Windows 11 IoT LTSC - a lightweight, bloat-free edition with no ads, no forced updates, and relaxed hardware requirements. Perfect for Windows 10 users whose devices don't meet standard Windows 11 requirements, or anyone seeking a clean, stable Windows experience without the bloat.

Windows 11 IoT LTSC: The Edition That Doesn't Suck

Stop chasing Windows 11 alternatives or experimenting with risky third-party builds to upgrade from Windows 10 or trying to debloat mainstream editions. The ideal solution is already available: Windows 11 IoT LTSC.

It's a lightweight, stable, and bloat-free edition of Windows 11 that's perfect for productivity, development, or even gaming without the unnecessary apps, ads, or forced updates found in mainstream editions. Best of all, if your PC runs Windows 10 well, it'll handle Windows 11 IoT LTSC just as smoothly, with no performance drop or compatibility issues.

In this guide, I'll walk you through everything you need to know about Windows 11 IoT LTSC: how to prepare your system, install the OS, and configure it for daily use. By the end, you'll have a streamlined Windows setup perfect for productivity, development, or even gaming without the baggage of mainstream editions.

At the time of writing, the latest releas