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 | |
name=$RANDOM | |
url='http://localhost:9093/api/v1/alerts' | |
echo "firing up alert $name" | |
# change url o | |
curl -XPOST $url -d "[{ | |
\"status\": \"firing\", |
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 Cwd; | |
use File::Temp; | |
# Remember the current directory | |
my $oldcwd = getcwd; | |
# Create a temporary directory | |
my $dir = File::Temp->newdir; | |
# Go to the temporary directory |
tl;dr We might need a standard build file to build a module from Git repository, especially for the ones using Module::Install or dzil.
When an author of CPAN module uses an authoring tool that generates build files when shipping them to CPAN, the git repository usually doesn't have enough files to build, test and install the module.
For example, if dzil (Dist::Zilla) is used, the repository only conatains dist.ini
and there's no Makefile.PL
or Build.PL
so standard CPAN installers or Continuous Integration tools don't know how to run tests on it.
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 5.12.0; | |
use autodie; | |
use Carp; | |
use utf8::all; | |
use File::Spec::Functions qw(catfile catdir); | |
use File::Find::Rule; | |
use Getopt::Long; | |
use Capture::Tiny qw(capture); |