Skip to content

Instantly share code, notes, and snippets.

View akazakou's full-sized avatar
☢️

Andrei Kazakou akazakou

☢️
  • Telly
  • Austin, TX, USA
  • 09:24 (UTC -05:00)
  • LinkedIn in/akazakou
View GitHub Profile
@akazakou
akazakou / openai_transcribe.sh
Created September 19, 2025 18:16
There is sample for the using OpenAI from console to transcript Speech To Text. Required OpenAI key, ffmpeg and curl
# Transcribe long videos via OpenAI Audio API in 1400s chunks
openai_transcribe() {
local USAGE
USAGE=$'%F{cyan}Usage:%f openai_transcribe <input_video> <output_text> [--model MODEL] [--chunk SECONDS] [--format text|srt|vtt|json]\n'\
$'%F{cyan}Example:%f openai_transcribe "2025-09-19 11-04-11.mkv" meeting.txt --chunk 1400 --model gpt-4o-transcribe\n'\
$'\nOptions:\n'\
$' --model OpenAI model (default: gpt-4o-transcribe)\n'\
$' --chunk Chunk length in seconds (default: 1400)\n'\
$' --format response_format (text|srt|vtt|json; default: text)\n'\
$'\nNotes:\n'\
@akazakou
akazakou / fans_control.js
Created November 13, 2024 00:39
There is small Node.js script to make fans on the X10DSC+ motherboard more silent to allow use servers based on that motherboard to be used in the home solutions.
#!/usr/bin/env node
const { exec } = require('child_process');
// IPMI credentials and host
const ipmiHost = '192.168.86.214';
const ipmiUser = 'ADMIN';
const ipmiPass = 'ADMIN';
// Variables to hold the average temperature and the flag for high temperature
@akazakou
akazakou / satisfactory.yaml
Created December 2, 2021 08:59
Kuberneted Deployment for the Satisfactory Experemental Dedicated Server
---
apiVersion: v1
kind: Namespace
metadata:
name: satisfactory
labels:
istio-injection: enabled
---
apiVersion: v1
kind: PersistentVolume