Skip to content

Instantly share code, notes, and snippets.

View jerkovicl's full-sized avatar

Luka Jerković jerkovicl

View GitHub Profile
@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 / 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 / 1st_readme.txt
Created March 17, 2021 17:48 — forked from dglaude/1st_readme.txt
Home Assistant Rainbow Loop with Ikea Tradfri RGB light
Please find below the various piece of code that together control my RGB light to loop in Rainbow.
Every two seconds, it change from one colour to another based on the value of the second.
So it compute 30 differents RGB value in a "circle", all with the same Saturation and Brightness both forced to 1.0
The transition from one colour to another is done in one seconds.
The name of my Tradfri RGB light bulb is "light.couleur"
A link to my video on Twitter:
https://twitter.com/DavidGlaude/status/1059596285991366657
@jerkovicl
jerkovicl / UltimateListIds.md
Created February 1, 2021 14:27 — forked from LanceMcCarthy/UltimateListIds.md
List of Package Ids
Name Package Id Version Source
7Zip 7zip.7zip 19.0.0 winget
Altap Salamander salamander choco
Alt-Tab Terminator alt-tab-terminator choco
AutoHotkey Lexikos.AutoHotkey 1.1.33.02 winget
AutoHotkey Store Edition HaukeGtze.AutoHotkeypoweredbyweatherlights.com Latest msstore (via winget)
Carnac
@jerkovicl
jerkovicl / ohmyposhv3.json
Created February 1, 2021 12:09 — forked from shanselman/ohmyposhv3.json
My ohMyPoshv3 json
{
"final_space": true,
"console_title": true,
"console_title_style": "folder",
"blocks": [
{
"type": "prompt",
"alignment": "left",
"horizontal_offset": 0,
"vertical_offset": 0,
@jerkovicl
jerkovicl / instructions.md
Created February 19, 2020 09:03 — forked from matthewjberger/instructions.md
Install a nerd font on ubuntu

1.) Download a Nerd Font

2.) Unzip and copy to ~/.fonts

3.) Run the command fc-cache -fv to manually rebuild the font cache