Some notes on AI Agent Rule / Instruction / Context files / etc.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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. |
-
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
-
Once that's installed should be able make a call
remote-viewerwith a pve-spice.vv file downloaded from proxmox web interface
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!-- | |
| 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 - |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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) | |
| }) |
-
Install
Xquartzto get X11 support on MacOS. You can googleXquartzand download it from its official site, or install using HomeBrew.brew cask install xquartz
-
Launch
Xquartz. Go toPreference->Security, click the boxAllow connections from clients. NOTE: You have to lauchXquartzwithAllow connections from clientsenable everytime you want tosshto remote server with X11 forwarding support.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // 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") |
NewerOlder