Skip to content

Instantly share code, notes, and snippets.

View jerkovicl's full-sized avatar

Luka Jerković jerkovicl

View GitHub Profile

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)
@jerkovicl
jerkovicl / migrate-material-buttons.js
Created March 25, 2025 23:08 — forked from eneajaho/migrate-material-buttons.js
A migration to migrate all material buttons to use the input for the appearance instead of the selector
const fs = require('fs').promises;
const path = require('path');
const { EOL } = require('os'); // End Of Line character
// --- Configuration ---
const PROJECT_ROOT = process.argv[2] || '.'; // Get project root from arg or use current dir
const EXCLUDE_DIRS = ['node_modules', '.angular', 'dist', 'e2e', 'coverage']; // Directories to skip
const HTML_SUFFIX = '.html';
const APPLY_CHANGES = process.argv.includes('--apply'); // Check for --apply flag
// --- End Configuration ---
@jerkovicl
jerkovicl / analyze-components.js
Created March 25, 2025 23:08 — forked from eneajaho/analyze-components.js
Check components on project if they are OnPush
#!/usr/bin/env node
const fs = require('fs');
const path = require('path');
const ts = require('typescript'); // Requires 'npm install typescript'
// --- Configuration ---
const DEFAULT_PROJECT_PATH = '.'; // Default to current directory
const EXCLUDED_DIRS = ['node_modules', 'dist', '.angular', '.vscode', '.git']; // Directories to skip
const COMPONENT_FILE_SUFFIX = '.component.ts';
@jerkovicl
jerkovicl / userDefineLang_Dockerfile.xml
Created April 5, 2023 11:58 — forked from centic9/userDefineLang_Dockerfile.xml
notepad++ syntax highlighting for Dockerfiles, store at something like C:\Users\[user]\AppData\Roaming\Notepad++\userDefineLangs\userDefineLang_Dockerfile.xml
<NotepadPlus>
<UserLang name="Dockerfile" ext="Dockerfile" udlVersion="2.1">
<Settings>
<Global caseIgnored="no" allowFoldOfComments="no" foldCompact="no" forcePureLC="1" decimalSeparator="0" />
<Prefix Keywords1="no" Keywords2="yes" Keywords3="no" Keywords4="no" Keywords5="no" Keywords6="no" Keywords7="no" Keywords8="no" />
</Settings>
<KeywordLists>
<Keywords name="Comments">00# 01 02 03 04</Keywords>
<Keywords name="Numbers, prefix1"></Keywords>
<Keywords name="Numbers, prefix2"></Keywords>
@jerkovicl
jerkovicl / github_copilot_cli_powershell.md
Last active April 2, 2023 11:36
How to set alias in powershell for Github Copilot CLI
function checkResponse {
  if ( $Args[0] -eq $true ) {
    $fileContents = Get-Content $tempFile
    Write-Host $fileContents
    # write contents of file to console (basically EVAL())
    Invoke-Expression $fileContents
  }
  else {
// Imports the Google Cloud client library
import { TextToSpeechClient } from '@google-cloud/text-to-speech';
import fs from 'fs-extra';
import { promisify } from 'util';
// Creates a client
const client = new TextToSpeechClient();
const convertSSMLtoAudio = async (ssmlText: any, langCode: string, gender: string) =>
// eslint-disable-next-line no-async-promise-executor
new Promise(async (resolve, reject) => {
try {

LERNA COMMANDS

Versioning cheatsheet

  • MAJOR version when you make incompatible API changes,
  • MINOR version when you add functionality in a backward-compatible manner, and
  • PATCH version when you make backward-compatible bug fixes.
@jerkovicl
jerkovicl / git.merge.md
Created March 3, 2022 15:52 — forked from hashg/git.merge.md
How to get changes from another branch
  • go to the master branch our-team

git checkout our-team

  • pull all the new changes from our-team branch

git pull

  • go to your branch featurex

git checkout featurex

  • merge the changes of our-team branch into featurex branch
@jerkovicl
jerkovicl / sonoff_mini_esphome.yaml
Created November 7, 2021 11:34
EspHome Config for Sonoff Mini
substitutions:
device_name: kitchen_sonoff_mini
device_friendly_name: Kitchen Sonoff Mini Switch
device_ip: 192.168.5.13
light_id: light.kitchen_lights
button_gpio: GPIO00
led_status_gpio: GPIO13
relay_gpio: GPIO12
esphome: