Skip to content

Instantly share code, notes, and snippets.

View cw-cdz's full-sized avatar

Brian cw-cdz

View GitHub Profile
@cw-cdz
cw-cdz / claude_3.5_sonnet_artifacts.xml
Created October 10, 2024 19:54 — 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
@cw-cdz
cw-cdz / Optimize-PathVariable.ps1
Last active June 27, 2024 03:37
Reduce PATH length in Windows automatically by shortening the top 5
<#
.SYNOPSIS
Optimizes the PATH environment variable by replacing long paths with shorter environment variable names.
.DESCRIPTION
This script reviews the PATH environment variables (User, System, or both), identifies the top 5 longest paths,
proposes shortened environment variable names for them, and updates the PATH variable accordingly. It also creates
a backup of the current PATH before making any changes.
.PARAMETER Scope
@cw-cdz
cw-cdz / GetNordVPNWireGuardDetails.md
Created June 1, 2024 18:13 — forked from bluewalk/GetNordVPNWireGuardDetails.md
Getting NordVPN WireGuard details

About

Instructions to obtain WireGuard details of your NordVPN account. These can be used to setup a WireGuard tunnel on your router to NordVPN.

Source: https://forum.gl-inet.com/t/configure-wireguard-client-to-connect-to-nordvpn-servers/10422/27

Prerequisites

If you have any linux machine, use that or install a vm if you don't have one.

Get their official linux app installed. Make sure you have wireguard installed too. And set the used technology to Nordlynx by running nordvpn set technology nordlynx

@cw-cdz
cw-cdz / AddingDropDownSelectorForUnraidVpn.md
Last active June 1, 2024 16:13
Unraid Docker Configuration with Dropdown for Selecting WireGuard VPN Configurations (binhex-qbittorrentvpn, etc)

Generalized Instructions for Setting Up Docker Container with Dropdown for VPN WireGuard Configurations in Unraid

Instructions

  1. Access Docker Template Editor:
    • Go to the Unraid web interface.
    • Navigate to the Docker tab.
    • Click on the container you want to edit (e.g., binhex-qbittorrentvpn).
    • Click on "Edit".