Monthly Archives: June 2021

Using rsync to copy a big file

rsync -avS --progress -h fromPath/fileToCopy destPath/
Code language: Bash (bash)

Backup all data on Android phones

adb backup -shared -all -f ./Backupfilename.ab

Howto mount it on a computer
dd if=Backupfilename.ab skip=512 bs=128k iflag=nocache,skip_bytes oflag=nocache,append conv=notrunc of=OutfileimageEXT4.img

do this with all the ab files it creates, change the if= to the next file, leave the parameters as is.

Mount
sudo mount -t ext4 -o loop OoutfileimageEXT4.img /media/username/mountpoint_for_your_image

Github complains about private email address and cannot push

Find your email here: https://github.com/settings/emails

Get your ID here https://api.github.com/users/username

change globaly
git config –global user.email “{ID}+{username}@users.noreply.github.com”

or only the spesific local repo
git config user.email “{ID}+{username}@users.noreply.github.com”

git commit –amend –reset-author -m “message for log”
git push

ref: https://stackoverflow.com/questions/43863522/error-your-push-would-publish-a-private-email-address/51097104#51097104