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; | |
use Path::Tiny; | |
use Test::More; | |
my $expected = shift // 'pg-semver/test/expected/base.out'; | |
# https://semver.org/#is-there-a-suggested-regular-expression-regex-to-check-a-semver-string |
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
sub hashed_password { | |
my ( $pass ) = @_; | |
# mkpasswd -m sha-512 $pass $( openssl rand -base64 16 | tr -d '+=' | head -c 16 ) | |
my $get_salt = sub { | |
my ( $out, $err ); | |
my @command = split ' ', 'openssl rand -base64 16'; | |
run3 \@command, undef, \$out, \$err; |
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 Plack::App::Directory; | |
use Plack::Builder; | |
my $pad = Plack::App::Directory->new->to_app; |
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 Dancer; | |
use File::Copy; | |
use Wallflower; | |
use My::App; | |
my $app = sub { | |
my $env = shift; | |
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
/* | |
* QtWebKit-powered headless test runner using PhantomJS | |
* | |
* PhantomJS binaries: http://phantomjs.org/download.html | |
* Requires PhantomJS 1.6+ (1.7+ recommended) | |
* | |
* Run with: | |
* phantomjs runner.js [url-of-your-qunit-testsuite] | |
* | |
* e.g. |