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
| --- | |
| database: | |
| dsn: DBI:mysql:database=DBNAME;host=DBHOST | |
| userid: DBUSER | |
| passwd: DBPASS | |
| options: | |
| mysql_enable_utf8: 1 | |
| mysql_auto_reconnect: 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
| #!/usr/bin/env perl | |
| use 5.010; | |
| my $path = '.'; | |
| my @types=qw( mov mp4 avi mkv m4v xvid divx wmv mpg mpeg ); | |
| my @files = `find $path`; | |
| chomp(@files); |
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/env perl | |
| use 5.018; | |
| #use Encode qw(from_to); | |
| my $smi_path = $ARGV[0]; | |
| my $want = lc $ARGV[1]; | |
| my $smi; | |
| { | |
| local $/; | |
| undef $/; | |
| open(my $smifh,'<', $smi_path); |
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/env perl | |
| use HTTP::Proxy; | |
| my $proxy = HTTP::Proxy->new( | |
| host => '', | |
| port => 8080, | |
| maxchild=>10, | |
| ); | |
| $proxy->start; |
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/env perl | |
| use re 'regexp_pattern'; | |
| my $reg = qr/(?i)abc/s; | |
| my ($pat,$flag) = regexp_pattern $reg; | |
| print "pat :$pat\n" | |
| print "flag:$flag\n"; | |
| # pat :(?i)abc | |
| # flag:is |
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
| package KorMailSend; | |
| use strict; | |
| use warnings; | |
| use MIME::Lite; | |
| use MIME::Base64; | |
| use Encode qw(encode); | |
| sub sendmail{ | |
| my ($from,$to,$subj,$cont) = @_; | |
| my $subj2 = '=?UTF8?B?' . encode_base64($subj) .'?='; |
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 | |
| # An example of start.sh | |
| ./app_pkg.pl daemon -l 'http://localhost:50005' |