Skip to content

Instantly share code, notes, and snippets.

View maledorak's full-sized avatar
🤔
hmmm...

Mariusz Korzekwa maledorak

🤔
hmmm...
  • Warsaw, Poland
  • 13:27 (UTC +02:00)
View GitHub Profile
You are aidevs
@maledorak
maledorak / whisper.sh
Last active May 23, 2023 21:48
Microphone voice transcription and translation with OpenAI Whisper
#!/bin/bash
# ====================================
# author: https://github.com/maledorak
# email: maledorak@gmail.com
# version: 0.1
# description: Script for recording voice from microphone and sending to Whisper OpenAI
#
# how to use:
# 1. run it - this will start recording sound: ./whisper.sh -c transcribe -l 30
// per https://docs.npmjs.com/misc/scripts, npm exposes a bunch of variables to
// the environment prefixed with npm_config_*, npm_package_* and npm_lifecycle_*.
// Here's a list of all variables exposed in my setup.
npm_config_access=
npm_config_allow_same_version=
npm_config_also=
npm_config_always_auth=
npm_config_argv='{"remain":[],"cooked":["run","foo"],"original":["run","foo"]}'
npm_config_auth_type=legacy
@maledorak
maledorak / dmenu_hotkeys.py
Last active May 29, 2023 07:27
i3 hotkeys in dmenu or rofi
#!/usr/bin/env python3
import os
import sys
from re import compile
from subprocess import run, Popen, PIPE
__author__ = "Mariusz 'Maledorak' Korzekwa"
__credits__ = ["Mariusz 'Maledorak' Korzekwa"]
__license__ = "CC BY 4.0"