Skip to content

Instantly share code, notes, and snippets.

View halimb's full-sized avatar

Halim Bouguedra halimb

  • Evercam
  • Dublin, Ireland
View GitHub Profile
/etc/apt/sources.list:## See sources.list(5) for more information, especialy
/etc/apt/sources.list:# Remember that you can only use http, ftp or file URIs
/etc/apt/sources.list:# CDROMs are managed through the apt-cdrom tool.
/etc/apt/sources.list:# deb cdrom:[Pop_OS 22.04 _Jammy Jellyfish_ - Release amd64 (20230118)]/ jammy main restricted
/etc/apt/sources.list.d/docker.list:deb [arch=amd64 signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu jammy stable
/etc/apt/sources.list.d/github-cli.list:deb [arch=amd64 signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main
/etc/apt/sources.list.d/google-chrome.list:### THIS FILE IS AUTOMATICALLY CONFIGURED ###
/etc/apt/sources.list.d/google-chrome.list:# You may comment out this entry, but any other modifications may be lost.
/etc/apt/sources.list.d/google-chrome.list:deb [arch=amd64] https://dl.google.com/linux/chrome/deb/ stable main
/etc/apt/sources.list.d/heroku.list:deb https://cli
@halimb
halimb / webcam_rtsp_stream.sh
Last active June 24, 2025 11:56
Webcam RTSP streaming script (using MediaMTX)
#!/bin/bash
MEDIAMTX_DIR="$HOME/mediamtx"
MEDIAMTX_VERSION="v1.11.3"
CONFIG_FILE="/tmp/mediamtx.yml"
setup_mediamtx() {
if [ ! -f "$MEDIAMTX_DIR/mediamtx" ]; then
mkdir -p "$MEDIAMTX_DIR" && cd "$MEDIAMTX_DIR"
echo "Setting up MediaMTX $MEDIAMTX_VERSION..."