Skip to content

Instantly share code, notes, and snippets.

View simoarpe's full-sized avatar

Simone Arpe simoarpe

View GitHub Profile
@phraemer
phraemer / deleteRemoteMergedBranches.sh
Created October 25, 2016 08:06
Script deletes any merged remote branches after confirmation
#!/bin/bash
branchesToDelete=`git branch --merged | egrep -v "(^\*|master)"`
echo "The following branches will be deleted..."
echo ${branchesToDelete}
read -p "Are you sure? " -n 1 -r
echo # (optional) move to a new line
if [[ $REPLY =~ ^[Yy]$ ]]
@granoeste
granoeste / EachDirectoryPath.md
Last active April 4, 2024 22:32
[Android] How to get the each directory path.

System directories

Method Result
Environment.getDataDirectory() /data
Environment.getDownloadCacheDirectory() /cache
Environment.getRootDirectory() /system

External storage directories