Skip to content

Instantly share code, notes, and snippets.

View bartosz121's full-sized avatar

Bartosz Magiera bartosz121

  • Poland
View GitHub Profile
import {
  context,
  SpanStatusCode,
  trace,
  type Context,
} from '@opentelemetry/api'

export type WithOtelContext = {
  __otelContext?: Context
@bartosz121
bartosz121 / config
Created December 18, 2025 09:32
ghostty config
# This is the configuration file for Ghostty.
#
# This template file has been automatically created at the following
# path since Ghostty couldn't find any existing config files on your system:
#
# /home/bartosz/.config/ghostty/config
#
# The template does not set any default options, since Ghostty ships
# with sensible defaults for all options. Users should only need to set
# options that they want to change from the default.
@bartosz121
bartosz121 / vite-env.d.ts
Created December 1, 2025 12:15
vite plugin git version
declare const __APP_VERSION__: string; // Use this anywhere in the app
@bartosz121
bartosz121 / main.py
Last active October 2, 2023 07:09
python voice activity detection example (pyaudio + webrtcvad)
import wave
from datetime import datetime
import pyaudio
import webrtcvad
if __name__ == "__main__":
p = pyaudio.PyAudio()
sample_rate = 16000