This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
SEMPATH="/run/lock" | |
SEMNAME="" | |
semtake() { | |
local name="$1" | |
[ -z "$name" ] && echo "Missing semaphore name!" && return 1 | |
local j="$2" | |
[ -z "$2" ] && j=$(nproc) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# TorSocksMultiCore | |
# a wrapper for torsocks for multicore tor execution | |
# | |
# This script starts a new tor daemon everytime it is invoked. | |
# This way every command or shell will have it's own tor daemon. | |
# The usage is functionally equivalent to torsocks itself. | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "Arguments: " | |
echo "${@}" | |
set -x #explain steps for debug purposes | |
set -e #exit when any command executed fails unexpectedly | |
IFS=$'\n' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
DEVICE="unknown" | |
PIC_META_FILE="up_param_files_${DEVICE}.txt" | |
if [ "$1" = "" ]; then | |
echo "This script helps you create your own up_param file for modifying bootloader splashes on samsung devices." | |
echo | |
echo "Download the stock firmware, extract it until you have up_param.bin" | |
echo "Set your device codename by editing this script. (Currently set to \"$DEVICE\")" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rm -r /storage/emulated/0/whatsapp_exports | |
mkdir -v /storage/emulated/0/whatsapp_exports | |
cp -r /data/data/com.whatsapp/files/Stickers /storage/emulated/0/whatsapp_exports | |
mkdir /storage/emulated/0/whatsapp_exports/Avatars | |
mkdir /storage/emulated/0/whatsapp_exports/AvatarsThumbnail | |
cp /data/data/com.whatsapp/files/Avatars/* /storage/emulated/0/whatsapp_exports/AvatarsThumbnail | |
cp /data/data/com.whatsapp/cache/Profile\ Pictures/* /storage/emulated/0/whatsapp_exports/Avatars | |
cp /data/data/com.whatsapp/files/me.jpg /storage/emulated/0/whatsapp_exports/Avatars | |
cp /data/data/com.whatsapp/files/status /storage/emulated/0/whatsapp_exports/status.txt | |
cp /data/data/com.whatsapp/files/statistics.json /storage/emulated/0/whatsapp_exports |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [[ $(id -u) -ne 0 ]]; then | |
echo "This script must be run as root" | |
exit 1 | |
fi | |
if [ -z $(pm list packages | grep com.snapchat.android) ]; then | |
echo "Snapchat not found" | |
exit 1 | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
appops set com.snapchat.android READ_EXTERNAL_STORAGE deny | |
appops set com.snapchat.android WRITE_EXTERNAL_STORAGE deny | |
appops set com.snapchat.android READ_MEDIA_AUDIO ignore | |
appops set com.snapchat.android WRITE_MEDIA_AUDIO ignore | |
appops set com.snapchat.android READ_MEDIA_VIDEO ignore | |
appops set com.snapchat.android WRITE_MEDIA_VIDEO ignore | |
appops set com.snapchat.android READ_MEDIA_IMAGES ignore | |
appops set com.snapchat.android WRITE_MEDIA_IMAGES ignore | |
appops set com.snapchat.android LEGACY_STORAGE ignore |