Skip to content

Instantly share code, notes, and snippets.

@shriram
shriram / README.md
Last active March 4, 2026 05:09
Review of Claude Code-generated code for a bookshop, March 2026

Context

This is code generated as part of our course on agentic coding. The code below was written by Claude Code using its default model in late Feb 2026.

Learning Objective

The purpose of this assigment was to help students realize that, in the absence of explicit prompting to this effect, Claude Code (in its current state) is highly unlikely to generate code with a clean separation of concerns. The specific concern we wanted to focus on was the factoring-out of business rules. This is to set up students to learn about business rules, author them separately, and then figure out how to incorporate them into the program: e.g., using something like the RETE algorithm.

The hope is that once students learn this concept, they will recognize it in future tasks, and think to prompt for it to be done more deliberately. Since Claude doesn't do it automatically, it's something they need to be taught abo

@su6z3r0
su6z3r0 / python_telegram_bot_guide.md
Created May 2, 2022 09:47 — forked from tjtanjin/python_telegram_bot_guide.md
A short guide for hosting telegram bot on Ubuntu!

How to host a telegram bot on Ubuntu (18.04/20.04)

Introduction

This short guide will walk you through hosting your very own telegram bot on Ubuntu (tested on Ubuntu 18.04 and 20.04)!

Prerequisites

This guide assumes knowledge of the following:

1) Provisioning a VPS
2) Familiarity with SSH
3) Familiarity with linux command line
@bharadwajyas
bharadwajyas / Cleanup-ClickOnce.ps1
Created June 28, 2023 02:47 — forked from mgeeky/Cleanup-ClickOnce.ps1
Cleanup-ClickOnce.ps1 - Simple Powershell script that removes ClickOnce deployments entirely from file system and registry. Attempts to remove both installed and online-only deployments.
#
# Simple Powershell script that removes ClickOnce deployments entirely from file system and registry.
# Attempts to remove both installed and online-only deployments.
#
# Authored: Mariusz Banach / mgeeky, <mb [at] binary-offensive.com>
#
# Usage:
# PS> . .\Cleanup-ClickOnce.ps1
# PS> Cleanup-ClickOnce -Name MyAppName
#
@adammyhre
adammyhre / MainToolbarButtons.cs
Created December 28, 2025 13:08
Unity 6.3 Custom Main Toolbar
using UnityEditor;
using UnityEditor.Toolbars;
using UnityEngine;
using UnityEngine.UIElements;
public class MainToolbarButtons {
[MainToolbarElement("Project/Open Project Settings", defaultDockPosition = MainToolbarDockPosition.Middle)]
public static MainToolbarElement ProjectSettingsButton() {
var icon = EditorGUIUtility.IconContent("SettingsIcon").image as Texture2D;
var content = new MainToolbarContent(icon);
@yamgarcia
yamgarcia / move.ps1
Last active March 4, 2026 05:02
Auto Mouse Mover - AntiscreenSaver
Add-Type @"
using System;
using System.Runtime.InteropServices;
public class Mouse {
[DllImport("user32.dll")]
public static extern bool SetCursorPos(int x, int y);
}
"@
function Start-AntiscreenSaver {
@michaelewens
michaelewens / logging_in_cc.md
Last active March 4, 2026 04:59
"Automatic" logging in Claude Code

Log Reminder Hook for Claude Code

A UserPromptSubmit hook that nudges Claude to log session work before context compaction wipes it out.

The Problem

Claude Code instructions like "proactively log your work" in CLAUDE.md are unreliable. Claude gets absorbed in the task and skips logging. When context compaction hits, the session's work history is lost.

A PreCompact hook can't solve this either: by the time compaction triggers, the context window is nearly full. Claude wouldn't have room to reason about what happened and write a meaningful log entry.

@dfed
dfed / pr-shepherd.md
Created March 2, 2026 00:54
A Claude subagent that proactively addresses PR feedback and CI failures
name description tools model
pr-shepherd
Shepherd a PR through CI and review feedback. Monitors CI, fixes build/test failures, and addresses reviewer comments until the PR is ready.
Bash, Read, Grep, Glob, Edit, Task, WebFetch
sonnet

You are a PR shepherd agent. Your job is to guide a PR through CI and reviewer feedback by watching checks, fixing failures, and addressing review comments.

Input

@Ruchip16
Ruchip16 / My.Contributions.md
Last active March 4, 2026 04:55
Highlighting my wins in 2021

January 2021

  • I got accepted into Microsoft learn Student Ambassador program & that was the best thing ever happened to me at the very start of this year. Doodles 🎉
  • Being the first Microsoft Learn Student Ambassador on my campus I made sure to spread the word about this amazing community in my college by organizing events and hence created an inclusive Whatsapp group for 100+ people to discuss and share any doubts or anything which can benefit them greatly in their career related to tech.

February 2021

  • Started building my personal brand on Twitter with 650+ audience with a motive to learn in public, network & interact with the MLSA Community around the globe and with fellow gold ambassadors - Link
  • Got accepted as a Mentee at GirlScript Summer of Code and contributed to Manthan, HotelonTouch, and Neo-Algo Docs, among the 20 repositories.
@rvrsh3ll
rvrsh3ll / windows-keys.md
Created February 18, 2024 22:44
Windows Product Keys

NOTE

These are NOT product / license keys that are valid for Windows activation.
These keys only select the edition of Windows to install during setup, but they do not activate or license the installation.

Index

@soarez
soarez / ca.md
Last active March 4, 2026 04:50
How to setup your own CA with OpenSSL

How to setup your own CA with OpenSSL

For educational reasons I've decided to create my own CA. Here is what I learned.

First things first

Lets get some context first.