Skip to content

Instantly share code, notes, and snippets.

View wasimosmanhome's full-sized avatar

Wasim Osman wasimosmanhome

  • Canada
View GitHub Profile
@wasimosmanhome
wasimosmanhome / MJPG-Streamer.sh
Last active February 7, 2022 00:10
MJPG-Streamer.sh
# https://www.sigmdel.ca/michel/ha/rpi/streaming_en.html
sudo apt-get install cmake libjpeg9-dev -y
wget https://github.com/jacksonliam/mjpg-streamer/archive/master.zip
unzip master.zip
cd mjp*g-*
@wasimosmanhome
wasimosmanhome / 7zip installation
Last active October 15, 2021 20:55
7zip installation
# https://snapcraft.io/install/p7zip-desktop/raspbian
sudo apt update
sudo apt install snapd
sudo reboot
sudo snap install core
sudo snap install p7zip-desktop
@wasimosmanhome
wasimosmanhome / winrar_raspbian
Created June 24, 2021 08:20
winrar raspbian
sudo nano /etc/apt/sources.list
you will get something like this -->
deb http://archive.raspbian.org/raspbian wheezy main
deb-src http://archive.raspbian.org/raspbian wheezy main
Okay, because modify the lines so that it looks like this-->
deb http://archive.raspbian.org/raspbian wheezy main contrib non-free
deb-src http://archive.raspbian.org/raspbian wheezy main contrib non-free
@wasimosmanhome
wasimosmanhome / cec_utils.py
Last active July 14, 2022 00:21
cec_utils.py
# https://pimylifeup.com/raspberrypi-hdmi-cec/
# https://pypi.org/project/console-menu/
# CEC Commands
# https://pimylifeup.com/raspberrypi-hdmi-cec/
# Installation
# sudo apt install cec-utils -y
@wasimosmanhome
wasimosmanhome / rename a usb drive
Last active July 3, 2023 23:41
rename a usb drive
# https://tecadmin.net/format-usb-in-linux/
df -h
sudo sync && sudo umount /dev/sda1 (Unmount using Gparted)
sudo mkfs.ext4 /dev/sda
@wasimosmanhome
wasimosmanhome / banglachannel.m3u
Last active August 13, 2022 05:43
banglachannel.m3u
#EXTINF:0 tvg-language="Bangla" tvg-logo="https://i.imgur.com/WpMA9kC.png" group-title="Bangladeshi",1.Anando TV
https://tempx.jagobd.com:441/c5V6mmMyX7RpbEU9Mi8xNy8yMDEOGIDU6RgzQ6NTAgdEoaeFzbF92YWxIZTO0U0ezN1IzMyfvcGVMZEJCTEFWeVN3PT0mdFsaWRtaW51aiPhnPTI/anandatv.stream/chunks.m3u8
#EXTINF:0 tvg-language="Bangla" tvg-logo="https://s4.gifyu.com/images/imageca9d0bcf608394fd.png" group-title="Bangladeshi",2.Asian TV
http://209.126.120.153/hls/asiantv.m3u8
#EXTINF:0 tvg-language="Bangla" tvg-logo="https://s6.gifyu.com/images/image27cfa7002786c232.png" group-title="Bangladeshi",3.ATN Bangla
https://tempx.jagobd.com:441/c5V6mmMyX7RpbEU9Mi8xNy8yMDEOGIDU6RgzQ6NTAgdEoaeFzbF92YWxIZTO0U0ezN1IzMyfvcGVMZEJCTEFWeVN3PT0mdFsaWRtaW51aiPhnPTI/atnbd-8-org.stream/chunks.m3u8
#EXTINF:0 tvg-language="Bangla" tvg-logo="https://s4.gifyu.com/images/image2b075f0e0fd37461.png" group-title="Bangladeshi",4.ATN News
https://tempx.jagobd.com:441/c5V6mmMyX7RpbEU9Mi8xNy8yMDEOGIDU6RgzQ6NTAgdEoaeFzbF92YWxIZTO0U0ezN1IzMyfvcGVMZEJCTEFWeVN3PT0md
@wasimosmanhome
wasimosmanhome / plex_tautulli.sh
Created September 5, 2020 05:09
plex_tautulli.sh
sudo apt-get install git-core python3.7
cd /opt
sudo git clone https://github.com/Tautulli/Tautulli.git
sudo addgroup tautulli && sudo adduser --system --no-create-home tautulli --ingroup tautulli
sudo chown -R tautulli:tautulli /opt/Tautulli
@wasimosmanhome
wasimosmanhome / smb.conf
Last active June 23, 2021 20:49
smb.conf
#
# Sample configuration file for the Samba suite for Debian GNU/Linux.
#
#
# This is the main Samba configuration file. You should read the
# smb.conf(5) manual page in order to understand the options listed
# here. Samba has a huge number of configurable options most of which
# are not shown in this example
#
@wasimosmanhome
wasimosmanhome / rasp_remove.sh
Created August 30, 2020 02:20
rasp_remove.sh
#!/bin/bash
raspap_dir="/etc/raspap" raspap_user="www-data" version=`sed 's/\..*//' /etc/debian_version`
# Determine Raspbian version and set default home location for lighttpd
webroot_dir="/var/www/html" if [ $version -eq 10 ]; then version_msg="Raspbian 10.0 (Buster)"
php_package="php7.1-cgi"
elif [ $version -eq 9 ]; then version_msg="Raspbian 9.0 (Stretch)" php_package="php7.0-cgi" else
version_msg="Raspbian 8.0 (Jessie) or earlier" webroot_dir="/var/www" php_package="php5-cgi"
fi phpcgiconf="" if [ "$php_package" = "php7.1-cgi" ]; then phpcgiconf="/etc/php/7.1/cgi/php.ini" elif [
"$php_package" = "php7.0-cgi" ]; then
phpcgiconf="/etc/php/7.0/cgi/php.ini" elif [ "$php_package" = "php5-cgi" ]; then
@wasimosmanhome
wasimosmanhome / raspAP installation (unattended)
Last active August 28, 2020 14:25
raspAP installation (unattended)
curl -sL https://install.raspap.com | bash -s -- -y
sudo iptables -t nat -I POSTROUTING -d 127.0.0.0/8 -j ACCEPT