2013-01-01ãã1å¹´éã®è¨äºä¸è¦§
ãã®è¨äºã¯ MySQL Casual Advent Calendar 2013 ã®25æ¥ç®ã®è¨äºã§ããèªåã®éå»ã®ããã°ãå«ãã¦ãmysqlã³ãã³ãã®ã«ã¹ã¿ãã¤ãºã«ã¤ãã¦ãããããªæ å ±ãããã¾ããããããããªã¹ã¹ã¡ã®ç§ä¼ã®ã¿ã¬ãã¾ã¨ãããã¨æãã¾ããæ¯éããåèã«ã å®åæ(SQL)ã®â¦
https://github.com/hirose31/monitor-elb-address cpanm -l local --installdeps . cp config-sample.pl config.pl vi config.pl ./monitor-elb-address -c ./config.plãªæãã§ä½¿ãã¦ãåæãã FQDN ã® IP ã¢ãã¬ã¹ï¼Aã¬ã³ã¼ãï¼ã®å¤æ´ãéç¥ãã¾ããIPã¢â¦
Nginx 1.4.2ã§è©¦ãã¾ããããã¼ã ãµã¼ãã¼ã¯ããã¼ã«ã«ã®unboundãlocal-zone, local-dataã使ã£ã¦ç°¡æã³ã³ãã³ããµã¼ãã¼ã«ãã¦è©¦ãã¾ããã local-zone: "oreno." static local-data: "api.oreno. 30 IN A 192.0.2.11" # local-data: "api.oreno. 30 IN A â¦
Overriding System Functions for Fun and Profit | Hacker Boss ãã¿ã¦èªåã試ãã¦ã¿ãããªã£ãã®ã§æ¸ãã¾ããã https://github.com/hirose31/galloc malloc(3)ããã¨ã¬ãã£ãã³ããfree(3)ããã¨ã ãã¯ãSTDERRã«å ±åãã¦ããã¾ãã便å©ï¼ï¼ï¼ $ make gaâ¦
AWS Casual Talks#1ãéå¬ãã¾ãã - ã¾ãç http://d.conma.me/entry/2013/11/02/140136 ã«åå ãã¦ãNATã¤ã³ã¹ã¿ã³ã¹åé·åã®æ·±æ·µãªè©±ãã¨ããLTããã¦ãã¾ããã Redunduncy of NAT instance on AWS/VPC from Masaaki HIROSE ããã¾ã§ä½åº¦ãçºè¡¨ããã¦ãâ¦
ä»ãã¦ãããã㤠ã㤠ããã å¤ åè AWS ELB X-Forwarded-Proto https Apache/mod_ssl X-Forwarded-HTTPS on è¦è¨å®: RequestHeader set X-Forwarded-HTTPS %{HTTPS}s ä»ãã¦æ¬²ããã㤠ã㤠ããã å¤ åè Plack::Middleware::ReverseProxy X-Forwardedâ¦
ä»ã¾ã§ç§ä¼ã®ã¿ã¬åããmodule-setupã®ãã³ãã¬ã§ã¢ã¸ã¥ã¼ã«ã®ã²ãªå½¢ãçæãã¦ããã§ããããªããMakefile.PLãBuild.PLã®æ¸ãæ¹ã¨ãcpanfileã¨ãMYMETA.*ã¨ããã®ã¸ãããããã«è¿½å¾ããã®ãããã©ããªã£ã¦ããã®ã§ãmilla (Dist::Milla) ãå ã«ç§ä¼ã®ã¿ã¬â¦
ããã»ã¹ã®èµ·åæ¥æ㯠ps ã® START ã«ã©ã ã§ãããã¾ããã24æéçµéããã¨è¡¨ç¤ºä¸æå»ããããã¾ããã $ ps auxwwwwww | grep -e PID -e redis-server USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND hirose31 775 0.1 0.0 36328 2008 ? Sl Sep2â¦
YAPC::Asia 2013ã§LTãHow to inspect a RUNNING perl processããã¦ãã¾ãã How to inspect a RUNNING perl process / YAPC::Asia Tokyo 2013 http://www.slideshare.net/hirose31/inspect-runningperl ãã³ã°ã¢ããã¨ãã¡ã¢ãªãã«é£ãã¨ããç¨ã«ããçºçâ¦
ãã¡ã¤ã«æå®ã§ããã¼ã¸ãã£ãã·ã¥ã«ã®ã£ã¦ããã確èªããã追ãåºãããããPerlã¢ã¸ã¥ã¼ã«ãæ¸ãã¾ããã https://metacpan.org/release/Sys-PageCache https://github.com/hirose31/Sys-PageCache Linux ãªãåãã¯ãã§ãããåããªãã£ããæãã¦ãã ãâ¦
å æ¥ awscli ãæ£å¼ãªãªã¼ã¹ãããã®ã§ã http://aws.typepad.com/aws_japan/2013/09/new-aws-command-line-interface-cli.html Perlã®ã©ããã¼ã® AWS::CLIWrapper-1.00 ããªãªã¼ã¹ãã¾ããã https://metacpan.org/module/AWS::CLIWrapper awscli ã«ã¯ããâ¦
åç ãã¸ã«ã¡ã¡ã¤ã³æ©ããµãæ©å ±ã«Eye-Fiã使ã£ã¦ãã¦ãæ®ã£ããåçã¢ã¼ãã§æ¾ã£ã¦ããã°Eye-Fiãåçãã¼ã¿ãã¢ãããã¼ããã¦ããã¾ããEye-Fiããã¢ãããã¼ãããããã¼ã¿ã¯ãæä½ã®Doumeki (ç¾ç®é¬¼)ãåãã¾ããDoumekiã¯èªå® ãµã¼ãã¼ã§åãã¦ãã¦ã â¦
追è¨: 解çç·¨ãä¸ã®æ¹ã«æ¸ãã¾ããï¼ï¼ï¼ 追è¨: ãé¡ã«ä¸åããã£ãã®ã§å¤æ´ãã¾ããï¼ï¼ ãã¨gistã«ä¸å¼ç½®ããã®ã§ç°¡åã«ãã¹ãã§ãã¾ãï¼ï¼ https://gist.github.com/hirose31/6232206 git clone https://gist.github.com/6232206.git oreno cd oreno ./teâ¦
daemontoolsã®setuidgidã¯è£å©ã°ã«ã¼ã(supplementary groups)権éãã¤ãã¦ãããªãã®ã§ãããã©ããã¦ãã¤ãããæãããã¾ããããã¯ãã§ããããã¤ãæ¤è¨ããã®ã§ãã®ã¡ã¢ã§ãã èªåã§æ¸ãï¼ çµå±ãã®æ¹æ³ã«ãã¾ããã [twitter:@kazuho] ããã® setuidgâ¦
The information presented herein is without any guarantees and Iâll take no responsibility if any harm happens to you or your users. If you find any factual problems, please reach out to me([twitter:@hirose31]) immediately and I will fix iâ¦
ååã«ãUNIXã®fileã¨ãsocketã¨ãsignalã¨ãã®åå¼·(輪è¬)ããã®ã«ããæ¬ãªãã§ãããã¼ãã¨ãããã¦ãèªåã¯ã¹ãã£ã¼ãã³ã¹ã®ã詳細UNIXããã°ã©ãã³ã°ãèªãã ãã©ãããã ãã¶å¤ã(ä¾ãã°ãsigaction(2)ã«ã¤ãã¦æ¸ããã¦ãªã)ãããªãã¡ã¬ã³ã¹çã«ä½¿ããªâ¦
æ¬æµã®å¦çã¨ã¯å¥ã«å®æçã«å²ãè¾¼ã¿å¦çããããã¨ããä¾ãã°ããã°ãèªã¿ã¤ã¤æ´å½¢ãã¦è¡¨ç¤ºãã¤ã¤ãnç§éã«mè¡ä»¥ä¸æµãããéç¥ãããã¨ãã§ããPerlã ã¨AnyEventã®ãããªã¤ãã³ãããªãã³ã®ãã¬ã¼ã ã¯ã¼ã¯ã使ããããªãã¾ãããåç´ãªå®æå²ãè¾¼ã¿ãªã seâ¦
Perlå¾¹åºæ»ç¥ (WEB+DB PRESS plus)ä½è : 大沢åå®,cho45(ãã¨ã),å°æ篤,åç°è£ä»,å¶ç°è£äº(xaicron),ç§å¤§è¼(lestrrat),奥ä¸ç©,åºæ¨å¤§å°,ä¼è¤ç´ä¹,é·éé åº,è¤åä¿ä¸é,ä¼è¤æºç« ,ã¾ãã¾ãè¬è¥æ³¢ç¾ è,å°é£¼å¼¾,è¿è¤åéª,ä¸å·å樹,å®®å·é彦,tokuhirom,è¤å¾é(gfxâ¦
# ~/.gitconfig [alias] pull-dry-run = !"git fetch origin; B=$(git rev-parse --abbrev-ref HEAD); git diff --stat --summary ${B}..origin/${B}"
Redis ã¯åºæ¬çã«ã·ã³ã°ã«ã¹ã¬ãããã¤ãã³ãããªãã³ã¢ãã«ãªã®ã§ãæéã®ãããLua ã¹ã¯ãªãããå®è¡ãããã©ããªããã¨ããã®ã¯æ³åã«é£ããªãã®ã§ãã確èªãã¦ã¿ã¾ãããRedis 㯠2.6.14 ã§ãã redis-cli eval 'while true do print("hello") end' 0ãªâ¦
çµè«ããããã¨ã åãåãããååãè¦ã¤ãããªãã£ãå ´åã®nxdomainå¿çã¯å½è©²ãã¡ã¤ã³ã®SOAã¬ã³ã¼ããè¿ã£ã¦ãã¦ããã¬ãã£ããã£ãã·ã¥ã®TTLã¯ãã®å¿ç(SOA)ã®TTLã«ãªã ã§ãã 以ä¸ã詳細ãnxdomainå¿çã®éã®SOAã®TTLã¯ãSOAã®(TTLã§ã¯ãªã)minimumã§â¦
AWSã§é害ãèµ·ãã£ãããã«ãã¤ã§ç¥ãããããã£ã¦ãã¨ã§ãAWSã®Service Health Dashboard http://status.aws.amazon.com/ ã¯RSSãã£ã¼ããæä¾ãã¦ãã®ã§ããããå®æçã«ãã§ãã¯ãã¦IRCã«éç¥ãã¦ãããã¹ã¯ãªããã AnyEvent ã§æ¸ãã¾ããã(è¦ikachan) â¦
Apacheã§reverse proxyããã¨ãã«ãããã¯ã¨ã³ãã¯åããªãã ãã©åãããã¹ã«å¿ãã¦å¥ãªã¿ã¤ã ã¢ã¦ãå¤ãè¨å®ãããã¨ãã¦ããã£ãã®ã§ãã®ã¡ã¢ã§ãã以ä¸ãApache 2.2.22 ã§ã®ã話ã§ãã2.4ã§ã©ããªã£ã¦ãããã©ãªãããåç¥ã§ãããæãã¦ãã ããï¼ï¼ ã¾â¦
è¿½è¨ 2013-05-30 window.twttr = (function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0], t = window.twttr || {}; if (d.getElementById(id)) return t; js = d.createElement(s); js.id = id; js.src = "https://platform.twitter.com/widgetâ¦
unix domain socketçµç±ã§ããã»ã¹éã§ãã¡ã¤ã«è¨è¿°åã®ããã¨ããã§ããã®ã§ãã³ãã¯ã·ã§ã³ããã¼ãªã³ã°ãã¦ãunix domain socketçµç±ã§å¥ããã»ã¹ã«è²¸ãåºãã¹ã¯ãªããã試ãã«æ¸ãã¦ã¿ã¾ããã https://github.com/hirose31/socket-pooling poold.pl ã¯èµ·â¦
Dear EOL Perl (5.8, 5.10, 5.12) users, Devel::PatchPerl 0.86 was released yesterday.Now Devel::PatchPerl applies patch to fix CVE-2013-1667 against EOL Perls (5.8.8, 5.8.9, 5.10.1, 5.12.5).I suppose we will be able to get fatpacked patchpeâ¦
use Data::Dumper; $Data::Dumper::Indent = 1; $Data::Dumper::Deepcopy = 1; $Data::Dumper::Sortkeys = 1; $Data::Dumper::Terse = 1; sub p(@) { my $d = Dumper(\@_); $d =~ s/\\x{([0-9a-z]+)}/chr(hex($1))/ge; print $d; } my %very_complex_data = â¦
èµ·åæã« --explicitly-allowed-ports ãªãã·ã§ã³ã§ã¸ãã¦ããªãã¼ãçªå·ãæå®ããã°ç¹ããããã«ãªãã¾ããè¤æ°ãã¼ãæå®ãããå ´åã¯ã«ã³ãåºåãã§ããèªåã¯QuickSilver(betaãåãã¦1.0ãåºã¾ããã http://blog.qsapp.com/post/46268365849/quicksilâ¦
my.cnfã«ã¯[group]ã¨ãããªãã·ã§ã³ã°ã«ã¼ããæ¸ãã¦ãã°ã«ã¼ãæ¯ã«è¨å®ãã§ãã¾ãããªãã·ã§ã³ã°ã«ã¼ãã«ã¯ç¹æ®ãª[client]ã¨ããã®ãããã¾ãã [client]ãªãã·ã§ã³ã°ã«ã¼ãã¯ããã¹ã¦ã®ã¯ã©ã¤ã¢ã³ãããã°ã©ã (mysqldã¯é¤ãï¼ã«ãã£ã¦è§£èªããã¾ããããã«â¦
ãã£ã¡ã«ã±ã¼ã¹ãªãã¡ã¤ã«ããã£ã¬ã¯ããªã«å²ã¾ãã¦ãã人ã¯ãã·ã§ã«ãã¨ãã£ã¿ã®ãã¹åè£å®æã«å¤§æåå°æåãåä¸è¦ããã¨æãã¾ããã¨ããããbashã¨emacsã ããä»ã¯åéä¸ã§ãï¼ï¼ Shell bash .inputrc ã« set completion-ignore-case on zsh zstyle ':câ¦