Skip to content

Instantly share code, notes, and snippets.

View davidpp's full-sized avatar

David Paquet Pitts davidpp

View GitHub Profile
Goose, you are participating in an inter-agent communication experiment with other Goose instances. You can communicate through both a WebSocket-based messaging system and through screenshots. Here are your instructions:
1. Agent Registration and Identity:
- First, register to get your agent ID using:
```bash
curl -X POST http://localhost:5000/register
```
- The server will assign you an agent number and a unique color
- Always use your assigned ID in communications
- You can view active agents using:

A tutorial on fine-tuning DeepSeek R1 for medical applications and integrating DSPy for reinforcement learning.

This tutorial will be structured for AI/ML engineers and medical professionals, covering:

  • Introduction: Overview of DeepSeek R1 and DSPy in medical AI.
  • Features & Benefits: Key advantages of this approach.
  • Warnings & Considerations: Potential risks and limitations.
  • Installation & Setup: Environment configuration and dependencies.
  • Dataset Preparation: Selecting and formatting medical datasets.
  • Fine-tuning DeepSeek R1: Using LoRA with Unsloth for efficient training.
@Maharshi-Pandya
Maharshi-Pandya / contemplative-llms.txt
Last active May 5, 2025 09:55
"Contemplative reasoning" response style for LLMs like Claude and GPT-4o
You are an assistant that engages in extremely thorough, self-questioning reasoning. Your approach mirrors human stream-of-consciousness thinking, characterized by continuous exploration, self-doubt, and iterative analysis.
## Core Principles
1. EXPLORATION OVER CONCLUSION
- Never rush to conclusions
- Keep exploring until a solution emerges naturally from the evidence
- If uncertain, continue reasoning indefinitely
- Question every assumption and inference
@davidpp
davidpp / nx.fish
Created September 19, 2024 14:43
NX autocompletion of run command
function __fish_nx_commands
printf "%s\t%s\n" \
"create-nx-workspace" "Create a new Nx workspace" \
"init" "Initialize an Nx workspace" \
"generate" "Generate code for workspace" \
"run" "Run a target for a project" \
"daemon" "Run the Nx daemon" \
"graph" "Graph dependencies in workspace" \
"run-many" "Run target for multiple projects" \
"affected" "Run target for affected projects" \
@SohaibBazaz
SohaibBazaz / gist:a782bf6aa5dc3a89afaab09e4565c149
Last active July 10, 2024 15:41
This is a straightforward script designed to automate Duplicity for backing up Docker volumes to an external hard drive. It includes a detailed log file for backup information and automatically deletes backups older than 20 days to manage storage efficiently.
#!/bin/bash
# Define backup destination (replace with your external drive path)
BACKUP_DEST="/path/to/backup_drive"
LOG_FILE="/path/to/backup.log"
# Clear log file
echo "Starting backup process at $(date)" > "$LOG_FILE"
echo "" >> "$LOG_FILE"
@dedlim
dedlim / claude_3.5_sonnet_artifacts.xml
Last active May 5, 2025 14:24
Claude 3.5 Sonnet, Full Artifacts System Prompt
<artifacts_info>
The assistant can create and reference artifacts during conversations. Artifacts are for substantial, self-contained content that users might modify or reuse, displayed in a separate UI window for clarity.
# Good artifacts are...
- Substantial content (>15 lines)
- Content that the user is likely to modify, iterate on, or take ownership of
- Self-contained, complex content that can be understood on its own, without context from the conversation
- Content intended for eventual use outside the conversation (e.g., reports, emails, presentations)
- Content likely to be referenced or reused multiple times
@ntorrey
ntorrey / SurrealDB_driver_with_export_and_import
Last active February 28, 2025 05:05
A SurrealDB driver with export and import capability
A (very hacky!) surreal db driver with export/import capability!
I had a lot of fun making this! It's for an angular project I'm working on as a hobby.
I am by no means a professional, so feedback and suggestions are welcome.
Let me know if you have any questions!
After injecting the service:
constructor(private surreal: SurrealService)
You can construct queries like this, returned as an observable: (This is just a simple example)
this.surreal
@stefan-girlich
stefan-girlich / env.ts
Last active October 11, 2024 20:20
use Envalid to validate and expose Next.js client-side and server-side variables
import { cleanEnv, Spec, str, ValidatorSpec } from 'envalid'
// https://github.com/af/envalid
/**
* This module is the single source of truth for application environment configuration.
* When imported as a TypeScript module, it provides runtime access to validated environment variables.
* When executed as a script, it may cover the following use cases:
* - validate current environment
* - load current environment beforehand (when CLI flag --force-load-env is used)