This file contains 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
--- amazon_cross_book_check.user.js.orig 2011-01-24 13:16:07.000000000 +0900 | |
+++ amazon_cross_book_check.user.js 2011-01-24 13:24:44.000000000 +0900 | |
@@ -35,8 +35,9 @@ | |
}, | |
{ | |
label: 'eBOOKOFF', | |
- url: 'http://www.ebookoff.co.jp/cmdtyallsearch/hdnAllSearchFlg/1/Ctgry/home/LRack/*/SetFlg/?Ctgry=home&LRack=*&hdnPage=0&hdnFormId=cmdtyalllist&hdnStartIndex=0&hdnEndIndex=500&actionNameTxt=&subtotal=&cat=&used=0&pg=0&pagingData=&iStartPageNo=1&nowPageNo=1&hdnCmdtyCode0=0010212095&word=', | |
- regexp: /uam texttype01">([\d,]+)/, | |
+ url: 'http://www.ebookoff.co.jp/cmdtyallsearch/hdnAllSearchFlg/1/Ctgry/*/LRack/*/SetFlg/0?SetFlg=&hdnContinueCmdtyList=&hdnContinueCode=&hdnPage=0&hdnFormId=cmdtyalllist&hdnStartIndex=0&hdnEndIndex=500&hdnNarrowCtgry=&hdnAllSearchFlg=&hdnNarrowFlg=&actionNameTxt=&subtotal=&word=', | |
+ afterISBN: '&used=0&author=&genre=&size=&pricef=&pricet=&issuef=&issuet=&maker=&isbn=&sort=&desc=&used=0&pg=0&pagingData=&iStartPageNo=1&nowPageNo=1&hdnCmdtyCode0=0010046487', |
This file contains 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
sudo service nginx stop && pgrep -l nginx; [ "$?" -eq 1 ] && sudo service nginx start |
This file contains 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
find /home/vmail/example.com/ -regex '.*/Maildir/\(cur\|new\)/.*' -type f -ctime +90 -delete |
This file contains 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
--- amazon_cross_book_check.user.js.orig 2010-06-16 15:59:19.000000000 +0900 | |
+++ amazon_cross_book_check.user.js 2011-04-03 10:33:44.000000000 +0900 | |
@@ -35,8 +35,9 @@ | |
}, | |
{ | |
label: 'eBOOKOFF', | |
- url: 'http://www.ebookoff.co.jp/cmdtyallsearch/hdnAllSearchFlg/1/Ctgry/home/LRack/*/SetFlg/?Ctgry=home&LRack=*&hdnPage=0&hdnFormId=cmdtyalllist&hdnStartIndex=0&hdnEndIndex=500&actionNameTxt=&subtotal=&cat=&used=0&pg=0&pagingData=&iStartPageNo=1&nowPageNo=1&hdnCmdtyCode0=0010212095&word=', | |
- regexp: /uam texttype01">([\d,]+)/, | |
+ url: 'http://www.ebookoff.co.jp/cmdtyallsearch/hdnAllSearchFlg/1/Ctgry/*/LRack/*/SetFlg/0?SetFlg=&hdnContinueCmdtyList=&hdnContinueCode=&hdnPage=0&hdnFormId=cmdtyalllist&hdnStartIndex=0&hdnEndIndex=500&hdnNarrowCtgry=&hdnAllSearchFlg=&hdnNarrowFlg=&actionNameTxt=&subtotal=&word=', | |
+ afterISBN: '&used=0&author=&genre=&size=&pricef=&pricet=&issuef=&issuet=&maker=&isbn=&sort=&desc=&used=0&pg=0&pagingData=&iStartPageNo=1&nowPageNo=1&hdnCmdtyCode0=0010046487', |
This file contains 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
upstream fcgiwrap { | |
server 127.0.0.1:8000; | |
} | |
location ~ /wiki/(.*\.cgi) { | |
root /var/www/wiki; | |
fastcgi_index hiki.cgi; | |
fastcgi_pass fcgiwrap; | |
fastcgi_param SCRIPT_FILENAME /var/www/wiki/$1; | |
include fastcgi_params; |
This file contains 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
location ~ /wordpress/(.*\.php) { | |
alias /var/www/wordpress/$1; | |
fastcgi_pass php5; | |
fastcgi_param SCRIPT_FILENAME $request_filename; | |
include fastcgi_params; | |
} | |
location /wordpress/ { | |
alias /var/www/wordpress/; | |
try_files $uri $uri/ /wordpress/index.php; |
This file contains 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
location ~ /wordpress/(.*\.php) { | |
fastcgi_pass php5; | |
fastcgi_param SCRIPT_FILENAME /var/www/wordpress/$1; | |
include fastcgi_params; | |
} | |
location /wordpress/ { | |
alias /var/www/wordpress/; | |
try_files $uri $uri/ /wordpress/index.php; | |
} |
This file contains 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/env perl | |
use strict; | |
use warnings; | |
use Web::Scraper; | |
use URI; | |
my $scraper = scraper { | |
process( |
This file contains 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/env perl | |
use strict; | |
use warnings; | |
use Finance::Quote; | |
use URI; | |
use Web::Scraper; | |
my $q = Finance::Quote->new; |
This file contains 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/env perl | |
# | |
# Usage: this_script.pl original.csv > new.csv | |
# | |
use strict; | |
use warnings; | |
use utf8; | |
use Encode; | |
use Text::CSV; |