Skip to content

Instantly share code, notes, and snippets.

View dazeb's full-sized avatar
🎯
Focusing

Darren Bennett dazeb

🎯
Focusing
View GitHub Profile
@dazeb
dazeb / Portainer_on_Alpine.md
Last active January 20, 2024 18:32
Portainer WebUI for Docker under Alpine Linux

Intro

Run Portainer WebUI for Docker on a docker host built using Alpine (3.8) Linux

Clarifications

About documentation

Despite documentation publicly available on Internet, Portainer is not specially well documented in regard to docker volumes and other similar stuff. Best approach is to handle ourselves the volumes mounted per container.

About (self-signed) certificates

You need to have certificates already created to pass to the docker command line / docker composer. Easier way to have that certificates is to use selfsigned certificates. Following line creates a 10-year valid self-signed certificates:

@dazeb
dazeb / create-cloud-template.sh
Created January 21, 2024 08:59 — forked from chriswayg/create-cloud-template.sh
This script will download a cloud image of many Linux distros and create a Proxmox 6 KVM template from it.
#!/bin/bash
set -o errexit
clear
printf "\n*** This script will download a cloud image and create a Proxmox VM template from it. ***\n\n"
### HOW TO USE
### Pre-req:
### - run on a Proxmox 6 server
### - a dhcp server should be active on vmbr1
@dazeb
dazeb / README_MINIMAL_PROMPT_CHAINABLE.md
Created June 28, 2024 10:21 — forked from disler/README_MINIMAL_PROMPT_CHAINABLE.md
Minimal Prompt Chainable for zero library sequential prompt chaining

Minimal Prompt Chainable

Sequential prompt chaining in one method with context and output back-referencing.

Files

  • main.py - start here - full example using MinimalChainable from chain.py to build a sequential prompt chian
  • chain.py - contains zero library minimal prompt chain class
  • chain_test.py - tests for chain.py, you can ignore this
  • requirements.py - python requirements

Setup

@dazeb
dazeb / claude_3.5_sonnet_artifacts.xml
Created July 17, 2024 02:19 — forked from dedlim/claude_3.5_sonnet_artifacts.xml
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