Skip to content

Instantly share code, notes, and snippets.

@shivasiddharth
shivasiddharth / minidigitalframe.ino
Created January 7, 2021 15:33
Arduino Sketch for Digital Photo Frame Project
/**************************************************************************************
Code for DIY Digitial Photoframe using Wemos D1 Mini and Adafruit 1.44" TFT Display
Written by Sid for Sid's E Classroom
https://www.youtube.com/c/SidsEClassroom
Arduino Libraries Used
1. ArduinoJson – 5.13.5
2. Adafruit ST7735 and ST7739 Library – 1.6.0
3. Adafruit GFX Library – 1.10.4
4. TFT – 1.2.1
@shivasiddharth
shivasiddharth / pi_encoder_volume.py
Last active September 3, 2022 20:09
Code to control your Pi volume using a Rotary Encoder
#***************************************************************************************
# Code for Controlling Pi Volume Using Rotary Encoder
# Original Code: https://bit.ly/2OcaQGq
# Re-Written by Sid for Sid's E Classroom
# https://www.youtube.com/c/SidsEClassroom
# All text above must be included in any redistribution.
# If you find this useful and want to make a donation -> https://paypal.me/sidsclass
# ***************************************************************************************
from RPi import GPIO
@shivasiddharth
shivasiddharth / gist:1c457e62413e7a1441dcab11b0fe7757
Created November 14, 2021 14:38
Fix Kodi Raspberry Pi OS No installation candidate issue
sudo sh -c "echo 'deb http://ftp.us.debian.org/debian/ bullseye main contrib non-free' >> /etc/apt/sources.list"
sudo sh -c "echo 'deb http://deb.debian.org/debian bullseye main contrib non-free' >> /etc/apt/sources.list"
sudo apt-get update
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys XXXXXXXXXXXX
Replace XXXXXXXXXX with the first alphanumeric key.
sudo apt-get update
sudo apt-get install kodi
@shivasiddharth
shivasiddharth / BlynkLocalSample.ino
Created December 7, 2021 15:03
Sample sketch for demonstrating ESP connection to Blynk local server.
/*************************************************************
Download latest Blynk library here:
https://github.com/blynkkk/blynk-library/releases/latest
Blynk is a platform with iOS and Android apps to control
Arduino, Raspberry Pi and the likes over the Internet.
You can easily build graphic interfaces for all your
projects by simply dragging and dropping widgets.
Downloads, docs, tutorials: http://www.blynk.cc
@shivasiddharth
shivasiddharth / Streama-Rpi-Setup.sh
Last active December 29, 2021 11:15
Script to setup Streama on raspberry Pi
#!/bin/bash
sudo apt-get install openjdk-8-jre openjdk-8-jdk -f -y
mkdir -p /home/${USER}/streama/data
cd /home/${USER}/streama/
wget -c https://gist.githubusercontent.com/shivasiddharth/f657e89c7ad00f441421278291b9ebf8/raw/2f5b2d94ae45b72fac2b0fb32a5bb9be21f0649a/streama_application.yml -O application.yml
wget -c https://github.com/streamaserver/streama/releases/download/v1.10.3/streama-1.10.3.jar -O server.jar
read -p "Do you wish to set the server to autostart on boot?" yn
case $yn in
@shivasiddharth
shivasiddharth / stremio-service-systemd-installer.sh
Last active April 26, 2025 10:23
Scripts to setup Stremio Server on SBCs
#!/bin/bash
# Define variables
SERVICE_NAME="stremio.service"
SERVICE_PATH="/etc/systemd/system/$SERVICE_NAME"
NODE_PATH=$(which node)
# Get the original username, even if running with sudo
if [ "$SUDO_USER" ]; then
CURRENT_USER=$SUDO_USER