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
serach_google(browser) { | |
InputBox, UserInput, Google Serach, , ,400, 100 | |
If ErrorLevel = 0 | |
Run %browser% https://www.google.co.jp/webhp#q=%UserInput% | |
Else | |
MsgBox, %ErrorLevel% %UserInput% not 0 | |
} | |
^!g::serach_google("D:\tools\browser\Slimjet\slimjet.exe") |
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
;あふw起動関数 | |
afxw() { | |
Run,D:\tools\afxw\AFXW.EXE -s ,,MAX | |
return | |
} | |
tasklist_for_afxw() { | |
Run, D:\tools\afxw\utl\TaskList\TaskList.exe -c -f "*あふw*", D:\tools\afxw\utl\TaskList\, | |
return | |
} | |
display_afxw() { |
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
#CPU Affinityの設定する時に確認用の表を出力したいんだけど誰かawkだけでまとめて! | |
awk 'BEGIN{FS=":"} /(processor|physical id|core id)/{print $1,$2}' /proc/cpuinfo | perl -pe 's/(processor|physical)[^\d]+(\d{1,})\n/\1\t\2\t/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
function rmkey(){ | |
TARGET_HOST=$1 | |
if [ -z "$TARGET_HOST" ]; then | |
echo "must hostname or ipaddr" | |
return 1 | |
fi | |
if [[ $TARGET_HOST =~ [0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3} ]]; then | |
ssh-keygen -R $TARGET_HOST | |
elif [[ $TARGET_HOST =~ [a-zA-Z0-9]{3,20} ]]; then | |
ssh-keygen -R $TARGET_HOST |
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/awk -rf | |
BEGIN{ | |
list=ARGV[1] | |
while (getline < list > 0) { | |
word[$1]++ | |
} | |
close(list) | |
} |
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/awk -rf | |
BEGIN{ | |
url_list="url_list" | |
while (getline < url_list > 0) { | |
flvname=gensub(/^(http.+)\.flv.+/, "\\1", 1, $0) | |
if(flvname in flv) true | |
else { | |
flv[flvname]++ | |
} | |
} |
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
print("うさたーんだよっ") |
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
ClickClick: | |
Loop, 600000000 | |
{ | |
MouseClick, left | |
Sleep, 10 | |
GetKeyState ctrlon, Ctrl | |
if ctrlon = D | |
Break | |
} | |
return |
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
set nocompatible | |
if has('vim_starting') | |
set runtimepath+=~/.vim/bundle/neobundle.vim/ | |
endif | |
call neobundle#rc(expand('~/.vim/bundle/')) | |
" Let NeoBundle manage NeoBundle | |
NeoBundleFetch 'Shougo/neobundle.vim' |
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
# 260ファイル 計54MBに対して処理 | |
# timeコマンドで計測。 | |
# /dev/nullに捨てる事によりオーバーヘッドを最小限にした。 | |
# 初めにmd5sumを1回、パイプをいくつか挟み、シェルのfor文の中でさらにmd5sumを使用 | |
time for i in $(md5sum *.jpg|awk '{print $1}'|sort|uniq -c|awk '{print $1,$2}'|grep -v ^1|awk '{print $NF}');do md5sum *.jpg|grep $i;done > /dev/null | |
# 結果 20秒以上 | |
# real 0m23.894s | |
# user 0m12.430s |