Skip to content

Instantly share code, notes, and snippets.

View oalders's full-sized avatar
🚀
https://www.olafalders.com/2024/02/29/github-Copilot-chat-first-impressions/

Olaf Alders oalders

🚀
https://www.olafalders.com/2024/02/29/github-Copilot-chat-first-impressions/
View GitHub Profile
Mail Server Configuration
Postfix
postfixadmin
dkim
MySQL
RoundCube
POP + IMAP
SMTP Authentication (TLS)
SpamAssassin
processor : 0
vendor_id : GenuineIntel
cpu family : 15
model : 4
model name : Intel(R) Pentium(R) 4 CPU 3.00GHz
stepping : 9
cpu MHz : 2992.391
cache size : 1024 KB
physical id : 0
siblings : 2
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA97/wbLM5+KSuA6M3mxVU5VAyoa+oDuH+l+AZwiYlG8Z4Z9jCW2LWenOYBOF9cYAssX2iWVG3cpV/cOsgDc3hALlpm9BqEaX5nQWQ72uBws0B3R3wjsTuggd+WeXln6JaQSrnP+aHuXjpdUN0dIi2PBgCWUvYykvCJWDMWEa31RbpqjjLtG9ScYpyrphGbPMhdRiZ0KlMRWbJoZmCYc8YVucYFDdIMtl+Y+GfuqrPkB0d0R6Zox8wwMaf2BEMfKiXI1nB+KWRRlu6i5C/cERjK7k7ryCPWq9PaMp9OPqqyw/q5WDJ4ViUf8MNthGiPV54f5oNS85ooWE3OxUB+Lp4JQ== olaf@hm1
#!/usr/bin/env perl
use Data::Dump qw( dump );
use ElasticSearch;
use Modern::Perl;
my $es = ElasticSearch->new(
servers => 'api.beta.metacpan.org:80',
transport => 'httplite',
max_requests => 0, # default 10_000
my $result = $self->es->search(
index => $self->index,
type => ['file'],
query => { "match_all" => {} },
"filter" => {
"and" => [
{ "exists" => { "field" => "file.documentation" } },
{ "term" => { "file.status" => "latest" } },
]
},
curl -XGET 'http://api.beta.metacpan.org:80/v0/file/_search?scroll=5m&pretty=1' -d '
{
"fields" : [
"abstract",
"documentation",
"distribution"
],
"filter" : {
"and" : [
{
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAv2nWlnwMiIwfTpClbqDwHWL/gI5Yk8SqBGA7GRL/dMO7USpqYl3xEcAAFRSjI89cqxpFumVQLbD5m3agIkMIaiMOlNUpdd3YWtvawPATXrZQ3HSbuFlJ2IPB2PdjD4Y37nlLLolCfnlHTK5tuTuUpv57k9JB/HDr+CJIBVgsnP8ox3RwhIRG0nIm7LkBcRGbM2TDCDWbFNd1Y3w1kHc3JK4r3ZAt5p/hZWK/8hf6emBMcflNalB3RWTR7sAeemVHClHu8n1UGQRDMrE9EX+HELcpxe8kGVAm7PyavbPoANJ92CoxV50wsNMDwHotBkh7ehmE0nl3Z5FCLVtpZsK/EQ== olaf@olaf-alderss-macbook-pro.local
curl -XPOST api.beta.metacpan.org/release/_search?size=100 -d '{
"query": {
"match_all": {},
"range" : {
"release.date" : {
"from" : "2010-06-05T00:00:00",
"to" : "2011-06-05T00:00:00",
}
}
},

Introducing beta.metacpan.org - A better search for the CPAN

By mo on May 27, 2011 3:26 PM

I'm very excited to announce the front end for MetaCPAN: beta.metacpan.org. This is what you can expect from the new interface to the CPAN:

New uploads instantly available

New uploads to the CPAN are indexed within seconds. No more waiting for new uploads to appear on the search site. Check out /recent

@oalders
oalders / gist:1282447
Created October 12, 2011 20:32
cpanminus using MetaCPAN mirror
Use the MetaCPAN mirror for faster module installs:
cpanm --mirror http://cpan.metacpan.org #perl
or (courtesy of @doyster)
export PERL_CPANM_OPT="--mirror http://cpan.metacpan.org"
or as an alias: