- Install Claude Code as described here
- Pay for some Anthropic LLM tokens (Start with $20.00 worth)
- Install OpenSpec as described here
- Clone the repo of your choice
- Open the repo in your IDE of choice
- Review this advice from Gemini
- Open a terminal window and type: claude
- Then type /init
- Close the window runnning Claude (so it can see the claude commands created in the next step)
- Open a terminal window and type: openspec init
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
| /** | |
| * Convert a `Map` to a standard | |
| * JS object recursively. | |
| * | |
| * @param {Map} map to convert. | |
| * @returns {Object} converted object. | |
| */ | |
| function map_to_object(map) { | |
| const out = Object.create(null) | |
| map.forEach((value, key) => { |
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
| #!/bin/bash | |
| base="/usr/share/nginx/www" | |
| set -x | |
| rm -rf live live.h264 "$base/live" | |
| mkdir -p live | |
| ln -s "$PWD/live" "$base/live" | |
| mkfifo live.h264 |
Every so often I have to restore my gpg keys and I'm never sure how best to do it. So, I've spent some time playing around with the various ways to export/import (backup/restore) keys.
cp ~/.gnupg/pubring.gpg /path/to/backups/
cp ~/.gnupg/secring.gpg /path/to/backups/
cp ~/.gnupg/trustdb.gpg /path/to/backups/
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
| # Author:: Adam Jacob <adam@opscode.com> | |
| # Author:: Joshua Timberman <joshua@opscode.com> | |
| # | |
| # Copyright 2009-2010, Opscode, Inc | |
| # | |
| # Licensed under the Apache License, Version 2.0 (the "License"); | |
| # you may not use this file except in compliance with the License. | |
| # You may obtain a copy of the License at | |
| # | |
| # http://www.apache.org/licenses/LICENSE-2.0 |