1
0

Small fixed and 2 new scripts

This commit is contained in:
2020-11-15 01:00:00 +01:00
parent 175773c856
commit 7ca2b409de
6 changed files with 25 additions and 2 deletions

12
foscamdecrypt.sh Executable file
View File

@@ -0,0 +1,12 @@
#!/bin/bash
# Passwords from: http://www.openipcam.com/forum/index.php/topic,687.msg3663.html
PASSWORDS=("Wxift*" "Wxift*v2" "Wxift*v3" "Pxift*" "Pxift*v2" "Pxift*v3" "WT8Nk*" "WT8Nk*v2" "ipc.fos~" "#foscam&*234" "aaa1111" "aaaa3234")
for p in "${PASSWORDS[@]}"; do
openssl enc -d -aes-128-cbc -k $p -in "$1" > "$1.tar.gz"
RETCODE=$?
if [ "$RETCODE" -eq 0 ]; then
echo "Successfully decoded using password: $p"
break
fi
rm "$1.tar.gz"
done

7
gits.sh Executable file
View File

@@ -0,0 +1,7 @@
#!/bin/sh
STATUS=`git status -s`
if [ -n "$STATUS" ]; then
echo "Modifications found in $PWD"
echo "$STATUS"
fi

View File

@@ -1,4 +1,4 @@
#!/bin/sh
# Install mp3gain from: https://launchpad.net/~flexiondotorg/+archive/ubuntu/audio
mp3gain -k -p -a -s i *.mp3
LD_PRELOAD= mp3gain -k -p -a -s i *.mp3
#replaygain *.mp3

View File

@@ -1,4 +1,4 @@
#!/bin/sh
# Install mp3gain from: https://launchpad.net/~flexiondotorg/+archive/ubuntu/audio
mp3gain -k -p -r -s i "$@"
LD_PRELOAD= mp3gain -k -p -r -s i "$@"
#replaygain --no-album "$@"

View File

@@ -10,6 +10,8 @@ if [ -z "$CONCURRENCY_LEVEL" ]; then
CONCURRENCY_LEVEL=1
fi
LD_PRELOAD=
echo "Processing using $CONCURRENCY_LEVEL processes..."
# -q - Quiet mode: no status messages
# -k - automatically lower Track/Album gain to not clip audio

2
stopbracketedpaste.sh Executable file
View File

@@ -0,0 +1,2 @@
#!/bin/sh
printf "\e[?2004l"