Skip to content

Instantly share code, notes, and snippets.

Beast Mode v3

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.

Installation Instructions

  • Go to the "agent" dropdown in VS Code chat sidebar and select "Configure Modes".
  • Select "Create new custom chat mode file"
  • Select "User Data Folder"
  • Give it a name (Beast Mode)
@dotnetdude
dotnetdude / docker-tool.ps1
Created December 12, 2018 14:58
docker delete all untagged local images windows
//To delete all stopped containers:
docker ps -a -q | % { docker rm $_ }
//To delete all untagged local images
docker images | ConvertFrom-String | where {$_.P2 -eq "<none>"} | % { docker rmi $_.P3 }
@dotnetdude
dotnetdude / docker-tool.ps1
Created December 12, 2018 14:58
docker delete all untagged local images windows
//To delete all stopped containers:
docker ps -a -q | % { docker rm $_ }
//To delete all untagged local images
docker images | ConvertFrom-String | where {$_.P2 -eq "<none>"} | % { docker rmi $_.P3 }
@dotnetdude
dotnetdude / vagrantproxy
Created September 15, 2015 09:36
set http proxy for vagrant
On Windows
Current Open Command Prompt
set http_proxy=http://yourproxyserver:port
set https_proxy=https://yourproxyserver:port
Permantly Set
setx http_proxy=http://yourproxyserver:port
@dotnetdude
dotnetdude / keybase.md
Created May 31, 2015 15:42
keybase.md

Keybase proof

I hereby claim:

  • I am dotnetdude on github.
  • I am suresh2 (https://keybase.io/suresh2) on keybase.
  • I have a public key whose fingerprint is 72A8 9D4A FC76 6B6C 4D6A C420 EC2E 55FC DF84 77A7

To claim this, I am signing this object:

@dotnetdude
dotnetdude / jquerytip1.js
Created January 24, 2014 15:29
Open external links in a new tab/window - jquery
$('a').each(function() {
var a = new RegExp('/' + window.location.host + '/');
if(!a.test(this.href)) {
$(this).click(function(event) {
event.preventDefault();
event.stopPropagation();
window.open(this.href, '_blank');
});
}
});
@dotnetdude
dotnetdude / bulk_reference_update.ps1
Created May 15, 2013 10:15
Loop through all VB CS project files (Visual studio 2012) in a folder / Sub folder, Checkout the File, Change the Reference Location and Save the File.
######## Loop through all VB CS VS project files ((Visual studio 2012) in a folder and Sub folder, Checkout the File, Change the Reference Location and Save the File.
######## How to use
######## 1) cd "folder path"
######## 2) .\bulk_reference_update.ps1 ..\..\..\Deploy\packages ..\..\..\Packages
########
$findpath = [regex]::escape($args[0]);
$replacepath = $args[1];
@dotnetdude
dotnetdude / env.ps1
Created January 8, 2013 10:49
Environment variable Powershell
Dir env:\
Get-Item env:\USERNAME
(Get-Item env:\USERNAME).value
$Env:username
@dotnetdude
dotnetdude / di_pattern_Csharp.cs
Created September 12, 2012 14:21
Dependency Injection By Hand
/* Dependency Injection By HandNew Page Edit Page Page History
So what’s Ninject all about? First, let’s examine the idea of dependency injection by walking through a simple example.
Let’s say you’re writing the next blockbuster game, where noble warriors do battle for great glory.
First, we’ll need a weapon suitable for arming our warriors. */
class Sword
{
public void Hit(string target)
{
Console.WriteLine("Chopped {0} clean in half", target);
@dotnetdude
dotnetdude / gist:2780109
Created May 24, 2012 07:59
Check / Uncheck All checkboxes in Listview with checkbox on header using JQuery.
$('#<%=listviewname.ClientID%> input[id*="headercheckbox"]:checkbox').live('click', function () {
$('#<%=listviewname.ClientID%> input[id*="rowchekboxes"]:checkbox').attr('checked', this.checked);
});