$ carton install
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
#!/bin/sh | |
curl -s -S http://officialstore.jp/cgi-bin/negiccomobile.net/cart.cgi\?item\=MEGU1_M | iconv -f shift_jis -t utf-8 | grep "この商品は完売しました" | |
# 完売の文字が消えたら販売開始扱い | |
if [ $? -eq 1 ]; then | |
curl -s -S \ | |
-d "user_credentials=****************" \ | |
-d "notification[title]=ぽんちゃT販売開始" \ | |
-d "notification[long_message]=いそげ" \ |
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
$ PLACK_ENV=deployment perl script/report/make_ranking_summary.pl --category 13 --mode minute --num 10 --start 1360846800 | |
2013/02/15 00:00:00 296 | |
2013/02/15 00:01:00 174 | |
2013/02/15 00:02:00 136 | |
2013/02/15 00:03:00 108 | |
2013/02/14 23:20:00 96 | |
2013/02/15 00:06:00 83 | |
2013/02/15 00:04:00 83 | |
2013/02/15 00:05:00 79 | |
2013/02/14 23:23:00 73 |
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
use strict; | |
use warnings; | |
use JSON; | |
use Furl; | |
use URI; | |
use DateTime; | |
use Time::Piece; | |
use List::Util qw/min max/; | |
my $f = Furl->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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Label</key> | |
<string>com.github.mxcl.homebrew.daemontools</string> | |
<key>ProgramArguments</key> | |
<array> | |
<string>/usr/local/bin/svscanboot</string> | |
</array> |