Skip to content

Instantly share code, notes, and snippets.

View crossle's full-sized avatar
🌐

Crossle Song crossle

🌐
View GitHub Profile
@crossle
crossle / EXIFdate2photo.sh
Last active February 19, 2017 03:25 — forked from unabridgedxcrpt/EXIFdate2photo.sh
Grab the EXIF date from original date time field and overlay it on a photo with white text with black stroke font.
#!/bin/sh
#Credit: http://dptnt.com/2009/08/add-date-time-stamp-to-jpeg-photos-using-free-software-mac-linux-nix-edition/
# I added:
# 1. formatting the EXIF date to use the month name and remove the seconds from the time display
# 2. outline the text for lighter backgrounds and better contrast in more images.
#Dependencies: imagemagick, exiftool
# Change the font variable to point to your font location
##font="~/Library/Fonts/digital-7 (mono).ttf"
## digital 7 for to make date time like the *olden days*: http://www.dafont.com/digital-7.font
@crossle
crossle / install_theos.sh
Created October 21, 2015 08:51 — forked from tom-go/install_theos.sh
Theos install script
#!/bin/bash
export THEOS=/opt/theos
# clone theos.git
cd /opt
git clone git://github.com/DHowett/theos.git
# clone iphoneheaders.git
cd $THEOS
mv include include.bak
@crossle
crossle / dex.sh
Last active August 29, 2015 14:07 — forked from JakeWharton/dex.sh
function dex-method-count() {
cat $1 | head -c 92 | tail -c 4 | hexdump -e '1/4 "%d\n"'
}
function dex-method-count-by-package() {
dir=$(mktemp -d -t dex)
baksmali $1 -o $dir
for pkg in `find $dir/* -type d`; do
smali $pkg -o $pkg/classes.dex
count=$(dex-method-count $pkg/classes.dex)
name=$(echo ${pkg:(${#dir} + 1)} | tr '/' '.')