Skip to content

Instantly share code, notes, and snippets.

View hgoebl's full-sized avatar

Heinrich Goebl hgoebl

View GitHub Profile
@nitiwari-dev
nitiwari-dev / grant_all_permissions.sh
Last active July 1, 2023 04:45
How to grant all permissions at once in marshmallow using shell script
#!/bin/sh
#Author - Nitesh Tiwari
#Github - https://github.com/nitiwari-dev
#add your package_name
PACKAGE=com.coderconsole
#create array with all the permission you need to enabled
PKG_ARRAY='android.permission.CALL_PHONE
android.permission.GET_ACCOUNTS
@kellyrmilligan
kellyrmilligan / s3Sync.sh
Created June 8, 2017 13:38
Sync files to s3 and set cache control headers
#!/bin/bash
if [[ "$1" != "" ]]; then
S3BUCKETNAME="$1"
else
echo ERROR: Failed to supply S3 bucket name
exit 1
fi
aws s3 sync build s3://$S3BUCKETNAME --delete --cache-control max-age=31536000,public