Skip to content

Instantly share code, notes, and snippets.

Resume/CV
Devin Austin
devin.austin@gmail.com
970-290-6669
Summary: I am a web software developer.
package PerlFu::Web::Model::Validator::Post;
use Moose;
use namespace::autoclean;
extends 'PerlFu::Web::Model::Validator';
sub _build_profiles {
my $self = shift;
return {
title => {
@dhoss
dhoss / Model
Created September 19, 2011 18:36 — forked from anonymous/gist:1227212
package PerlFu::Web::Model::Validator;
use Moose;
use namespace::autoclean;
use Data::Manager;
use Data::Verifier;
use Data::Dumper;
use Carp qw( croak );
extends 'Catalyst::Model';
with 'Catalyst::Component::InstancePerContext';
@dhoss
dhoss / gist:1223383
Created September 16, 2011 23:12 — forked from jshirley/gist:1223273
package MyApp::Web::Model::DataManager;
use Moose;
use Email::Valid;
extends 'Catalyst::Model';
with 'Catalyst::Component::InstancePerContext';
my $email_filter = sub {
@dhoss
dhoss / check_postgres_replication.py
Created September 6, 2011 17:57 — forked from jacobian/check_postgres_replication.py
Nagios plugin to check PostgreSQL 9 streaming replication lag.
#!/usr/bin/env python
"""
Nagios plugin to check PostgreSQL 9 streaming replication lag.
Requires psycopg2 and nagiosplugin (both installable with pip/easy_install).
MIT licensed:
Copyright (c) 2010 Jacob Kaplan-Moss. All rights reserved.
@dhoss
dhoss / puppet NFS
Created December 24, 2010 04:56 — forked from eqhmcow/puppet NFS
# modules/nfs/manifests/init.pp
class nfs_server {
file { "destroy_exports":
path => "/etc/exports.puppet",
ensure => present,
source => "puppet://$servername/modules/nfs/empty",
}
package { "portmap":
package TestApp::Controller::Namespace;
use Moose;
use namespace::autoclean;
BEGIN { extends 'Catalyst::Controller' }
sub main :Local {
my ($self, $c) = @_;
$c->stash( name => 'Bob' );
}
@dhoss
dhoss / gist:298877
Created February 9, 2010 03:03 — forked from semifor/gist:297169
### The model ####
package MyApp::Model::Twitter;
use Moose;
use Carp;
use Net::Twitter;
use namespace::autoclean;
extends 'Catalyst::Component';
__PACKAGE__->config(
@dhoss
dhoss / REST.pm
Created January 11, 2010 19:08 — forked from jshirley/REST.pm
package My::Base::REST;
use Moose;
BEGIN { extends 'Catalyst::Controller::REST'; }
use CGI::Expand qw/expand_hash/;
__PACKAGE__->config(
'default' => 'text/html',
12:26 -!- screen_away: Set away
12:26 [ii] -!- You have been marked as being away
12:26 [oftc] -!- You have been marked as being away
12:26 [scsys] -!- You have been marked as being away
12:26 [MagNET] -!- You have been marked as being away
12:26 [freenode] -!- You have been marked as being away
12:26 [osx86] -!- You have been marked as being away
Day changed to 01 Jan 2010
Day changed to 02 Jan 2010
22:28 -!- screen_away: Reset away