Skip to content

Instantly share code, notes, and snippets.

View andreanidouglas's full-sized avatar
🎯
data in the morning; code in the evening

Douglas R Andreani andreanidouglas

🎯
data in the morning; code in the evening
View GitHub Profile
@andreanidouglas
andreanidouglas / convert.py
Created April 24, 2024 21:51
m3u to mp3 320
import os
import shutil
import pathlib
from urllib.parse import unquote
FILE_PATH="E:\\a-metal1.m3u"
def app():
lines = []
with open(FILE_PATH, "r") as f:
@andreanidouglas
andreanidouglas / ollama-webui-gpu.yml
Last active April 1, 2025 13:39
Docker compose to run ollama web-ui with gpu attached
services:
ollama:
image: ollama/ollama:latest
ports:
- 11434:11434
volumes:
- ollama:/root/.ollama
deploy:
resources:
reservations:
@andreanidouglas
andreanidouglas / qemu-run.ps1
Created April 6, 2025 01:50
Run Linux guest on Windows host with qemu hw accelerated
&qemu-system-x86_64.exe `
-accel whpx,kernel-irqchip=off `
-bios OVMF.fd `
-machine q35 `
-m 8G `
-smp 12 `
-cpu kvm64,hv_passthrough `
-hda "debian.qcow2" `
-vga qxl `
-usb -device usb-tablet `