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
#include <stdio.h> | |
#include <string.h> | |
#include <assert.h> | |
int hexdump(FILE *fd, void const *ptr, size_t length, int linelen, int split); | |
int main(void) | |
{ | |
FILE *fd; | |
char buffer[100] = "0123456789ABCDEFabcdef0123456789AAAABBBBCCCCDDDDHello World\rTest-line\n"; |
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.30.0; | |
use strict; | |
use warnings; | |
use Crypt::OpenSSL::Verify 0.19; | |
use Crypt::OpenSSL::X509; | |
use Data::Dumper; | |
use File::Slurp qw{ write_file }; | |
use Test::More; | |
my $cert = '-----BEGIN CERTIFICATE----- |
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
my $mc = MetaCPAN::Client->new; | |
my $query = { | |
all => [ | |
{ provides => $module }, | |
{ status => 'latest' }, | |
] | |
}; | |
my $results = $mc->release($query, { fields => | |
[qw/ name download_url abstract distribution version /] }); |
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
$base64data = "insert compressed and base64 data here" | |
$data = [System.Convert]::FromBase64String($base64data) | |
$ms = New-Object System.IO.MemoryStream | |
$ms.Write($data, 0, $data.Length) | |
$ms.Seek(0,0) | Out-Null | |
$sr = New-Object System.IO.StreamReader(New-Object System.IO.Compression.DeflateStream($ms, [System.IO.Compression.CompressionMode]::Decompress)) | |
while ($line = $sr.ReadLine()) { |