Skip to content

Instantly share code, notes, and snippets.

@bobpp
bobpp / check.sh
Created May 29, 2015 03:05
Megu birthday shop open checker
#!/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]=いそげ" \
@bobpp
bobpp / README.md
Last active December 18, 2015 01:19
FM Aichi studio image capture

FM-Aichi Studio image capture

install

$ carton install

how to use

@bobpp
bobpp / result.txt
Created February 15, 2013 02:55
2013/02/14 22:00 以降の #prfm, #perfume_um, #mirainomusuem, #ptatv
$ 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
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();
@bobpp
bobpp / com.github.mxcl.homebrew.daemontools.plist
Created February 13, 2011 06:47
daemontools at Mac OS X homebrew
<?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>