Merge branch 'master' of https://github.com/simono41/shell-scripte
This commit is contained in:
commit
b0247e37da
8 changed files with 76 additions and 11 deletions
|
@ -1,3 +1,4 @@
|
||||||
busybox mount -o remount rw /system/
|
busybox mount -o rw,remount /system
|
||||||
|
mount -o rw,remount /system
|
||||||
BEFEHL=ffmpeg
|
BEFEHL=ffmpeg
|
||||||
ln -s /data/data/com.termux/files/usr/bin/$BEFEHL /system/xbin/
|
ln -s /data/data/com.termux/files/usr/bin/$BEFEHL /system/xbin/
|
20
sgit
Executable file
20
sgit
Executable file
|
@ -0,0 +1,20 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -ex
|
||||||
|
|
||||||
|
if [[ "--help" == "${1}" ]]; then
|
||||||
|
echo "bash ./sgit user.email commit"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ -z "${2}" ]]; then
|
||||||
|
echo "Bitte email und commit angeben!!!"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
git config --global user.email "${1}"
|
||||||
|
git status
|
||||||
|
git add --all
|
||||||
|
git commit --all -m "${2}"
|
||||||
|
git show
|
||||||
|
git push
|
||||||
|
git status
|
5
wifi.txt
Executable file
5
wifi.txt
Executable file
|
@ -0,0 +1,5 @@
|
||||||
|
|
||||||
|
# WLAN aktivieren auf 100%
|
||||||
|
|
||||||
|
sudo modprobe -r rtl8723be
|
||||||
|
sudo modprobe rtl8723be ant_sel=1 fwlps=N
|
5
x11vnc.desktop
Normal file
5
x11vnc.desktop
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
[Desktop Entry]
|
||||||
|
Type=Application
|
||||||
|
Name=X11VNC
|
||||||
|
Exec=x11vnc -usepw -forever -display :0
|
||||||
|
StartupNotify=false
|
10
x11vnc.service
Normal file
10
x11vnc.service
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
[Unit]
|
||||||
|
Description=Start X11VNC
|
||||||
|
After=multi-user.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=simple
|
||||||
|
ExecStart=/usr/bin/x11vnc -display :0 -auth guess -forever -loop -noxdamage -repeat -rfbauth /etc/x11vnc.pass -rfbport 5900 -shared
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
|
@ -4,7 +4,7 @@ set -ex
|
||||||
|
|
||||||
read -p "Wie ist die URL? : " url
|
read -p "Wie ist die URL? : " url
|
||||||
read -p "Wo sollen die Dateien heruntergeladen werden? : " pfad
|
read -p "Wo sollen die Dateien heruntergeladen werden? : " pfad
|
||||||
read -p "Soll ein Video heruntergeladen werden oder Audio? [opus/audio/video/BEST/60k] : " format
|
read -p "Soll ein Video heruntergeladen werden oder Audio? [opus/audio/video/BEST/4k] : " format
|
||||||
|
|
||||||
if [ "$format" == "opus" ]
|
if [ "$format" == "opus" ]
|
||||||
then
|
then
|
||||||
|
@ -15,7 +15,7 @@ then
|
||||||
elif [ "$format" == "video" ]
|
elif [ "$format" == "video" ]
|
||||||
then
|
then
|
||||||
format="-f 43"
|
format="-f 43"
|
||||||
elif [ "$format" == "60k" ]
|
elif [ "$format" == "4k" ]
|
||||||
then
|
then
|
||||||
format="-f 303+251"
|
format="-f 303+251"
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -2,9 +2,20 @@
|
||||||
|
|
||||||
set -ex
|
set -ex
|
||||||
|
|
||||||
read -p "Wie ist die URL? : " url
|
if [ "$1" == "--help" ] || [[ -z "$1" ]]
|
||||||
read -p "Wo sollen die Dateien heruntergeladen werden? : " pfad
|
then
|
||||||
read -p "Soll ein Video heruntergeladen werden oder Audio? [opus/audio/video/BEST] : " format
|
echo "bash ./youtube-dl.sh URL PFAD FORMAT"
|
||||||
|
echo "Formate: opus/audio/video/BEST/4k"
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
url="$1"
|
||||||
|
pfad="$2"
|
||||||
|
format="$3"
|
||||||
|
|
||||||
|
#read -p "Wie ist die URL? : " url
|
||||||
|
#read -p "Wo sollen die Dateien heruntergeladen werden? : " pfad
|
||||||
|
#read -p "Soll ein Video heruntergeladen werden oder Audio? [opus/audio/video/BEST/4k] : " format
|
||||||
|
|
||||||
if [ "$format" == "opus" ]
|
if [ "$format" == "opus" ]
|
||||||
then
|
then
|
||||||
|
@ -15,9 +26,12 @@ then
|
||||||
elif [ "$format" == "video" ]
|
elif [ "$format" == "video" ]
|
||||||
then
|
then
|
||||||
format="-f 43"
|
format="-f 43"
|
||||||
|
elif [ "$format" == "4k" ]
|
||||||
|
then
|
||||||
|
format="-f 303+251"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
mkdir -p $pfad
|
mkdir -p $pfad
|
||||||
|
|
||||||
cd $pfad
|
cd $pfad
|
||||||
youtube-dl -i $format $url
|
youtube-dl -i --socket-timeout 10000 $format $url
|
||||||
|
|
16
youtube.sh
16
youtube.sh
|
@ -9,7 +9,14 @@ read -p "Wie heißt das Stichwort? : " wort
|
||||||
else
|
else
|
||||||
read -p "Wie ist die URL? : " url
|
read -p "Wie ist die URL? : " url
|
||||||
fi
|
fi
|
||||||
read -p "Soll ein Video heruntergeladen werden oder Audio? [opus/audio/video/BEST] : " format
|
|
||||||
|
read -p "Vollbild? : [Y/n] " vollbild
|
||||||
|
if [ "$vollbild" != "n" ]
|
||||||
|
then
|
||||||
|
voll="-fs"
|
||||||
|
fi
|
||||||
|
|
||||||
|
read -p "Soll ein Video heruntergeladen werden oder Audio? [opus/audio/video/BEST/4k] : " format
|
||||||
|
|
||||||
if [ "$format" == "opus" ]
|
if [ "$format" == "opus" ]
|
||||||
then
|
then
|
||||||
|
@ -20,11 +27,14 @@ then
|
||||||
elif [ "$format" == "video" ]
|
elif [ "$format" == "video" ]
|
||||||
then
|
then
|
||||||
format="-f 43"
|
format="-f 43"
|
||||||
|
elif [ "$format" == "4k" ]
|
||||||
|
then
|
||||||
|
format="-f 303+251"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$suche" == "suche" ]
|
if [ "$suche" == "suche" ]
|
||||||
then
|
then
|
||||||
youtube-dl "ytsearch:$wort" -q $format -o- | mplayer -fs -cache 8192 -
|
youtube-dl "ytsearch:$wort" -q $format -o- | mplayer $voll -cache 8192 -
|
||||||
else
|
else
|
||||||
youtube-dl -q $format -o- $url | mplayer -fs -cache 8192 -
|
youtube-dl -q $format -o- $url | mplayer $voll -cache 8192 -
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue