This commit is contained in:
Nebel 2012-08-28 22:46:51 +09:00
parent 1017975df7
commit 274290aa8f
7 changed files with 64 additions and 0 deletions

5
README.md Normal file
View file

@ -0,0 +1,5 @@
ライセンス
--------
©2012 [@kou029w](http://twitter.com/kou029w) - [MIT license][MIT]
[MIT]: http://kou029w.appspot.com/mit-license.txt

41
javascript/deffftp.html Normal file
View file

@ -0,0 +1,41 @@
<!DOCTYPE html>
<meta charset="UTF-8">
<title>FFFTPパスワード解読</title>
<script>
function deffftp(Str) {
if (Str == null) return;
Put = "";
for( i = 0; i < Str.length; i+=2 ){
Get1 = Str.charCodeAt(i);
Get2 = Str.charCodeAt(i+1);
Rnd = Get1 >> 4 & 0x3;
Ch = (Get1 & 0xF) | ((Get2 & 0xF) << 4);
Ch <<= 8;
if ((Get1 & 0x1) != 0) i++;
Ch >>= Rnd;
Ch = (Ch & 0xFF) | ((Ch >> 8) & 0xFF);
Put += String.fromCharCode(Ch);
}
return Put;
}
function decode() {
Out = ""
Str = document.getElementById("input").value.split(/\n/);
while(Str.length > 0){
Out += deffftp(Str[0]) + "\r\n";
Str.shift();
}
document.getElementById("output").value = Out;
}
</script>
<h3>FFFTPパスワード解読</h3>
ffftp.iniに書かれたパスワードを解読します。
<form action="">
<textarea id="input" name="" rows="10" cols="30">XN^MVMEGeVMeJ[NFmKJmJV^M</textarea>
<input type="button" value="解読" onClick="decode()">
<textarea id="output" name="" rows="10" cols="30"></textarea>
</form>
<footer>
&copy;2012 kou029w - <a href="http://www.opensource.org/licenses/mit-license.php">MIT License</a>
</footer>

3
powershell/date.bat Normal file
View file

@ -0,0 +1,3 @@
@echo off
set s=%0
(more %s:bat=ps1% & echo;) | powershell -command -

BIN
powershell/date.ps1 Normal file

Binary file not shown.

Binary file not shown.

15
shellscript/jtalk2.sh Normal file
View file

@ -0,0 +1,15 @@
#!/bin/sh
# 文字しゃべる君 2
# 同じディレクトリにあるtalk.txtの内容を1行ごとに読み上げる
# * OS X only
cd "${0%/*}"
ln=1
while read -p "> " line; do
if [ "$line" = "" ]; then
line="`sed -n ${ln}p talk.txt`"
((ln++))
fi
echo "$line"
say "$line"
done