Skip to content

Instantly share code, notes, and snippets.

View SJ50's full-sized avatar

Sameer Jain SJ50

  • Sydney,Australia
View GitHub Profile
### small function to add last command as alias
### usage "add <alias_name> "!!"
### example add kgp "!!"
function add(){
echo alias\ $1=\"$2\" >> ~/.bashrc
source ~/.bashrc
echo "refreshed..."
}
### Install pet
@SJ50
SJ50 / jioproxy_install.sh
Last active August 13, 2022 05:30
Install jioproxy and launch at boot on Android device
#!/data/data/com.termux/files/usr/bin/sh
#wget -O plugin.video.jiotv-2.0.13-beta.zip https://cloud.botallen.com/index.php/s/AbGWYFkpqC6fFbi/download
echo "Downloading plugin.video.jiotv-2.0.13-beta.zip"
filename="plugin.video.jiotv-2.0.13-beta.zip"
fileid=19wDb15YQL9w8RPSI5bx3dfu04RHn0fWv
curl -c ~/cookie -s -L "https://drive.google.com/uc?export=download&id=${fileid}" > /dev/null
curl -Lb ~/cookie "https://drive.google.com/uc?export=download&confirm=`awk '/download/ {print $NF}' ./cookie`&id=${fileid}" -o ${filename}
unzip plugin.video.jiotv-2.0.13-beta.zip
mkdir -p ~/.termux/boot/
touch ~/.termux/boot/jiotv
##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting. Do not change this entry.
##
127.0.0.1 localhost
255.255.255.255 broadcasthost
::1 localhost
127.0.0.1 iphonesubmissions.apple.com
@SJ50
SJ50 / autoProcessMedia.cfg
Created June 29, 2016 10:15
nzbtomedia config
# nzbToMedia Configuration
# For more information, visit https://github.com/clinton-hall/nzbToMedia/wiki
[General]
# Enable/Disable update notifications
version_notify = 1
# Enable/Disable automatic updates
auto_update = 1
# Set to the full path to the git executable
git_path = /usr/bin/git