Skip to content

Instantly share code, notes, and snippets.

@shivasiddharth
shivasiddharth / piobsinstaller.sh
Last active January 24, 2023 04:46
Script for installing OBS on Raspberry Pi
#!/bin/bash
echo ""
echo "Checking memory size.........."
Totalmem=$(cat /proc/meminfo|grep MemTotal|grep -o '[0-9]*')
if (($Totalmem > 3500000)); then
echo ""
echo "You have got enough memory. No need for a swap partition.........."
echo ""
else
@shivasiddharth
shivasiddharth / videoupscaler.py
Last active May 28, 2025 17:21
Script to upscale videos using OpenCV and ffmpeg
#!/usr/bin/env python
# Written by Shivasiddharth a.k.a Sid
# Youtube channel https://www.youtube.com/c/SidsEClassroom
# Share this script without removing the author's name
# This piece of script Upscales or Downscales videos using Opencv
# If the original video has an audio stream,
# it will merge the audio from the source file with the scaled video
@shivasiddharth
shivasiddharth / nasmounter.sh
Last active August 4, 2024 11:55
Script to mount NAS in Linux
#!/bin/bash
set -o errexit
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root (use sudo)" 1>&2
exit 1
fi
sudo apt-get install cifs-utils
@shivasiddharth
shivasiddharth / kodiinstaller.sh
Last active February 26, 2020 16:02
Script to install Kodi
#!/bin/bash
set -o errexit
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root (use sudo)" 1>&2
exit 1
fi
apt-get install kodi
@shivasiddharth
shivasiddharth / recorder.py
Created January 14, 2019 19:46 — forked from sloria/recorder.py
WAV recording functionality using pyaudio
# -*- coding: utf-8 -*-
'''recorder.py
Provides WAV recording functionality via two approaches:
Blocking mode (record for a set duration):
>>> rec = Recorder(channels=2)
>>> with rec.open('blocking.wav', 'wb') as recfile:
... recfile.record(duration=5.0)
Non-blocking mode (start and stop recording):
//https://www.youtube.com/c/SidsEClassroom
#include <ESP8266WiFi.h>
#include <ESP8266mDNS.h>
#include <WiFiUdp.h>
const char* ssid = ""; //Set your wifi network name(ssid)
const char* password = ""; //Set your router password
int RelayPin = D1; //Relay Shield is controlled by pin 1 (D1)