Skip to content

Instantly share code, notes, and snippets.

View krav4enkodm's full-sized avatar
:octocat:
Coding

Dmytro Kravchenko krav4enkodm

:octocat:
Coding
View GitHub Profile

Whisper.cpp on Ubuntu — install + build + “Dictate Toggle” hotkey

This guide installs whisper.cpp on Ubuntu and sets up an English push-to-talk toggle:

  • Press hotkey once → start recording
  • Press hotkey again → stop → transcribe → paste at cursor

It’s written to work for most Ubuntu machines. GPU is optional.


Claude prompting guide

General tips for effective prompting

1. Be clear and specific

  • Clearly state your task or question at the beginning of your message.
  • Provide context and details to help Claude understand your needs.
  • Break complex tasks into smaller, manageable steps.

Bad prompt:

@krav4enkodm
krav4enkodm / compare-performance.js
Last active August 24, 2022 18:47
Array.include vs Set.has
const arr = Array.from({ length: 10000 }, (_, i) => i);
const set = new Set(arr);
function checkArr() {
return arr.filter((item) => arr.includes(item));
}
function checkSet() {
return arr.filter((item) => set.has(item));
}