Skip to content

Instantly share code, notes, and snippets.

@nghtctrl
nghtctrl / concat.py
Created June 18, 2023 22:07
WAVE File Concatenation Using PyWave
import PyWave
def concat(sound_files: list, output_path: Path) -> None:
data = []
for f in sound_files:
w = PyWave.open(f)
data.append(w.read())
w.close()
output = PyWave.open(
output_path, mode='w',
@nghtctrl
nghtctrl / prime-run
Created November 28, 2022 06:50
NVIDIA prime-run Shell Script
#!/bin/bash
export __NV_PRIME_RENDER_OFFLOAD=1
export __GLX_VENDOR_LIBRARY_NAME=nvidia
export __VK_LAYER_NV_optimus=NVIDIA_only
export VK_ICD_FILENAMES=/usr/share/vulkan/icd.d/nvidia_icd.json
exec "$@"