Skip to content

Instantly share code, notes, and snippets.

@superfashi
superfashi / flare-on-12-write-up.md
Last active November 23, 2025 02:39
Flare-On 12 Write-Up

Flare-On 12 Write-up

Screenshot_25-10-2025_3368_flare-on12.ctfd.io


1 - Drill Baby Drill!

We are given a game written in Python. Once again, the source code is given because this is the first and easiest challenge, so let's dig into it directly.

@aashari
aashari / 00 - Cursor AI Prompting Rules.md
Last active November 23, 2025 02:38
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

@kashifulhaque
kashifulhaque / NvChad.md
Last active November 23, 2025 02:37
Neovim NvChad keybinds

Neovim keybinds

  • Capital letters do the opposite of small letters in command (Press shift to trigger capital letters)
  • _ (underscore) to move the cursor at the beginning of line (doesn't switch to insert mode)
    • 0 (zero) moves the cursor to the zeroth position of the line (doesn't switch to insert mode)
  • $ (dollar) to move the cursor at the end of line (doesn't switch to insert mode)
  • d$ will delete from wherever your cursor is till the end of the line
  • f<character> to move cursor to the first occurrence of <character>
    • f( to move cursor to first occurence of (
  • t<character> to move cursor to upto but not on the first occurrence of <character>
  • t( to move cursor to first occurence of (
@sstirlin
sstirlin / vim_bindings_ipython.md
Last active November 23, 2025 02:33
vim bindings for IPython

As of IPython 5, readline is no longer used to interpret keystrokes.
Instead, the pure-python library prompt_toolkit is used.

Getting vim mode in IPython is straightforward. First, edit

~/.ipython/profile_default/ipython_config.py

and add the following line:

c.TerminalInteractiveShell.editing_mode = 'vi'

@nathanmcnulty
nathanmcnulty / Get-MTPAPIToken.ps1
Created November 22, 2025 01:16
Get MTP API token using Azure PowerShell
$tenantId = "YOUR-TENANTID"
$fullToken = Get-AzAccessToken -ResourceUrl "https://securitycenter.microsoft.com/mtp" -TenantId $tenantId
$secureToken = [System.Runtime.InteropServices.Marshal]::SecureStringToBSTR($fullToken.Token)
try {
$token = [System.Runtime.InteropServices.Marshal]::PtrToStringBSTR($secureToken)
} finally {
[System.Runtime.InteropServices.Marshal]::ZeroFreeBSTR($secureToken)
}
$headers = @{ authorization= "Bearer $token" }
Invoke-Restmethod -Uri "https://mde-dtc-snsexclusions-prd-eus3.securitycenter.windows.com/api/sense-collection/rules" -Headers $headers
@eooce
eooce / auto-add-ssl-workers.js
Last active November 23, 2025 02:15
auto-add-ssl-workers
export default {
async fetch(request, env, ctx) {
const url = new URL(request.url);
// 处理 API 请求:支持 POST (/api/add-ssl) 和 GET (/?...)
if (
(url.pathname === '/api/add-ssl' && request.method === 'POST') ||
(url.pathname === '/' && request.method === 'GET' && url.searchParams.has('zoneId'))
) {
return handleApiRequest(request, url.searchParams);
#!/bin/bash
iatest=$(expr index "$-" i)
#######################################################
# SOURCED ALIAS'S AND SCRIPTS BY zachbrowne.me
#######################################################
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
@cnu
cnu / download.go
Created December 2, 2018 19:23
Download files in Go
package main
import (
"fmt"
"io"
"net/http"
"os"
)
func main() {

FYI (July 24, 2025): I've been away since July 11, dealing with an emergency move. I'll be back working on all the amazing comments y'all have been putting down, most possibly by the first weekend of August. I appreciate all the contributions everybody has been making and all the time everybody has put to make all of our lives better.

Streaming Whitelists and Blacklists for PiHole

Last Updated On:           July 10, 2025
Last Updated Platform:     Peacock

Table of Contents

@myandere
myandere / FixIconsOnWayland.md
Created July 2, 2025 21:40 — forked from Postrediori/FixIconsOnWayland.md
Fix Wayland icons of apps after switching to KDE & Wayland [Ubuntu 24.04]

Fix Wayland icons of apps after switching to KDE & Wayland [Ubuntu 24.04]

Description

After switching to Wayland some apps have default Wayland icon:

Default icons screenshot

Example setup for Firefox