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 | |
security cms -D -i $1 | grep -A 1 UUID | tail -1 | perl -p -ne 's|</?string>||g' | perl -p -ne 's|\s||g' |
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
buildscript { | |
repositories { | |
mavenCentral() | |
} | |
dependencies { | |
classpath 'com.android.tools.build:gradle:0.8.+' | |
classpath 'com.deploygate:gradle:0.5' | |
} | |
} |
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 | |
SCREENRECORD_ANDROID_PATH=/sdcard/tmp.mp4 | |
SCREENRECORD_LOCAL_PATH=tmp.mp4 | |
TIME=10 | |
SIZE=960x540 | |
if [ $# -ge 1 ]; then | |
SCREENRECORD_LOCAL_PATH=$1 | |
fi |
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/bash | |
OPTIONS="--no-ui --all --filter" | |
expect -c " | |
set timeout -1 | |
spawn android update sdk $OPTIONS $@ | |
expect { | |
\"Do you accept the license\" { |
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 | |
# Delete all containers | |
sudo docker rm $(sudo docker ps -a -q) | |
# Delete all images | |
sudo docker rmi $(sudo docker images -q) |
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 | |
sudo docker rm $(sudo docker ps -a -q) |
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 | |
if [ $# -ne 4 ]; then | |
echo "usage: <server> <nick> <channel> <message>" | |
echo "ex: irc.example.com bot #chatroom hello" | |
exit | |
fi | |
SERVER=$1 | |
PORT=6667 |
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 | |
echo "please launch after: emulator -avd TARGET -no-window -no-boot-anim -no-audio" | |
# wait for launch | |
result="" | |
while [ -z "$result" ]; do | |
sleep 5 | |
adb kill-server | |
adb start-server |
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 | |
if ARGV.size < 1 | |
puts "usage: <stdin list of files> | convertsize.rb <size>" | |
exit 0 | |
end | |
STDIN.each do |line| | |
line.chomp! | |
src = line |
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 | |
def run(cmd) | |
puts "$ #{cmd}" | |
`#{cmd}` | |
end | |
if ARGV.size < 1 || /.mp4$/i !~ ARGV[0] | |
puts "usage: agif <something.mp4>" | |
exit 0 |