Skip to content

Instantly share code, notes, and snippets.

View jerkovicl's full-sized avatar

Luka Jerković jerkovicl

View GitHub Profile
@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:
@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,