Skip to content

Instantly share code, notes, and snippets.

/* Background color */
:root[data-theme="dark"] {
--background-color: rgb(45, 45, 55);
}
/* General settings */
:root {
--entry-vertical-padding: 0.5em;
--entry-horizontal-padding: 0.5em;
--line-height-no-units: 16;
@NulightJens
NulightJens / claude-code-hooks.md
Last active March 27, 2026 10:22
3 Claude Code Hooks That Save Hours — Bash Safety Net, Focus Alert Chime, Auto-Research Loop

Claude Code Power Hooks: 3 Automations That Make Your AI Agent Bulletproof

A complete setup guide for building three production-grade Claude Code hooks: anti-deletion safety nets, focus-alert notifications, and auto-research loops for marketing content. Copy the code. Follow the steps. Ship in under an hour.


Quick Start: Let Claude Build Your Hooks

Download this file and hand it to Claude Code. It will set everything up for you.

"""
The most atomic way to train and run inference for a GPT in pure, dependency-free Python.
This file is the complete algorithm.
Everything else is just efficiency.
@karpathy
"""
import os # os.path.exists
import math # math.log, math.exp
blueprint:
name: Set window open mode on HomeMatic thermostats
description:
An automation blueprint that reduces the set temperature of your climate
device or group if a window sensor is open for more than the preset wait time.
It uses the Homematic window sensor channel to set the temperature to the "Open-window
temperature" set in the device configuration. You should set the "Mode for temperature
fall detection" to Inactive to avoid conflicts. It waits until the window is closed
again in order to restore the climate entity temperature after 5 seconds. It has an optional blocking
entity to prevent the automation running unnecessarily, for example during the
@Sotatek-Haile
Sotatek-Haile / system_design.md
Created March 25, 2026 11:40
FULL SYSTEM DIAGRAM
We couldn’t find that file to show.
@ipokkel
ipokkel / pmpro-login-redirect-admin-and-users.php
Created April 5, 2024 08:21
Redirect administrators and membership manangers to the WP Admin Dashboard and other users to the membership account page on login.
<?php
/**
* Redirect Administrators and Membership Managers to WP Admin,
* redirect other users to the account page after login.
*
* You can add this recipe to your site by creating a custom plugin
* or using the Code Snippets plugin available for free in the WordPress repository.
* Read this companion article for step-by-step directions on either method.
* https://www.paidmembershipspro.com/create-a-plugin-for-pmpro-customizations/
*/
"$schema" = 'https://starship.rs/config-schema.json'
format = """
[](red)\
$os\
$username\
[](bg:peach fg:red)\
$directory\
[](bg:yellow fg:peach)\
$git_branch\
@ih2502mk
ih2502mk / list.md
Last active March 27, 2026 09:18
Quantopian Lectures Saved
@boringmarketer
boringmarketer / direct-response-copy-gist.md
Created January 27, 2026 18:06
The Direct Response Copy Skill — AI skill file for writing copy that converts. Works with Claude Code, Cursor, ChatGPT, Gemini, and any LLM.

The Direct Response Copy Skill

Write copy that converts. Landing pages, emails, sales copy, headlines, CTAs, social posts — anything persuasive.

This is an AI skill file. It turns any AI into a direct response copywriter trained on the frameworks of Schwartz, Hopkins, Ogilvy, Halbert, Caples, Sugarman, and Collier. Instead of getting generic AI copy, you get internet-native writing that sounds like a smart friend explaining something — while quietly deploying every persuasion principle in the book.


How to use this

@lgaetz
lgaetz / remotehintpoll.php
Last active March 27, 2026 09:02
Simple PHP script that checks the extension status at a remote PBX and updates a custom hint on the local pbx for proper BLF operation.
<?php
/**** **** **** **** **** **** **** **** **** **** **** **** **** **** **** **** **** ****
* remotehintpoll.php
*
* Created by Lorne Gaetz lgaetz@sangoma.com
*
* Latest version: https://gist.github.com/lgaetz/8545099
*
* Licensed under GNU GPL version 2 or any later verison.