Skip to content

Instantly share code, notes, and snippets.

$items = Get-ItemProperty -Path 'Registry::HKey_Local_Machine\Software\Microsoft\Windows NT\CurrentVersion\ProfileList\*'
Foreach ($item in $items) {
$objUser = New-Object System.Security.Principal.SecurityIdentifier($item.PSChildName)
$objName = $objUser.Translate([System.Security.Principal.NTAccount])
$item.PSChildName = $objName.value
}
Write-Output $items | Select-Object -Property PSChildName, ProfileImagePath
@raspi
raspi / enable-all-advanced-power-settings.ps1
Last active November 29, 2026 02:19
Enable all advanced power settings in Windows.
# List all possible power config GUIDs in Windows
# Run: this-script.ps1 | Out-File powercfg.ps1
# Then edit and run powercfg.ps1
# (c) Pekka "raspi" Järvinen 2017
$powerSettingTable = Get-WmiObject -Namespace root\cimv2\power -Class Win32_PowerSetting
$powerSettingInSubgroubTable = Get-WmiObject -Namespace root\cimv2\power -Class Win32_PowerSettingInSubgroup
Get-WmiObject -Namespace root\cimv2\power -Class Win32_PowerSettingCapabilities | ForEach-Object {
$tmp = $_.ManagedElement
@AndrewBucklin
AndrewBucklin / win11-upgrade.ps1
Last active November 29, 2026 02:15
Windows 11 - Upgrade
<#
win11.ps1 - Windows 11 25H2 upgrade helper
Run via: [Net.ServicePointManager]::SecurityProtocol='Tls12'; iex (irm '<raw-url>')
Designed to be FETCHED, not pasted directly into a console.
#>
$ScriptVersion = '2026.09.16.1'
# ---------- Settings (override by setting these BEFORE the iex line) ----------
if (-not (Test-Path variable:LaunchUpgrade)) { $LaunchUpgrade = $true } # $false = monitor only
@Scumtron
Scumtron / 99-sysctl.conf
Last active November 29, 2026 01:45
/etc/sysctl.d/99-sysctl.conf
# Kernel sysctl configuration file for Linux
# Version 1.11 - 2015-07-07
# Aysad Kozanoglu Aysad K.
# This file should be saved as /etc/sysctl.conf and can be activated using the command:
# sysctl -e -p /etc/sysctl.conf
#
# For binary values, 0 is disabled, 1 is enabled. See sysctl(8) and sysctl.conf(5) for more details.
#
# Tested with: Ubuntu 14.04 LTS kernel version 3.13
# Debian 7 kernel version 3.2

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.

@cxfksword
cxfksword / iptv.txt
Last active November 29, 2026 01:08
iptv
CCTV-13新闻,http://yd-m-l.cztv.com/channels/lantian/channel18/1080p.m3u8
香港开电视,https://php.52sf.ga/@Curly_MouseIPTV-Potato.php?tid=1&id=23
翡翠台,http://113.64.147.40:808/hls/67/index.m3u8
翡翠台,https://cdn.hklive.tv/xxxx/81/index.m3u8
翡翠台,http://dadiao.akjp.cn:1936/0.m3u8
翡翠台,http://2022.stream-link.org/live/131217689
翡翠台,https://pull-l3-cny.douyincdn.com/live/stream-19882782023022818478.m3u8
翡翠台,http://r.jdshipin.com/62WM7
明珠台,https://pull-l3-cny.douyincdn.com/live/stream-19882782022122523487.m3u8
@MangaD
MangaD / garbage_collection.md
Last active November 29, 2026 00:55
Garbage Collection in Programming: A Comprehensive Guide

Garbage Collection in Programming: A Comprehensive Guide

CC0

Disclaimer: ChatGPT generated document.

Garbage collection (GC) is automatic memory management. Its job is to determine which dynamically allocated objects a running program can no longer use and reclaim their memory.

At first glance, that sounds simple: “find unused objects and delete them.” In practice, garbage collection is a deep subject involving graph theory, runtime systems, operating systems, CPU caches, concurrency, latency, memory fragmentation, compiler design, and application architecture.

@cruithne3753
cruithne3753 / Hide_Upgrade_Your_Plan_ALL.reg
Last active November 29, 2026 00:50
Hides the 'Upgrade your plan' button in Office 2021/2024 AND Microsoft 365. (Includes Restore option as well.)
Windows Registry Editor Version 5.00
; Hides the 'Upgrade your plan' button in Office 2021/2024 AND Microsoft 365.
; Sets three Office feature switches to false; Office ignores the ones that don't apply to your license.
; No admin rights needed (current user only). Close and reopen Office apps after importing.
; To undo: import Restore_Upgrade_Your_Plan_ALL.reg
[HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Common\ExperimentConfigs\ExternalFeatureOverrides\word]
"Microsoft.Office.Licensing.ShowPerpetualUpgrade"="false"
"Microsoft.Office.Licensing.EnablePerpetualUpgrade"="false"
@arunsanna
arunsanna / gist:0a91c6ff05d737f0daa7c7ac3d93bd1e
Created July 10, 2025 21:14
Claude-Code Integration with Gemini
## Prompt to Add Mandatory Gemini CLI Integration for Large Files
Please add the following functionality to my Claude Code configuration:
1. Create a MANDATORY rule that forces Claude to use Gemini CLI for any file larger than 300 lines
2. Claude must NEVER analyze large files itself - it MUST delegate to Gemini
3. All Gemini commands should run in background with output logging
4. Include "TASK COMPLETED" in all Gemini prompts for completion monitoring
5. Add monitoring loops that check for "TASK COMPLETED" in the output
@arunsanna
arunsanna / claude-gemini-integration-prompt.md
Created July 10, 2025 22:08
Prompt to add mandatory Gemini CLI integration for large file analysis in Claude Code

Claude Code + Gemini CLI Integration Prompt

Copy and paste this entire prompt to add mandatory Gemini CLI integration for large file analysis in Claude Code.


Prompt: Add Mandatory Gemini CLI Integration for Large Files

Please add the following mandatory rules to my CLAUDE.md configuration that force Claude to use Gemini CLI for analyzing large files: