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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta http-equiv="X-UA-Compatible" content="IE=edge" /> | |
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | |
| <title>phyjics</title> | |
| <meta name="viewport" content="initial-scale=0.9, minimum-scale=0.9, maximum-scale=1.1" /> | |
| <meta name="apple-mobile-web-app-capable" content="yes" /> | |
| <meta name="apple-mobile-web-app-status-bar-style" content="black" /> | |
| <script src="http://cdn.keiyac.org/common/jquery/jquery.min.js" type="text/javascript"></script> |
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/perl | |
| # | |
| # by Keiya Chinen | |
| use strict; | |
| use Web::Scraper; | |
| use URI; | |
| use Data::Dumper; | |
| use utf8; |
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 | |
| # Script for quick configuration of an EC2 Server | |
| # Installs the necessaries for most PHP Jobs | |
| # Run as Root or suffer the consequences of stuff telling you it can't get a lock and whatnot | |
| ln -sf /usr/share/zoneinfo/Asia/Tokyo /etc/localtime | |
| cd /etc/yum.repos.d |
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/perl | |
| # | |
| # by Keiya Chinen | |
| use strict; | |
| use warnings; | |
| use utf8; | |
| use LWP; |
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/perl | |
| # | |
| # by Keiya Chinen | |
| # usage: | |
| # perl animedl.pl http://www.anime44.com/the-melancholy-of-haruhi-suzumiya-season-2-episode-8 | |
| use strict; | |
| use warnings; | |
| use utf8; |
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 | |
| cd /var/www/html/application/batch_scripts | |
| LOGDIR=batch_logs | |
| LOCKFILE=$LOGDIR/lock | |
| trap "echo Trapped; rm -f $LOCKFILE; exit" INT QUIT TERM | |
| # ロックファイルがあれば60秒*最大3回待機、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
| サーバ:マルチプロセスモデルのEchoサーバ、1プロセス1クライアント。 | |
| クライアント:マルチスレッド(threads)のクライアント | |
| (標準入力に1スレッド,受信(と標準出力)に1スレッド,送信に1スレッドで、情報はキューで受け渡し) | |
| クライアントの方はなぜかシグナルハンドラがゴミでシグナルが無視される。 | |
| いちばん手間かかったのがtty周りという。stty rawとかしてる。cursesとかつかえば簡単なんだろうけど。 | |
| でもこれでssh/telnetもどきができる土俵は整ったかな。 |
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
| <?php | |
| /* image_filter_test.php | |
| * by Keiya Chinen | |
| * | |
| * https://gist.github.com/2823192 | |
| * | |
| * (MIT Licence) | |
| * 汚いコードだなぁ | |
| * |
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/perl -- | |
| # process watchdog script | |
| # Keiya Chinen <[email protected]> | |
| use strict; | |
| use warnings; | |
| $| = 1; |