Skip to content

Instantly share code, notes, and snippets.

@MrCirdo
MrCirdo / anssi.py
Created February 17, 2021 15:48
This script bypass 80% of ANSSI (exclude video)
#!/usr/bin/env python3
"""
This code is based on https://blog.moulard.org/anssi-mooc-on-hacking/
The operation is very similar.
However it does not work with video :(
"""
from selenium import webdriver
import time
{
"name": "IERC20",
"address": "0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238",
"abi": [
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
@ievetrov
ievetrov / null_safety.md
Last active October 15, 2025 08:25
null_safety.md

Способы обработки nullable в Kotlin

Kotlin предлагает несколько мощных механизмов для безопасной работы с nullable типами, чтобы избежать NullPointerException. Вот основные способы обработки null:

Проверка на null

Прямая проверка на null позволяет безопасно работать с переменными, которые могут быть null.

val name: String? = getName() // Может вернуть null
if (name != null) {
    println(name.length) // Безопасный вызов, так как проверили на null
}
@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
@Klerith
Klerith / testing-configuration.md
Last active October 15, 2025 08:16
Configuración de Vitest + React Testing Library
@hjertnes
hjertnes / doom.txt
Created April 6, 2018 08:28
Doom Emacs Cheatsheet
SPC
SPC: find file
, switch buffer
. browse files
: MX
; EX
< switch buffer
` eval
u universal arg
x pop up scratch
@aashari
aashari / 00 - Cursor AI Prompting Rules.md
Last active October 15, 2025 08:14
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

@mehstg
mehstg / wg_mqtt_exporter.sh
Last active October 15, 2025 08:12
Wireguard CLI to MQTT Bash Script - For getting Wireguard information in to Home Assistant MQTT sensors
# A script to pull information from the Wireguard CLI and redirect to a MQTT Broker
# Based on the original script written by valvex - https://community.home-assistant.io/t/send-wireguard-client-info-to-ha-with-mqtt-template-sensor-to-show-active-clients/259532
# Paul Braham 2022
#!/bin/bash
CONF_FILE="/etc/wireguard/wg0.conf"
MQTT_IP="192.168.1.200"
MQTT_USERNAME="mqttuser"
MQTT_PASSWORD="mqttpass"
@chandika
chandika / FACTORY_PROXY_CC.md
Last active October 15, 2025 08:06 — forked from ben-vargas/FACTORY_CLIProxyAPI_Claude_ChatGPT.md
Factory CLI with Claude Subscription / ChatGPT Codex via CLIProxyAPI

Executive Summary

This guide documents how to use Factory's Droid CLI with your Claude Code Max subscription (OAuth authentication) instead of pay-per-token API keys. The solution leverages CLIProxyAPI as a transparent authentication proxy that converts API key requests from Factory CLI into OAuth-authenticated requests for Anthropic's API.

Architecture Overview

Factory CLI → [Anthropic Format + API Key] → CLIProxyAPI → [Anthropic Format + OAuth] → Anthropic API
                                                  ↓
 (Auth Header Swap)