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
| C:\work\repo\poker>nosetests | |
| E....... | |
| ====================================================================== | |
| ERROR: Failure: SyntaxError (invalid syntax (test_pep8.py, line 2)) | |
| ---------------------------------------------------------------------- | |
| Traceback (most recent call last): | |
| File "C:\Python27\lib\site-packages\nose\loader.py", line 390, in loadTestsFromName | |
| addr.filename, addr.module) | |
| File "C:\Python27\lib\site-packages\nose\importer.py", line 39, in importFromPath | |
| return self.importFromDir(dir_path, fqname) |
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
| [root@redmine alminium]# sh uninstall | |
| which: no gem1.9.3 in (/usr/local/sbin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin) | |
| ALMiniumをアンインストールします。 | |
| データベース(全てのRedmineの情報)とリポジトリを削除しますか?(y/N)y | |
| Apacheの設定を削除しますか?(y/N)y | |
| Passengerを削除しますか?(y/N)y | |
| uninstall: line 44: gem: コマンドが見つかりません |
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
| [root@localhost tes]# | |
| [root@localhost tes]# uname -a | |
| Linux localhost.localdomain 2.6.32-279.el6.i686 #1 SMP Fri Jun 22 10:59:55 UTC 2012 i686 i686 i386 GNU/Linux | |
| [root@localhost tes]# | |
| [root@localhost tes]# | |
| [root@localhost tes]# cat /etc/redhat-release | |
| CentOS release 6.3 (Final) | |
| [root@localhost tes]# | |
| [root@localhost tes]# | |
| [root@localhost tes]# pip uninstall sphinx |
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 |
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
| 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
| 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
| #!/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
| #!/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
| 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 |