Skip to content

Instantly share code, notes, and snippets.

@youknowriad
youknowriad / script-dependency-auditor.php
Created October 19, 2025 13:01
Audit WordPress Admin Page Scripts and Styles
<?php
/**
* Plugin Name: Script Dependency Auditor
* Plugin URI: https://github.com/yourusername/script-dependency-auditor
* Description: Audit and visualize the tree of JS script dependencies in the WordPress post editor. Add ?debug_scripts=true to any admin URL to see the dependency tree.
* Version: 1.0.0
* Author: Your Name
* Author URI: https://yourwebsite.com
* License: GPL v2 or later
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
@dfinke
dfinke / Get-BootStrapPrompt.ps1
Created December 5, 2025 13:22
Generates prompt engineering best practices for specified AI models
#Requires -Modules PSAI
function Get-BootStrapPrompt {
<#
.SYNOPSIS
Generates prompt engineering best practices for specified AI models.
.DESCRIPTION
For each AI model in the FavoriteAI array, this function uses an agent to research and produce
#>
param(
@xrandox
xrandox / palworldlua.md
Last active December 21, 2025 21:14
Teh's Lua Modding in Palworld Tutorial

DISCLAIMER: I am not an expert on UE4SS or lua modding. In fact, Palworld is the first game I've done any UE4SS modding. I self-taught myself from the UE4 docs, discord convos and brute force. I might not always do things the best way. But I have made a handful of mods and I think I have at least a decent understanding of the basics and overall process, and that's what I'm going to try and cover in this guide.


Prologue | Ground Rules

Hi, so I'm Teh, as some of you might know me from Nexus, or also im.null on Discord.

Lets set some ground rules so you don't complain about me wasting your time:

  • This is a Lua-only tutorial. I will not be covering BPs, BP interoperability, asset swapping or anything of the like. This will be pure, untainted Lua 😎. Some concepts will definitely transfer over, but if you want BP stuff, this aint it
  • I'm not going to cover Lua basics, like syntax or
@chayanforyou
chayanforyou / DS18B20 Proteus Simulation Fix.md
Created September 11, 2025 18:03
DS18B20 Proteus Simulation Fix

DS18B20 Proteus Simulation Fix

Overview

This project provides a solution to fix the DS18B20 temperature sensor simulation issue in Proteus, where incorrect readings (e.g., -127.00°C) were observed despite the code and circuit working on real hardware.

Problem

The DS18B20 sensor in Proteus simulation returned alternating readings of -127.00°C (indicating a communication failure) and 27.00°C (likely the default simulated temperature). This issue is simulation-specific and does not occur on real hardware due to timing mismatches in the OneWire protocol.

Solution

The fix involves adjusting the DS18B20 component properties in Proteus to align with the OneWire timing requirements. Follow these steps:

@0
0 / bluetooth_serial.md
Last active December 21, 2025 20:59
Connecting a Bluetooth device for serial communication on Arch Linux.

The following are instructions for connecting a Bluetooth device for serial communication on Arch Linux using BlueZ 5.31.

Prerequisites

The following packages are required:

  • bluez: bluetoothd
  • bluez-utils: bluetoothctl, rfcomm
@ongkiii
ongkiii / IPA-Sources.md
Last active December 21, 2025 20:58
REPOS/TELEGRAM CHANNELS LIST BY u/angkitbharadwaj
@steipete
steipete / agent.md
Created October 14, 2025 14:41
Agent rules for git
  • Delete unused or obsolete files when your changes make them irrelevant (refactors, feature removals, etc.), and revert files only when the change is yours or explicitly requested. If a git operation leaves you unsure about other agents' in-flight work, stop and coordinate instead of deleting.
  • Before attempting to delete a file to resolve a local type/lint failure, stop and ask the user. Other agents are often editing adjacent files; deleting their work to silence an error is never acceptable without explicit approval.
  • NEVER edit .env or any environment variable files—only the user may change them.
  • Coordinate with other agents before removing their in-progress edits—don't revert or delete work you didn't author unless everyone agrees.
  • Moving/renaming and restoring files is allowed.
  • ABSOLUTELY NEVER run destructive git operations (e.g., git reset --hard, rm, git checkout/git restore to an older commit) unless the user gives an explicit, written instruction in this conversation. Treat t
@Krazybug
Krazybug / omercy.py
Last active December 21, 2025 20:55
O'Reilly free ebooks downloader
'''
O'Meirrcy !!!! Download free ebooks from O'Reilly
Usage:
> git clone https://gist.github.com/Krazybug/1ae50814d25b0a1d862dfdf7161ee503
> mv 1ae50814d25b0a1d862dfdf7161ee503 omercy
> cd omercy
> pip install requests
> pip install bs4
> python omercy.py
@garrett361
garrett361 / derivation.md
Last active December 21, 2025 20:51
Sonic MoE Backwards Math

Writing out the math used in Sonic MoE: https://arxiv.org/abs/2512.14080. Sec. 3.2 and Appendix C.

Setup

Goal: compute the backwards pass without needing to cache large tensors which would blow up with increased sparsification.

Tensors:

  • X_{ted}: input tensors
  • W^1_{edn}: up projection
@Redblockmasteur
Redblockmasteur / WindowGuard_Climate_Control.yaml
Last active December 21, 2025 20:50
WindowGuard Climate Control
blueprint:
name: WindowGuard Climate Control
description: This blueprint intelligently manages your heating or cooling systems based on window sensor activity, conserving energy by suspending climate control when a window is open and restoring settings after user-defined delays for opening and closing the window.
domain: automation
input:
window_sensor:
name: Window Sensor
description: Select the sensor that monitors your windows. Useful for controlling heating or cooling based on window status.
selector:
entity: