Skip to content

Instantly share code, notes, and snippets.

@ImranR98
ImranR98 / RPi-Cam-setup.sh
Last active March 23, 2024 05:09
RPi Cam Setup Script: Turn a webcam connected to a Raspberry Pi (or anything else) into a local IP MJPEG camera, protected with a (self-signed) HTTPS and Basic authentication.
#!/bin/bash
set -e
if [ "$1" == 'firstTime' ]; then
FIRST_TIME=true
fi
header() {
underlinechar="-"
@ImranR98
ImranR98 / eOSUDS.sh
Last active March 23, 2023 06:33
elementaryOS 6 has great dark themes, but they only apply to "curated" appcenter apps. This script forces the system theme to work with regular Debian packages as well as non-curated Flatpak apps. It also optionally changes the wallpaper based on the theme. It also supports changing themes for the Mailspring email app (both .deb and Snap versions).
#!/usr/bin/bash
# =======================================
# eOS-Universal-Dark-Style
# =======================================
# elementaryOS 6 has great dark themes, but they only apply to "curated" appcenter apps
# This script forces the system theme to work with regular Debian packages as well as non-curated Flatpak apps
# It also optionally changes the wallpaper based on the theme