Skip to content

Instantly share code, notes, and snippets.

View jegade's full-sized avatar

Jens Gassmann jegade

  • 12:50 (UTC +02:00)
View GitHub Profile
#!/bin/bash
# If this script is running as /usr/local/bin/perlbrew-cron
# then you would need to have a crontab something like:
#
# [email protected]
# PATH=$PATH:/usr/local/bin
# 0 * * * * perlbrew-cron ~/path/to/perl_cron.pl arg1 'arg 2' arg3
export PERLBREW_ROOT=${PERLBREW_ROOT:=/opt/perl5}
@jegade
jegade / irc.pl
Created February 20, 2012 16:59 — forked from kraih/irc.pl
#!/usr/bin/env perl
use Mojolicious::Lite;
use EV;
use AnyEvent::IRC::Client;
# Join #mojo on irc.perl.org
my $irc = AnyEvent::IRC::Client->new;
$irc->connect('irc.perl.org', 6667, {nick => "mojobot$$"});
$irc->send_srv(JOIN => '#mojo');