Skip to content

Instantly share code, notes, and snippets.

View jjn1056's full-sized avatar

John Napiorkowski jjn1056

View GitHub Profile
package DBIx::Class::Result::Valiant;
use DBIx::Class::MooResultClass;
extends 'DBIx::Class';
with 'Valiant::Validates';
sub register_column {
my $self = shift;
my ($column, $info) = @_;
package DBIx::Class::Result::Valiant;
use Moo;
extends 'DBIx::Class';
with 'Valiant::Validates';
sub FOREIGNBUILDARGS {
my ( $class, $options ) = @_;
use Devel::Dwarn;
package Local::Base;
use Moo::Role;
has attr1 => (
is => 'ro',
required => 1,
default => sub { 100 },
);
[info] Application powered by Catalyst 5.90125
HTTP::Server::PSGI: Accepting connections at http://0:5000/
[info] *** Request 1 (0.143/s) [23608] [Wed Apr 15 11:26:04 2020] ***
[debug] Path is "/session/login"
[debug] "POST" request for "login" from "127.0.0.1"
[debug] Body Parameters are:
.-------------------------------------+--------------------------------------------------------------------------.
@jjn1056
jjn1056 / weird.pm
Created April 12, 2020 12:48
unexpected stuff with SQLT
# The DBIC Resultclass
package Example::Schema::Result::Person;
use strict;
use warnings;
use base 'Example::Schema::Result';
__PACKAGE__->table("person");
my @test;
sub test {
my ($class, $arg) = @_;
my $varname = "${class}::test";
no strict "refs";
push @$varname, $arg if defined($arg);
return @$varname,
map { $_->test }
package MooX::TrackRoles;
use Role::Tiny ();
sub import {
my $class = shift;
my $target = caller;
die "'$target' is not a Role" unless Role::Tiny->is_role($target);
INFO global: Vagrant version: 2.2.7
INFO global: Ruby version: 2.4.9
INFO global: RubyGems version: 2.6.14.4
INFO global: VAGRANT_LOG="debug"
INFO global: VAGRANT_EXECUTABLE="/opt/vagrant/embedded/gems/2.2.7/gems/vagrant-2.2.7/bin/vagrant"
INFO global: VAGRANT_INSTALLER_ENV="1"
INFO global: VAGRANT_INSTALLER_EMBEDDED_DIR="/opt/vagrant/embedded"
INFO global: VAGRANT_INSTALLER_VERSION="2"
WARN global: resolv replacement has not been enabled!
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/2.2.7/gems/vagrant-2.2.7/plugins/synced_folders/nfs/plugin.rb
@jjn1056
jjn1056 / log.txt
Created March 5, 2020 16:46
VAGRANT_LOG=debug vagrant halt
mm-mac-7425:CatmeOps-V3 jnapiorkowski$ VAGRANT_LOG=debug vagrant halt
INFO global: Vagrant version: 2.2.7
INFO global: Ruby version: 2.4.9
INFO global: RubyGems version: 2.6.14.4
INFO global: VAGRANT_LOG="debug"
INFO global: VAGRANT_EXECUTABLE="/opt/vagrant/embedded/gems/2.2.7/gems/vagrant-2.2.7/bin/vagrant"
INFO global: VAGRANT_INSTALLER_EMBEDDED_DIR="/opt/vagrant/embedded"
INFO global: VAGRANT_INSTALLER_ENV="1"
INFO global: VAGRANT_INSTALLER_VERSION="2"
WARN global: resolv replacement has not been enabled!
package View::User;
use Template::Perl;
use Moo;
has 'model' => (is=>'ro', required=>1);
sub template {
my ($class, $builder) = @_;