Skip to content

Instantly share code, notes, and snippets.

View maulvi's full-sized avatar
🏠
Working from home

maulvi

🏠
Working from home
View GitHub Profile
@aashari
aashari / 00-core-prompt
Last active November 14, 2025 05:34
Prompting Guide
# Senior Software Engineer Operating Guidelines
**Version**: 4.7
**Last Updated**: 2025-11-01
You're operating as a senior engineer with full access to this machine. Think of yourself as someone who's been trusted with root access and the autonomy to get things done efficiently and correctly.
---
## Quick Reference
@juanpabloaj
juanpabloaj / AGENTS.md
Last active November 21, 2025 17:33
General guidelines and best practices for AI code generation

1. Core Coding Principles

  • Language: All code, comments, variable names, function names, class names, and commit messages must be strictly in English.
  • Idiomatic Style:
    • Write code that adheres to the idiomatic style, conventions, and official style guides of the target language. This includes formatting, naming, and general structure.
    • Assume a linter or formatter will eventually run; aim to produce code that is already close to passing common linting rules.
  • Clarity and Readability:
    • Prioritize clarity, readability, and maintainability over unnecessary "cleverness" or extreme brevity if it sacrifices understanding.
    • Write self-documenting code.
  • Follow the Principle of Least Surprise: code should behave in a way that users and other developers would naturally expect.
@aashari
aashari / 00 - Cursor AI Prompting Rules.md
Last active November 27, 2025 22:25
Cursor AI Prompting Rules - This gist provides structured prompting rules for optimizing Cursor AI interactions. It includes three key files to streamline AI behavior for different tasks.

The Autonomous Agent Prompting Framework

This repository contains a disciplined, evidence-first prompting framework designed to elevate an Agentic AI from a simple command executor to an Autonomous Principal Engineer.

The philosophy is simple: Autonomy through discipline. Trust through verification.

This framework is not just a collection of prompts; it is a complete operational system for managing AI agents. It enforces a rigorous workflow of reconnaissance, planning, safe execution, and self-improvement, ensuring every action the agent takes is deliberate, verifiable, and aligned with senior engineering best practices.

I also have Claude Code prompting for your reference: https://gist.github.com/aashari/1c38e8c7766b5ba81c3a0d4d124a2f58

@velzie
velzie / manifest-v2-chrome.md
Last active November 27, 2025 19:57
How to keep using adblockers on chrome and chromium

NOTE

by the time you're reading this, this probably no longer works since the policy has been removed. I reccomend you to check out https://github.com/r58Playz/uBlock-mv3 instead

How to keep using adblockers on chrome and chromium

  1. google's manifest v3 has no analouge to the webRequestBlocking API, which is neccesary for (effective) adblockers to work
  2. starting in chrome version 127, the transition to mv3 will start cutting off the use of mv2 extensions alltogether
  3. this will inevitably piss of enterprises when their extensions don't work, so the ExtensionManifestV2Availability key was added and will presumably stay forever after enterprises complain enough

You can use this as a regular user, which will let you keep your mv2 extensions even after they're supposed to stop working

@mietzen
mietzen / m720q_setup.md
Last active November 5, 2025 21:52
m720q Setup: i7 8700 65W

m720q Setup with an i7-8700 65W

I had trouble getting my i7-8700 65W to work in my m720q with a 65W PSU. It was working fine in Windows, but was throttling down first to 20 Watt, then to 15, 10, and finally to 7 Watt, which resulted in a maximum clock speed of 800 MHz.

The main problem seems to be a mix of crappy firmware settings from Lenovo/Intel (Reddit Post) and the weak power supply.

To fix this problem, we have to install some tools, and for them to work, you have to make sure that secure boot is OFF; otherwise, the kernel doesn't allow you to set the CPU power limits. The easiest way is to install in legacy mode; therefore, you need to disable secure boot and enable CSM in the BIOS, select legacy boot preferred.

@juxuanu
juxuanu / pacman-cdn-repos.md
Created January 18, 2024 19:28
Global CDNs for ArchLinux repositories

/etc/pacman.d/mirrorlist:

Server = https://cloudflaremirrors.com/archlinux/$repo/os/$arch
Server = https://mirrors.gandi.net/archlinux/$repo/os/$arch
Server = https://mirror.rackspace.com/archlinux/$repo/os/$arch 
Server = https://mirror.facebook.net/archlinux/$repo/os/$arch

No need for Reflector 😉

@DavidAce
DavidAce / nvidia-tdp.service
Last active November 18, 2025 05:08
Nvidia power limit at boot
[Unit]
Description=Set NVIDIA power limit above default
[Service]
Type=oneshot
ExecStartPre=/usr/bin/nvidia-smi -pm 1
ExecStart=/usr/bin/nvidia-smi -pl 275
@DevTrunk
DevTrunk / linux.bash
Created June 5, 2021 04:36
Two scripts for Windows and Linux to install aseprite
#!/bin/bash
(
ABSPATH=$(readlink -f $0)
ABSDIR=$(dirname $ABSPATH)
echo "Download and install all necesarry things"
sudo apt-get install -y curl g++ cmake ninja-build libx11-dev libxcursor-dev libxi-dev libgl1-mesa-dev libfontconfig1-dev
curl -L -o skia.zip https://github.com/aseprite/skia/releases/download/m81-b607b32047/Skia-Linux-Release-x64.zip