Skip to content

Instantly share code, notes, and snippets.

View onyedikachi-david's full-sized avatar

David Anyatonwu onyedikachi-david

View GitHub Profile
@onyedikachi-david
onyedikachi-david / mlx_whisper_realtime.py
Created January 3, 2025 13:24 — forked from simonw/mlx_whisper_realtime.py
mlx-whisper real time audio
# /// script
# dependencies = [
# "SpeechRecognition",
# "mlx-whisper",
# "pyaudio",
# ]
# ///
import speech_recognition as sr
import numpy as np
@onyedikachi-david
onyedikachi-david / firewall.sh
Created October 30, 2024 23:11 — forked from andrasbacsai/firewall.sh
Update a Hetzner Firewall rule with your IP address
#!/bin/bash
# Script to update a firewall rule in a Hetzner Firewall with your current IP address.
# Good if you would like to restrict SSH access only for your current IP address (secure).
#################
# WARNING: This script will overwrite all rules in the firewall rules, so make sure you
# added all the required rules.
# I use a separate firewall rule just for SSH access.
#################