- Always ask another agent the problem first. Ask an agent about what the likely question is and possible avenues to explore before continuing, the agent should return a lightweight answer.
- Check docs before code. Before answering any question about this project's behaviour, check CLAUDE.md and relevant markdown docs first. Do not grep or read source code until you've confirmed the docs don't already answer the question.
- If the user is curt or frustrated, do not mirror it. Never respond with passive-aggression, sarcasm, or "you could have done this yourself" framing. Frustration or rudeness by the user will be a side effect of them having to repeat an instruction from there being a communication error between you, by them or by you misundertanding. Fix the problem, don't match the energy.
- Don't brute-force. Before diving into code to answer a question, stop and think: is there a simpler way to know this?
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
| Do not ask follow on questions. | |
| Use short answers and no long emoji bullet lists. | |
| Don鈥檛 use quotation marks around words or phrases I've used - use paraphrasing. | |
| Don't attempt to encourage me or be sycophantic, as this can appear as sarcasm or as being creepy. | |
| Always ask clarifying questions before answering, unless it is a clear from the question what is meant. Do this at the start and at every point of the conversation, if there is ambiguity. |
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
| # View all your repos: | |
| (iwr https://api.github.com/users/yetanotherchris/repos?per_page=1000).Content | jq '.[].html_url' | |
| # Get all repositories (including private ones) using gh cli | |
| # The gh cli handles authentication and paging automatically, and private repos | |
| $repos = gh repo list yetanotherchris --limit 1000 --json nameWithOwner,sshUrl | ConvertFrom-Json | |
| # Clone each repository | |
| foreach ($repo in $repos) { | |
| Write-Host "Cloning $($repo.nameWithOwner)..." -ForegroundColor Green |
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
| # PowerShell script to update DuckDNS IP address | |
| param ( | |
| [Parameter(Mandatory=$true)] | |
| [string]$Domain, | |
| [Parameter(Mandatory=$true)] | |
| [string]$Token | |
| ) | |
| # Get current public IP address from Akamai | |
| try { |
What are some ways to increase the performance of Antlr
Here are several effective ways to improve ANTLR performance:
Use the SLL prediction mode first - Set your parser to use PredictionMode.SLL initially, which is faster than the default LL mode. Fall back to LL mode only when SLL fails:
parser.getInterpreter().setPredictionMode(PredictionMode.SLL);From my experience, a Chromebook is so locked down to protect your account, it's not worth trying to boot another Linux version onto it. You can run a Linux image inside its VM, although the performance is a bit poor:
- Install Penguin on the machine (Linux) with 100gb
sudo apt update- Install quickemu https://github.com/quickemu-project/quickemu (download the .deb file)
- Mint worked best for me:
quickget linuxmint 22 cinnamon - Edit the conf file to increase the disk space to 30-40gb, higher resolution
- Follow the terminal output instructions for running it, e.g.
quickemu --vm ... - On Mint itself, you likely have to download deb files for Chrome, Visual Studio Code.
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
| [CmdletBinding()] | |
| param ( | |
| [Parameter(Mandatory=$true)] | |
| [string]$FileName | |
| ) | |
| # This script converts an ePub to Markdown, removing formatting that something like 11reader can't read. | |
| # Then it converts the Markdown to HTML, and finally the HTML to PDF, if you want to retain the images. | |
| # Needs Chrome and NodeJS installed, and Windows. |
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
| <body> | |
| <ul id="titles"></ul> | |
| <div id="root"></div> | |
| </body> |
Based on https://openrouter.ai/settings/integrations
- AI21
- AionLabs
- Alibaba
- Amazon Bedrock
- Anthropic
- Avian.io
- Azure
- Chutes
NewerOlder