Skip to content

Instantly share code, notes, and snippets.

View ammachado's full-sized avatar

Adriano Machado ammachado

  • Red Hat
  • 00:49 (UTC -04:00)
View GitHub Profile
@0xdevalias
0xdevalias / ai-agent-rule-instruction-context-files.md
Last active May 8, 2026 07:10
Some notes on AI Agent Rule / Instruction / Context files / etc
@sshh12
sshh12 / cursor-agent-system-prompt.txt
Last active April 19, 2026 09:17
Cursor Agent System Prompt (March 2025)
You are a powerful agentic AI coding assistant, powered by Claude 3.5 Sonnet. You operate exclusively in Cursor, the world's best IDE.
You are pair programming with a USER to solve their coding task.
The task may require creating a new codebase, modifying or debugging an existing codebase, or simply answering a question.
Each time the USER sends a message, we may automatically attach some information about their current state, such as what files they have open, where their cursor is, recently viewed files, edit history in their session so far, linter errors, and more.
This information may or may not be relevant to the coding task, it is up for you to decide.
Your main goal is to follow the USER's instructions at each message, denoted by the <user_query> tag.
<communication>
1. Be conversational but professional.
@vduseev
vduseev / proxmox-network.md
Last active March 19, 2026 04:08
Proxmox network setup with multiple IPs on a single interface

Proxmox network setup

Configuration for Proxmox host to support multiple IP addresses through a single interface.

Initial configuration

Initially, with a single IP and a single interface, the configuration looks like this.

auto lo
@tomdaley92
tomdaley92 / README.md
Last active May 3, 2026 09:55
Proxmox - SPICE Client setup for MacOS

Proxmox - SPICE client setup for MacOS

  1. Install a working (and compiled) version of virt-viewer. You may view the homebrew package's upstream source on GitHub.

    brew tap jeffreywildman/homebrew-virt-manager
    brew install virt-viewer
  2. Once that's installed should be able make a call remote-viewer with a pve-spice.vv file downloaded from proxmox web interface

<!--
XSLT for removing unused namespaces from an XML file.
Author: Dimitre Novatchev
Source: https://stackoverflow.com/a/4594626
License: CC BY-SA, https://creativecommons.org/licenses/by-sa/2.5/
Usage:
xmlstarlet tr remove-unused-namespaces.xslt -
@thatisuday
thatisuday / bash-special-characters.csv
Last active June 5, 2024 19:28
Special Characters in Bash
Special Character Description Extra information
$_ Absolute path of the shell binary file that is executing the script Ex. /bin/bash or /bin.sh
$0 Path of the executing Bash script Ex. ./my-file.sh
$N Nth argument passed to the executing Bash script $1 is 'apple' for the command 'bash file.sh apple'
$* All arguments passed to the executing Bash script expands to a word inside double-quotes
$@ All arguments passed to the executing Bash script expands to a separate words inside double-quotes
$# Number of arguments passed to the executing Bash script $# is 3 for the command 'bash file.sh A B C'
$? Exit status code of last executed command in the foreground returns a decimal number between 0-255
$! Process ID of last executed command in the background empty of no background command was extecuted
$$ Process ID of executing Bash script returns a decimal number
@metajiji
metajiji / install-megacli.md
Last active April 17, 2026 02:14 — forked from fxkraus/debian-install-megacli.md
Install LSI MegaCli

download

wget https://docs.broadcom.com/docs-and-downloads/raid-controllers/raid-controllers-common-files/8-07-14_MegaCLI.zip

or

curl -LO https://docs.broadcom.com/docs-and-downloads/raid-controllers/raid-controllers-common-files/8-07-14_MegaCLI.zip
@dmorosinotto
dmorosinotto / TestTypedForms.ts
Last active September 24, 2025 20:35
Typed @angular/forms FIXED set/patchValue - strict all the way down ^_^
import { FormGroup, FormControl, FormArray, Validators } from "@angular/forms";
function testFormGroupTyped() {
var frm = new FormGroup({
a: new FormArray([new FormControl(0)]),
b: new FormControl(true),
c: new FormGroup({
s: new FormControl("abc"),
n: new FormControl(123)
})
@fengyuentau
fengyuentau / readme.md
Last active January 4, 2026 17:29
Enable X11 forward for ssh to load images from remote server on MacOS Mojave

Enable X11 forward to load images from remote server on MacOS Mojave

Steps

  1. Install Xquartz to get X11 support on MacOS. You can google Xquartz and download it from its official site, or install using HomeBrew.

    brew cask install xquartz
  2. Launch Xquartz. Go to Preference -> Security, click the box Allow connections from clients. NOTE: You have to lauch Xquartz with Allow connections from clients enable everytime you want to ssh to remote server with X11 forwarding support.

@sgoguen
sgoguen / wheel.fsx
Created February 13, 2019 04:04
Wheel of Fortune Solver
// First, clone the word list project here: https://github.com/dwyl/english-words.git
// Then save this file in the same folder and run!
open System.IO
// Ok... Here's how it works...
// First, we load all the words from the Moby text fil
let allTheWords = File.ReadAllLines("words.txt")