Skip to content

Instantly share code, notes, and snippets.

View ignasi's full-sized avatar

Ignasi Busquets ignasi

View GitHub Profile
@ignasi
ignasi / resizer-xxhdpi.sh
Last active February 7, 2021 15:29
Android XXHDPI Resizer (Tested on OS X Mavericks)
#!/bin/bash
f=$(pwd)
mkdir drawable-mdpi drawable-hdpi drawable-xhdpi drawable-xxhdpi
# fake argv and argc in bash
argc=$#; argv[0]=$0 # argv[0] is a prog name
for foo in $( seq $argc )
do
@ignasi
ignasi / db_getter.sh
Created January 30, 2014 11:43
Get database from an Android app (Android 4.3+)
#!/bin/bash
# Android 4.3+ changes app's internal directory permissions and you can not just pull your
# databases to your computer, so I did this as a workaround to extract my databases.
# I only use it for debug, use it under your responsability.
package=$1
db_name=$2
path="/data/data/$package/"
@ignasi
ignasi / post-commit
Last active December 27, 2015 15:19 — forked from consti/post-commit
Take a photo of you, whenever you make a commit
#!/bin/sh
#############
# This is my fork of consti/post-commit gist: https://gist.github.com/consti/3082406
# It uses a more human date naming and stores captures from same repo to same directory.
# I have also added branch name at filename.
#############
#
# Take a photo of you, whenever you make a commit