This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#r "paket: | |
nuget Fake.Core.Target | |
nuget SSH.NET //" | |
#load "./.fake/build.fsx/intellisense.fsx" | |
module Ssh = | |
open Renci.SshNet | |
open Fake.Core |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# simple carton.lock based module installer script | |
# assumes that cpanm is installed natively for the perl used | |
# | |
# carton is not fully usable yet. | |
# One failing example is DBD::Pg. | |
# Reason: carton does not like "v2.19.2" version strings | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package Schema::Result::Alarm; | |
use Moose; | |
use MooseX::NonMoose; | |
use MooseX::MarkAsMethods autoclean => 1; | |
extends 'DBIx::Class::Core'; | |
__PACKAGE__->table_class('Schema::ResultSource::Alarm'); | |
__PACKAGE__->table("alarm"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env perl | |
use Modern::Perl; | |
BEGIN { | |
if (@ARGV != 2) { | |
print STDERR "usage: $0 DIR OUTPUT\n"; | |
exit 1; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env perl | |
use strict; | |
use warnings; | |
use feature ':5.10'; | |
use AnyEvent; | |
our $await_info; | |
sub on_timeout { | |
my ($timeout, $code) = @_; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env perl | |
use strict; | |
use warnings; | |
use feature ':5.10'; | |
use Redis; | |
use YAML::XS (); | |
use YAML (); | |
use JSON::XS (); | |
use IO::Socket::INET; | |
use Data::Dumper; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use strict; | |
use warnings; | |
use feature ':5.10'; | |
use Marpa::XS; | |
use Data::Dumper; | |
# | |
# a simple CSS snippet for testing | |
# | |
my $text = q{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
use strict; | |
use warnings; | |
use HTML::Zoom; | |
my $html = <<HTML; | |
<html> | |
<head> | |
<title>Hello people</title> | |
</head> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# real location of this library: | |
# /some/perl-search/path/Devel/CatDebug.pm | |
# | |
# debug your application like this: | |
# $ PERL5LIB=./lib perl -d:CatDebug ./script/name_or_your_app_server.pl | |
# | |
package DB; | |
our $stack_depth = 0; | |
our $must_show = 0; |