Skip to content

Instantly share code, notes, and snippets.

http://www.4shared.com/web/account/settings#overview
https://500px.com/settings
https://9gag.com/member/delete
http://abload.de/settings.php
https://about.me/account
https://learn.adobe.com/wiki/display/wel/Delete+your+account
https://www.airbnb.com/users/settings
http://www.albumreminder.com/usercenter/deleteaccount/
https://www.amazon.com/gp/help/customer/contact-us/ref=cu_cf_email?ie=UTF8&mode=email#a
http://www.animalcrossingcommunity.com/help_main.asp?HelpSectionID=5#Topic201
@ichigotake
ichigotake / Yancha-Plugin-SalvageDarkHistory.pm
Last active December 15, 2015 20:19
[動かない] 過去の発言をランダムにサルベージするYanchaプラグイン。サーバーをforkするためか、動作が不安定になる。別の実装に切り替えないとダメ
package Yancha::Plugin::SalvageDarkHistory;
use strict;
use warnings;
sub setup {
my ($class, $sys) = @_;$sys->register_hook( 'before_send_post', sub {
my $int = int rand 100; #数字が低いほど高確率
return if $int;
my $pid = fork;
@ichigotake
ichigotake / p5-Yancha-Plugin-WebPageSample.pm
Last active December 15, 2015 18:39
YanchaプラグインでWEBページを作成するサンプル
=encoding utf8
=head1 NAME
Yancha::Plugin::WebPageSample - WEBページを作成するYanchaプラグインの例
=head1 CONFIG
### add config.pl, and you can access with web browser!
#
@ichigotake
ichigotake / Yancha-Plugin-PluginAutoloader.pm
Last active December 15, 2015 14:29
Yanchaプラグインのオートローダー
package Yancha::Plugin::PluginAutoloader;
use strict;
use warnings;
sub setup {
my ($class, $sys) = @_;
my %config;
for my$plugin( @{$sys->config->{ plugins }} ) {
@ichigotake
ichigotake / merge_pdf.pl
Created November 11, 2012 11:29
CAM::PDFを利用して複数のPDFを結合するスクリプトサンプル
#!/usr/bin/env perl
# CAM::PDF - search.cpan.org
# http://search.cpan.org/~cdolan/CAM-PDF-1.58/lib/CAM/PDF.pm
use strict;
use warnings;
use CAM::PDF;
# 結合するPDFのファイル名を指定してインスタンス生成
@ichigotake
ichigotake / echo_holidays.pl
Last active October 11, 2015 16:17
月の休日一覧を出力する。 format: $ echo_holidays.pl [year] [month]
#!/bin/env perl
use strict;
use warnings;
use Calendar::Japanese::Holiday;
use Time::Local qw/timelocal/;
use Encode qw/encode/;
my (undef,undef,undef, undef,$now_mon,$now_year) = localtime(time);
my $year = $ARGV[0] || ($now_year+1900);
@ichigotake
ichigotake / prompt.sh
Created October 2, 2012 07:02
今使ってるプロンプト
# 出力例
#(*>ヮ<)っ:~ $
PS1="(*>ヮ<)っ:\W\$ "
@ichigotake
ichigotake / check.php
Created September 17, 2012 07:36
SetucoCMSで動作環境のチェックをするページ
<?php
// Define path to application directory
defined('APPLICATION_PATH')
|| define('APPLICATION_PATH', realpath(dirname(__FILE__) . '/../application'));
// Define application environment
defined('APPLICATION_ENV')
|| define('APPLICATION_ENV', (getenv('APPLICATION_ENV') ? getenv('APPLICATION_ENV') : 'production'));
@ichigotake
ichigotake / tweet2yancha.pl
Last active October 9, 2015 21:17
[旧] 特定ワードが含まれるツイートをyanchaへ投げるスクリプト。
#!/usr/bin/env perl
use strict;
use warnings;
use utf8;
use Encode qw/encode_utf8/;
use URL::Encode qw/url_encode_utf8/;
use JSON qw/encode_json decode_json/;
use HTTP::Request::Common qw/POST/;
use LWP::UserAgent;
#!/usr/bin/env perl
use strict;
use warnings;
use utf8;
use Encode qw/encode_utf8/;
use HTTP::Request::Common;
use LWP::UserAgent;
use Data::Dumper;