Check if you are vulnerable to the OpenSSL « heartbleed » bug.
curl -s https://gist.githubusercontent.com/ironcamel/10223348/raw/ssl-heartbleed-check.pl | perl
Check if you are vulnerable to the OpenSSL « heartbleed » bug.
curl -s https://gist.githubusercontent.com/ironcamel/10223348/raw/ssl-heartbleed-check.pl | perl
package Resque; | |
use Any::Moose; | |
use Redis; | |
use JSON; | |
has server => (is => 'rw', isa => 'Str', default => 'localhost:6379'); | |
has redis => (is => 'rw', isa => 'Redis', lazy_build => 1); | |
sub _build_redis { | |
my $self = shift; |
conn_info: | |
server: irc.freenode.net | |
port: 6667 | |
channels: | |
- '#foo' | |
- '#bar' | |
nick: foobot | |
username: foobot | |
name: defender of the universe | |
ignore_list: |
#!/usr/bin/env perl | |
# Based on Randy Stauner's http://blogs.perl.org/users/randy_stauner/2011/06/exploratory-one-liners-with-less-typing.html | |
# and Marco Fontani's https://gist.github.com/1042504. | |
# To install all dependencies: | |
# sudo cpanm File::Slurp JSON::XS Data::Dump YAML::XS utf8::all Class::Autouse | |
# Installation: | |
# copy this file to ~/bin/p | |
# Example usage: | |
# p 'dd [File::Spec->path]' # dynamically load arbitrary modules | |
# p -pe 's/foo/bar/' foo.txt # use your favorite options like -lane |
$ twiggy -l :3000 twitter.psgi |
use warnings; | |
use Data::Dumper; | |
use DMEApiClient; | |
use App::Rad; | |
App::Rad->run(); | |
my $client = DMEApiClient->new( | |
base_url => 'http://api.dnsmadeeasy.com/V1.2/domains/ctsandbox.com' |
Compile mustache templates in pure perl using JE.
$ hulk.pl *.mustache > templates.js
➜ heroku-hello git:(master) cat app.psgi | |
require 'app.pl'; | |
➜ heroku-hello git:(master) cat app.pl | |
use Mojolicious::Lite; | |
get '/' => sub { | |
my $self = shift; | |
$self->render(text => "Hello Heroku"); | |
}; |
-----BEGIN PGP PUBLIC KEY BLOCK----- | |
Version: GnuPG v1.4.11 (Darwin) | |
mQENBFAEiqQBCADC5rWMZsqona9ThWYMgfWSqea5T+Yg7BnSPUqGlfepPfWO5pVr | |
n+P0hjRZ2nUTv+Wg1gRcvw+7y3Bx4jmPiA7QjvF7sNWapl+/Wx0k40qyIX4trtKv | |
eqDowVVpF5IwlKkk1sOw78gl8/aKJps8V1p/YcShkAEVCKL0Ljc5nRQGxCutVXJC | |
BVtTrAO2D0grT+KxgzP5GQNXjARUr5cqgKGYn3bkSHLfZR64oKIiqat9qF+cmd2Q | |
Qv4fsdqAkGzHlD40XOAVHMNW4Q/CFKOKzrTq79KnMbose5taScxae0Wb1onAS0QP | |
TAdMNLi5b1t67lp/YWqesZ+SQWquM5B9T6f5ABEBAAG0Ik1hdHQgV2lsbGlhbXMg | |
PG1hdHRAY3Jvd2R0aWx0LmNvbT6JAT4EEwECACgFAlAEiqQCGwMFCV38DwAGCwkI |