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
#!/usr/bin/env perl
#
# Usage:
#
# closure-compiler.pl < file1.js file2.js file3.js ... > out.js
#
use strict;
use warnings;
#!/usr/bin/env perl
use Find::Lib '../projects/Growl-Tiny/lib';
use CHI;
use Data::Dump qw( dump );
use Getopt::Declare;
use Growl::Tiny qw( notify );
use JSON;
use List::Compare;
<!-- replace "username" with your username -->
<!-- replace "my_default_page_name" (in the noscript section) with the fallback page name for your counters -->
<!-- begin wundercounter.com code http://www.wundercounter.com/?refID=username -->
<script type="text/javascript">
(function() {
var lang = ( typeof( navigator.browserLanguage ) == 'undefined' ) ? navigator.language : navigator.browserLanguage;
var referrer = ( document.referrer === '' ) ? parent.document.referrer : document.referrer;
{
index => {
data => {
abstract => "easily run sequence alignments locally or on a cluster",
archive => "D/DM/DMESSINA/AlignAid-v0.0.2.tar.gz",
author => "DMESSINA",
distname => "AlignAid-v0.0.2",
distvname => "AlignAid-v0.0.2",
download_url => "http://cpan.metacpan.org/authors/id/D/DM/DMESSINA/AlignAid-v0.0.2.tar.gz",
name => "AlignAid",
olaf-alderss-macbook-pro:developer olaf$ perl pm_example.pl
[ERROR] ** ElasticSearch::Error::Request at /Users/olaf/local/lib/perl5/site_perl/5.12.2/ElasticSearch/Transport/HTTPLite.pm line 49 :
ReplicationShardOperationFailedException[[perlmongers][2] ]; nested:
With vars:{
'request' => {
'qs' => {},
'cmd' => '/perlmongers/group/626',
'data' => {
'web' => 'http://abe.pm.org/',
xdg: oalders, META.yml throwing errors in the YAML parse or in interpretation?
[09:39am] oalders: xdg: Errors when trying to load the file, so parse I guess?
[09:39am] xdg: Loading with what YAML parser?
[09:40am] oalders: xdg: YAML.pm
[09:40am] xdg: !!
[09:41am] xdg: First try CPAN::Meta::YAML, then fall back to other YAML parsers
[09:41am] xdg: They are all slightly different.
[09:41am] xdg: http://echo.dagolden.com/~xdg/meta-yaml-testing/
[09:41am] xdg: that's a very old test to find distributions where different YAML parsers disagreed either on validity or results
[09:42am] xdg: mouse over the colored boxes to see a description in the tooltip
@oalders
oalders / gist:935471
Created April 21, 2011 21:11
metacpan submodule update
olaf-alderss-macbook-pro:cpan-api olaf$ git submodule init
Submodule 'inc/hidek/Plack-Middleware-Auth-OAuth' (https://github.com/hidek/Plack-Middleware-Auth-OAuth.git) registered for path 'inc/hidek/Plack-Middleware-Auth-OAuth'
olaf-alderss-macbook-pro:cpan-api olaf$ git submodule update
Cloning into inc/hidek/Plack-Middleware-Auth-OAuth...
remote: Counting objects: 74, done.
remote: Compressing objects: 100% (26/26), done.
remote: Total 74 (delta 20), reused 74 (delta 20)
Unpacking objects: 100% (74/74), done.
Submodule path 'inc/hidek/Plack-Middleware-Auth-OAuth': checked out 'c1186f28270673be76da4af1bb4eb9b3e72fea2d'
remote: Counting objects: 50, done.
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAv2nWlnwMiIwfTpClbqDwHWL/gI5Yk8SqBGA7GRL/dMO7USpqYl3xEcAAFRSjI89cqxpFumVQLbD5m3agIkMIaiMOlNUpdd3YWtvawPATXrZQ3HSbuFlJ2IPB2PdjD4Y37nlLLolCfnlHTK5tuTuUpv57k9JB/HDr+CJIBVgsnP8ox3RwhIRG0nIm7LkBcRGbM2TDCDWbFNd1Y3w1kHc3JK4r3ZAt5p/hZWK/8hf6emBMcflNalB3RWTR7sAeemVHClHu8n1UGQRDMrE9EX+HELcpxe8kGVAm7PyavbPoANJ92CoxV50wsNMDwHotBkh7ehmE0nl3Z5FCLVtpZsK/EQ== olaf@olaf-alderss-macbook-pro.local
# this returns results
curl -XGET 'http://127.0.0.1:9200/cpan/release/_search?scroll=5m&pretty=1' -d '
{
"query" : {
"term" : {
"status" : "latest"
}
},
"explain" : 0,
"size" : 10
<html>
<body>
<h2>Recent CPAN Releases</h2>
<script type="text/javascript">
function cpan_distros(data) {
document.write('<dl>');
for (i in data.hits.hits) {
var dist = data.hits.hits[i]._source;