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 v5.26; | |
use open qw(:std :utf8); | |
use Mojo::JSON qw(decode_json); | |
use Mojo::UserAgent; | |
use Mojo::Util qw(dumper); | |
# See another gist to create JSON https://gist.github.com/briandfoy/656a8986e2d998122e37486df1f1f999 | |
@ARGV = '/Users/brian/Desktop/net-ssh-perl-rt.json'; | |
my $raw = Mojo::File->new($ARGV[0])->slurp; |
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 v5.26; | |
use warnings; | |
=encoding utf8 | |
=head1 NAME | |
rt_cpan_org_export - grab the tickets for an rt.cpan.org queue | |
=head1 SYNOPSIS |
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
#!/Users/brian/bin/perl | |
use v5.36; | |
use open qw(:std :utf8); | |
use Mojo::UserAgent; | |
my $ua = Mojo::UserAgent->new; | |
my( $user, $repo ) = split m|/|, $ARGV[0]; | |
my $url = $ARGV[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
<html> | |
<head> | |
<title>Selector example</title> | |
</head> | |
<body> | |
<a href="https://stackoverflow.com/a/76537358/2766176">https://stackoverflow.com/a/76537358/2766176</a> | |
<div> |
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 | |
=encoding utf8; | |
=head1 NAME | |
grab-gist - download all the files in a gist | |
=head1 SYNOPSIS |
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
#!/Users/brian/bin/perl | |
use v5.36; | |
use open qw(:std :utf8); | |
use utf8; | |
use File::Basename; | |
use Text::Shellwords qw(shellwords); | |
=head1 NAME |
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 | |
# Don't judge me too harshly. This is a throwaway that I put | |
# together in 5 minutes to make a couple hundred pull requests | |
DEV=/Users/brian/Dev | |
target=.github/workflows/windows.yml | |
message="Update windows workflow" | |
echo MESSAGE $message | |
branch=windows-update | |
json=$(cat <<-END |
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
#!perl | |
use v5.36; | |
use feature (); | |
my( %Features, %Versions ); | |
foreach my $key ( keys %feature::feature_bundle ) { | |
next unless $key =~ /\A5\.\d[02468]\z/; | |
$Versions{$key}++; | |
foreach my $feature ( $feature::feature_bundle{$key}->@* ) { | |
$Features{$feature}{$key}++; |
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
#!perl | |
use v5.10; | |
use utf8; | |
use Encode; | |
use I18N::Langinfo qw(langinfo CODESET); | |
use MIME::Base64; | |
my $codeset = langinfo(CODESET); |
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
# Here's the input, as an indented heredoc | |
my $string = <<~"_STRING"; | |
ABCD | |
EFGH | |
IJKL | |
ABCD | |
EFGH | |
IJKL | |
_STRING |
NewerOlder