Skip to content

Instantly share code, notes, and snippets.

Algorithm::C3 0.08
Algorithm::Diff 1.1902
Any::Moose 0.20
AnyEvent 7.04
AnyEvent::Campfire::Client 0.0.2
AnyEvent::Campfire::Stream 0.0.3
AnyEvent::DBI 2.2
AnyEvent::DBI::Abstract 0.01
AnyEvent::HTTP 2.15
AnyEvent::HTTP::ScopedClient 0.0.3
use Plack::App::CGIBin;
use Plack::App::PHPCGI;
use Plack::Builder;
use File::Zglob;
my $cgibin = Plack::App::CGIBin->new(
root => "/usr/local/nagios/sbin",
exec_cb => sub { my $file = shift; $file =~ m!\.cgi$! and -x $file },
)->to_app;
my $static = Plack::App::File->new(root => "/usr/local/nagios/share")->to_app;
anonymous
anonymous / zk.org
Created December 24, 2012 04:27
advent calendar 주키퍼 초안

OVERVIEW

ZooKeeper란 무엇인가?

주키퍼는 분산 코디네이터 서비스를 제공하는 아파치 오픈소스 입니다. 분산 환경에서는 락, 네이밍 서비스, 클러스터 멤버십 등을 쉽게 구현 할수 있는 기능을 제공합니다.

분산 환경에서는 다양한 운영 상황과 예상하지 못한 장애 상황 등으로 인해 분산된 애플리케이션 서버들 사이의 자원 경합, 락 잠금/해제 등과 같은 복잡한 문제가 발생 합니다.

anonymous
anonymous / philz.pl
Created December 24, 2012 01:56
perl advent Calendar "ZooKeeping Philz Coffee"
use strict;
use warnings;
use Net::ZooKeeper qw(:node_flags :acls);
use POSIX qw(:sys_wait_h);
use Time::HiRes qw(sleep);
use Sys::Hostname;
use constant ZK_SESSION_TIMEOUT => 10 * 1000;
use constant ZK_SERVERS => "localhost:2181";
use constant BARISTA_GROUP => '/barista_group';
@skyizblue
skyizblue / bicycle.md
Created December 11, 2012 08:50
자전거를 소재로 한 영화
@JEEN
JEEN / gist:4015791
Created November 5, 2012 07:22
티타임 #5 타임테이블
#perl-kr 티타임 #5 타임테이블
19:25 - 19:30 : 개회사(@y0ngbin)
19:30 - 20:00 : Perl6 이야기 (@am0c)
20:00 - 20:30 : ISUCON2 리뷰 (@JEEN_LEE)
20:30 - 20:50 : 휴식
20:50 - 21:20 : 펄 커뮤니티에 제언 (@JellyPooo) - Advent Calendar 이렇게 했으면 좋겠다.
21:20 - 21:55 : 조별대담 겸 @yuni_kim 에게 묻는 미국 IT, Perl
21:55 - 22:00 : 폐회사 (@y0ngbin)
@lqez
lqez / gist:3999191
Last active October 12, 2015 08:28
Sentry bot to warn SSL certificates expirations.
#!/usr/bin/python
# -*- coding:utf-8 -*-
# Park Hyunwoo <[email protected]>
#
# You can download ssl-cert-check from http://prefetch.net/articles/checkcertificate.html
#
import smtplib
import email
import os
@keedi
keedi / gist:3922144
Created October 20, 2012 05:30
KWP 2012

KPW2012 Schedule

본 세션

Perl 101 - @aer0

14:30 - 14:50 (20분)

@yongbin
yongbin / gist:3897476
Created October 16, 2012 06:12
Re: [Perlweekly] #64 - Is Mojolicious anti-CPAN or is it a gateway-drug?
> from: Gabor Szabo [email protected]
> to: yongbin <[email protected]>
> date: Tue, Oct 16, 2012 at 3:08 PM
> subject: Re: [Perlweekly] #64 - Is Mojolicious anti-CPAN or is it a gateway-drug?
> mailed-by: gmail.com
> signed-by: gmail.com
> : Important mainly because of your interaction with messages in the conversation.
>
> I have posted the link to the PW social networks and will try to do a bit more.
> How many people do you expect at the event?
@iwek
iwek / drag-drop-upload-unzip.js
Created October 2, 2012 19:43
Drag and Drop, Upload and Unzip
/* Drag'n drop stuff */
var drag = document.getElementById("drag");
drag.ondragover = function(e) {e.preventDefault()}
drag.ondrop = function(e) {
e.preventDefault();
var length = e.dataTransfer.items.length;
for (var i = 0; i < length; i++) {
var entry = e.dataTransfer.items[i].webkitGetAsEntry();
var file = e.dataTransfer.files[i];