This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
git fetch | |
for branch in `git branch --remote --merged origin/master | sed 's/ *origin\///' | grep -v ' ' | grep -v 'master$'` | |
do | |
MERGE_EPOCH=$(git --no-pager log -1 --pretty='%ct' $(git merge-base origin/master origin/$branch)) | |
CURRENT_EPOCH=$(git --no-pager log -1 --pretty='%ct' origin/master) | |
if [ $(expr $(expr $CURRENT_EPOCH - $MERGE_EPOCH) / 60 / 60 / 24) -ge 14 ]; then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# encoding: utf-8 | |
# x264 presets guide : https://forum.handbrake.fr/viewtopic.php?f=6&t=19426 | |
X264 = "b-adapt=2:rc-lookahead=50:me=umh:bframes=5:ref=6:direct=auto:trellis=2:subq=10:psy-rd=1.0,0.10:analyse=all" | |
FORMAT = "--optimize --format mp4" | |
QUALITY = "--ab 64 --mixdown mono --quality 23 -e x264 -x '#{X264}'" | |
SIZE = "--width 1280 --height 720" | |
ARGV.each do |param| |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Use jdb to debug Android application | |
# Run ddms and select application to forward port. | |
ddms | |
# Execute jdb and attach to the listening application | |
jdb -attach localhost:8700 | |
# Or in windows, need to specify connector explicitly | |
jdb -connect com.sun.jdi.SocketAttach:hostname=localhost,port=8700 |