Skip to content

Instantly share code, notes, and snippets.

@dfinke
dfinke / Get-BootStrapPrompt.ps1
Created December 5, 2025 13:22
Generates prompt engineering best practices for specified AI models
#Requires -Modules PSAI
function Get-BootStrapPrompt {
<#
.SYNOPSIS
Generates prompt engineering best practices for specified AI models.
.DESCRIPTION
For each AI model in the FavoriteAI array, this function uses an agent to research and produce
#>
param(
@creativenft
creativenft / How to use Guide Stop Adobe Creative Cloud Processes Script
Last active January 6, 2026 14:53
Stop Adobe Creative Cloud Processes Script
How to Use
Save the script as Stop-AdobeCC.ps1
Right-click and "Run with PowerShell"
Select option 4 to disable Creative Cloud Helper along with other Adobe processes
The script will stop running processes and prevent them from auto-starting
Notes

Beast Mode

Beast Mode is a custom chat mode for VS Code agent that adds an opinionated workflow to the agent, including use of a todo list, extensive internet research capabilities, planning, tool usage instructions and more. Designed to be used with 4.1, although it will work with any model.

Below you will find the Beast Mode prompt in various versions - starting with the most recent - 3.1

Installation Instructions

  • Go to the "agent" dropdown in VS Code chat sidebar and select "Configure Modes".
  • Select "Create new custom chat mode file"
@2-click
2-click / nordvpn-wireguardkeys-powershell.md
Last active January 9, 2026 02:27
Getting NordVPN Wireguard Keys from API with powershell
  1. Go to https://my.nordaccount.com/dashboard/nordvpn/manual-configuration/ and create an access token
  2. Copy token
  3. Use powershell to get Wireguard key
$username = "token"
$password = "<token goes here>"
$pair = "$($username):$($Password)"
$bytes = [System.Text.Encoding]::ASCII.GetBytes($pair)
$encodedCredentials = [Convert]::ToBase64String($bytes)
$url = "https://api.nordvpn.com/v1/users/services/credentials"
rem ---------------------------------------------------------------------------
rem MY ULTIMATE WINDOWS 11 CUSTOMIZATION SCRIPT
rem ---------------------------------------------------------------------------
rem Tested on Windows 11 IoT Enterprise LTSC 24H2 Build 26100.2033
rem Most of these hacks require signing out and in again.
rem ___
rem Explanation of registry flags:
rem /f = Overwrite
rem /d = Assigns the specified data to the registry value.
@BenOnSocial
BenOnSocial / uninstall-phone-link.ps1
Last active November 26, 2025 00:11
Uninstall Phone Link on Windows 11.
@hafiz-muhammad
hafiz-muhammad / block-windows-telemetry.md
Last active November 29, 2025 03:01
Block Windows telemetry via host file.

Repo containing link below: https://github.com/hagezi/dns-blocklists?tab=readme-ov-file#native Copy & paste from https://gitlab.com/hagezi/mirror/-/raw/main/dns-blocklists/hosts/native.winoffice.txt and add to Windows host file.

Host file location: C:\Windows\System32\drivers\etc\hosts

How to:

  1. Drag & drop host file to desktop.
  2. Paste everything from https://gitlab.com/hagezi/mirror/-/raw/main/dns-blocklists/hosts/native.winoffice.txt below everything else.
  3. Drag & drop the host file back into C:\Windows\System32\drivers\etc.
  4. Click 'Allow on Device' through Windows Defender application.
@kajott
kajott / win10repair.bat
Last active November 28, 2025 22:26
Windows 10/11 Setup Script
@echo off
@rem "This little script sets a few useful settings in Windows 10 that most"
@rem "serious users are likely to want; scroll through the script for details"
@rem "and disable sections you don't want."
@rem "Usage:"
@rem "Just save this file as a .bat or .cmd file and run it (with"
@rem "Administrator privileges!). You will need to re-run it after larger"
@rem "updates, as these tend to overwrite some of the settings or re-create"
@devblackops
devblackops / redalert.ps1
Last active January 8, 2026 07:58
Display highly visible notification if the last command failed in the Microsoft Terminal using PowerShell
# Put this code in your PowerShell profile script
# This requires the MSTerminalSettings module which you can download with:
# Install-Module MSTerminalSettings -Scope CurrentUser -Repository PSGallery
Import-Module MSTerminalSettings
$msTermProfileName = 'pwsh' # Replace with whatever Terminal profile name you're using
$msTermProfile = Get-MSTerminalProfile -Name $msTermProfileName
$script:bombThrown = $false
function prompt {
if ($? -eq $false) {
@devblackops
devblackops / prompt.ps1
Last active January 8, 2026 08:00
My basic prompt
Import-Module posh-git
function prompt {
# The status of the last command run
$lastSuccess = $?
# Colors for prompt
$color = @{
Reset = "`e[0m"
Red = "`e[31;1m"
Green = "`e[32;1m"