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 | |
LIST_FILE_NAME='BKLIST.txt' | |
LIST_CMD='ls -l -R' | |
pname=$(basename "$0") | |
usage="$pname [-ls DirGlobToMakeListFile] SourceDir DestDir | |
OPTIONS | |
SourceDir | |
A source directory of copying (not a miroring) | |
DestDir | |
A destination directory of copying |
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 | |
pname=$(basename "$0") | |
usage="usage: $pname ArgumentForRobocopy [...] | |
OPTIONS | |
ArgumentForRobocopy | |
same argument for robocopy, but a file path can includes unix style path, | |
and options for robocopy must begin '-' character instead of '/' character. | |
" |
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 | |
usage="$0 [Options] [NumberOfSkippingPathConvert] Command [Args] | |
Description: | |
call spacified command with spacified args which is replaced path-delimiter | |
character / to \. | |
Options: | |
-c with cmd.exe (Command is executed with 'cmd.exe /k') | |
-x (not implemented yet) | |
-s synchronize execution (wait a termination of Command) | |
-n dry run mode |
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 | |
adb shell ls /system || { echo $0:Please connect w/ adb.>&2; exit 2; } | |
for i in build.prop recovery-from-boot.p etc/recovery-resource.dat bin/install-recovery.sh; do | |
test -f $i && { echo $0: $i: exists. Please delete it and retry.>&2; exit 3; } | |
done | |
mkdir -p bin etc | |
adb pull /system/build.prop . | |
adb pull /system/recovery-from-boot.p . | |
adb pull /system/etc/recovery-resource.dat etc | |
adb pull /system/etc/install-recovery.cfg etc |
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 | |
ipconfig /all | iconv -f sjis -t utf-8 | sed -n '/'"$1"':/,/^[^ \r\t]/p' | head -n -1 |
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/ruby -Ks | |
# -*- mode:ruby; -*- | |
require 'parsearg' | |
### constants | |
## character-classes | |
LETTERS = 'abcdefghijklmnopqrstuvwxyz0123456789'.unpack('c*') | |
LEFTYS = '1qaz2wsx3edc4rfv5tg'.unpack('c*') | |
RIGHTYS = 'p0lo9ki8mju7nhy6b'.unpack('c*') |
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 | |
pnam=$(basename "$0") | |
usage="$pnam [-b] [-n] [-v] KeySequence | |
$pnam {-h|--help} | |
" | |
adb_shell_input_keyevent() { | |
$verbose && echo "adb shell input keyevent $1" | |
$dryrun || adb shell -n input keyevent $1 | |
} |
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/bash | |
progname=`basename "$0"` | |
usage="$progname check ConfDir | |
check if the current installed recovery is the stock recovery | |
which designated by the configuration. | |
$progname make ConfDir [Out] | |
make a stock recovery image file from the configuration | |
and the boot image on the phone. | |
ConfDir a directory includes install-recovery.sh and recovery-from-boot.p | |
Out file name for a recovery image made. [default=recovery.img]" |
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
ssh-agent-ctl() { | |
local progname specfile sockconf | |
readonly progname="${FUNCNAME[0]}" | |
[ $# -le 0 ] && { echo "usage: $progname {start|stop|load|clean}"; return; } | |
readonly specfile=$HOME/.ssh/agent | |
readonly sockconf=$HOME/.ssh/config-agent | |
exist_process() { [ -n "$1" ] && kill -0 "$1" >/dev/null 2>&1; } | |
exist_socket() { [ -n "$1" -a -S "$1" ]; } | |
while true; do |
NewerOlder