Skip to content

Instantly share code, notes, and snippets.

@moba
moba / find-low-bitrate.sh
Created December 13, 2019 21:49
scans one mp3 per directory and prints files with low bitrate
#!/bin/bash
scanfile ()
{
FILE="${1//[$'\n']}" # drop newline from argument
BITRATE=$(/usr/bin/mediainfo "$FILE" --Output=JSON | jq '.media.track[0].OverallBitRate')
BITRATE="${BITRATE//[$'\"']}" # remove "
if [[ $BITRATE -lt "130000" ]]; then
echo $BITRATE " " $FILE
fi

Keybase proof

I hereby claim:

  • I am moba on github.
  • I am moba (https://keybase.io/moba) on keybase.
  • I have a public key whose fingerprint is 7A3D AD44 08A0 009B 4DE9 C855 858E E1C3 B8A4 568D

To claim this, I am signing this object:

#!/bin/sh
set -x
# adb shell pm list packages -d
# adb shell pm list packages
adb shell pm uninstall -k --user 0 com.sonymobile.entrance
adb shell pm uninstall -k --user 0 com.sonymobile.xperiatransfermobile
adb shell pm uninstall -k --user 0 com.sonymobile.phoneusage
adb shell pm uninstall -k --user 0 com.sonymobile.googleanalyticsproxy