Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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 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 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 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 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 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 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 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 |
This file contains 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 | |
# docker stop & remove | |
if [ $# -lt 1 ]; then | |
echo "usage: dsr <grep word>" | |
exit 0 | |
fi | |
grepword=$1 |
OlderNewer