Skip to content

Instantly share code, notes, and snippets.

View seansummers's full-sized avatar
:octocat:
South Bend, IN

Sean Summers seansummers

:octocat:
South Bend, IN
View GitHub Profile
@aashari
aashari / 00 - Cursor AI Prompting Rules.md
Last active April 19, 2025 20:19
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.

Cursor AI Prompting Framework Usage Guide

This guide explains how to use the structured prompting files (core.md, refresh.md, request.md) to optimize your interactions with Cursor AI, leading to more reliable, safe, and effective coding assistance.

Core Components

  1. core.md (Foundational Rules)
    • Purpose: Establishes the fundamental operating principles, safety protocols, tool usage guidelines, and validation requirements for Cursor AI. It ensures consistent and cautious behavior across all interactions.
    • Usage: This file's content should be persistently active during your Cursor sessions.
@keithpl
keithpl / arch-linux-kubernetes.md
Last active July 18, 2024 23:38
Kubernetes on Arch Linux with Cilium and CRI-O

Install and configure CRI-O runtime.

sudo pacman -S cri-o crun iptables-nft

Create /etc/crio/crio.conf.d/00-crun.conf specifying the default runtime as crun instead of runc.

[crio.runtime]
@billyjbryant
billyjbryant / Synology NAS Boot Locked.md
Last active December 27, 2023 22:13 — forked from ludoo0d0a/gist:8d0cfd1cab22598cb5d8
Synology boot locked

Description:

Sometimes after a hard reboot (power cut), if your synology cannot be logged in with DSM and it shows "System is getting ready. Please log in later" , please do these steps :

Steps

  1. Install the syno-ready script to /usr/local/bin (You must be able to SSH to the NAS via an Admin user account)
wget https://gist.github.com/billyjbryant/993b4e8669659444006823a68f1bd509/raw/e728bfb2e9968f4c5a8ab7f7a9d316172267dc84/syno-ready
sudo mv syno-ready /usr/local/bin
sudo chmod +x /usr/local/bin/syno-ready
@Overemployed
Overemployed / install.sh
Last active October 28, 2024 09:22
Jacktrip running on PiKVM / Raspberry Pi with arch distro
#!/bin/bash
# Check if script is running as root
if [ "$EUID" -ne 0 ]
then echo "Please run as root"
exit
fi
# your personal machine running jacktrip
REMOTE_JACK_SERVER=nat.local
@eatonphil
eatonphil / psql-srv.py
Last active April 18, 2025 17:32 — forked from matteobertozzi/psql-srv.py
postgres "server" wire protocol example (ported python3)
# th30z@u1310:[Desktop]$ psql -h localhost -p 55432
# Password:
# psql (9.1.10, server 0.0.0)
# WARNING: psql version 9.1, server version 0.0.
# Some psql features might not work.
# Type "help" for help.
#
# th30z=> select foo;
# a | b
# ---+---
@silver-xu
silver-xu / aws-cloudtrail-events.md
Last active February 24, 2025 05:07
AWS Cloudtrail Events unofficial document

CloudTrail Event Lists

Service Event Names Description
accessanalyzer ApplyArchiveRule  
  CancelPolicyGeneration

Cancels the requested policy generation.

  CreateAccessPreview

Creates an access preview that allows you to preview IAM Access Analyzer findings for your resource before deploying resource permissions.

  CreateAnalyzer

Creates an analyzer for your account.

  CreateArchiveRule  
  DeleteAnalyzer  
  DeleteArchiveRule  
@ejdoh1
ejdoh1 / macos-webcam-rtsp.sh
Last active July 26, 2024 01:41
MacOS webcam RTSP server & client
# local
ffmpeg -f avfoundation -framerate 30 -video_size 640x480 -i "0:none" -preset ultrafast -tune zerolatency -f mpegts udp://127.0.0.1:9090
ffplay -fflags nobuffer -flags low_delay -framedrop -strict experimental udp://127.0.0.1:9090
# remote
ffmpeg -f avfoundation -framerate 30 -video_size 640x480 -i "0:none" -preset ultrafast -tune zerolatency -f flv rtmp://REPLACEME.australiaeast.azurecontainer.io/live/test
ffplay -fflags nobuffer -flags low_delay -framedrop -strict experimental rtmp://REPLACEME.australiaeast.azurecontainer.io/live/test
@LanceMcCarthy
LanceMcCarthy / UltimateListIds.md
Last active April 4, 2025 10:35
List of Package Ids
Name Package Id Version Source
7Zip 7zip.7zip 19.0.0 winget
Altap Salamander salamander choco
Alt-Tab Terminator alt-tab-terminator choco
AutoHotkey Lexikos.AutoHotkey 1.1.33.02 winget
AutoHotkey Store Edition HaukeGtze.AutoHotkeypoweredbyweatherlights.com Latest msstore (via winget)
Carnac
@lg
lg / adding-tailscale-to-edgerouter.md
Last active February 10, 2025 14:19
Add tailscale to an EdgeRouter and surviving system upgrade

Adding tailscale to an EdgeRouter (and surviving system upgrades)

I suggest you run sudo bash on all of these so you're the root user.

Installing

  1. Download tailscale and put the files in /config/. Find the latest stable or unstable version for your EdgeRouter's processor (ex. ER4 is mips and ERX is mipself)
sudo bash    # if you havent already
@byt3bl33d3r
byt3bl33d3r / ws.ps1
Last active September 19, 2024 20:25
Async Websocket PowerShell client (producer/consumer pattern)
<#
References:
- https://docs.microsoft.com/en-us/dotnet/api/system.net.websockets.clientwebsocket?view=netframework-4.5
- https://github.com/poshbotio/PoshBot/blob/master/PoshBot/Implementations/Slack/SlackConnection.ps1
- https://www.leeholmes.com/blog/2018/09/05/producer-consumer-parallelism-in-powershell/
#>
$client_id = [System.GUID]::NewGuid()
$recv_queue = New-Object 'System.Collections.Concurrent.ConcurrentQueue[String]'