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
@oalders
oalders / gist:fae520a36ea6cd197a31dbab226bb8f4
Created October 7, 2022 21:29
PerlNavigator Debug log
[Trace - 5:25:10 PM] Sending request 'initialize - (0)'.
Params: {
"processId": 22655,
"clientInfo": {
"name": "Visual Studio Code",
"version": "1.72.0"
},
"locale": "en-us",
"rootPath": "/Users/olaf/Documents/perl-scratch",
"rootUri": "file:///Users/olaf/Documents/perl-scratch",
@oalders
oalders / pod-spell-check.pl
Created September 21, 2022 20:55
Pod Spell Checking Script
#!/usr/bin/env perl
# Mostly borrowed from Code::TidyAll::Plugin::PodSpell
use 5.36.0;
use Capture::Tiny qw( capture );
use FindBin ();
use IPC::Run3 qw( run3 );
use Pod::Spell ();
@oalders
oalders / gist:179d60173ff178d199f06711729d73e7
Created September 9, 2022 22:19
perlimports ALE config
" Author: Olaf Alders <https://github.com/oalders>
" Description: This file adds support for perlimports
call ale#Set('perl_perlimports_executable', 'perlimports')
function! ale_linters#perl#perlimports#Handle(buffer, lines) abort
let l:pattern = '\(.\+\) at \(.\+\) line \(\d\+\)'
let l:output = []
for l:match in ale#util#GetMatches(a:lines, l:pattern)
@oalders
oalders / dots.svg
Created July 28, 2022 21:04
MetaCPAN dots
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@oalders
oalders / gist:b7d403c83e5e5ce014f0fcff99d34e03
Created November 30, 2021 17:38
Default install via carton
git clone git@github.com:perl-carton/carton.git
cd carton/
perl -Ilib -MLWP::ConsoleLogger::Everywhere script/carton
Installing modules using /Users/olafalders/Documents/github/carton/cpanfile
GET http://cpan.metacpan.org/authors/id/D/DA/DAGOLDEN/Capture-Tiny-0.48.tar.gz
.---------------------------------+--------------.
| Request (before sending) Header | Value |
+---------------------------------+--------------+
| User-Agent | Menlo/1.9019 |
git branch -m master main
git fetch origin
git branch -u origin/main main
git remote set-head origin -a
@oalders
oalders / gist:623ced01fbd3449575ce883f455e4bac
Created April 1, 2021 15:08
Class::Unload vs Import::Into
#!/usr/bin/env perl
use strict;
use warnings;
require Class::Unload;
require Import::Into;
Class::Unload->unload('Import::Into');
2021/03/02 19:00:22 W release: META file (/tmp/tempMeGTl/libapreq2-2.15/META.yml) could not be loaded: Failed to upconvert metadata to 1.2. Errors:
Missing mandatory field, 'file' (provides -> APR::Request::Param -> file) [Validation: 1.2]
Missing mandatory field, 'file' (provides -> APR::Request -> file) [Validation: 1.2]
Missing mandatory field, 'file' (provides -> APR::Request::CGI -> file) [Validation: 1.2]
Missing mandatory field, 'file' (provides -> Apache2::Upload -> file) [Validation: 1.2]
Missing mandatory field, 'file' (provides -> APR::Request::Apache2 -> file) [Validation: 1.2]
Missing mandatory field, 'file' (provides -> Apache2::Cookie -> file) [Validation: 1.2]
Missing mandatory field, 'file' (provides -> APR::Request::Error -> file) [Validation: 1.2]
Missing mandatory field, 'file' (provides -> Apache2::Request -> file) [Validation: 1.2]
Missing mandatory field, 'file' (provides -> APR::Request::Cookie -> file) [Validation: 1.2]
@oalders
oalders / gist:ca0100049e91c71992e2a2d9f8f54c1f
Created February 25, 2021 15:07
cpan.metacpan.org nginx Fastly config
http://nginx.org/en/docs/http/request_processing.html
# nginx first searches for the most specific prefix
# location given by literal strings regardless of the
# listed order. In the example configuration the only prefix
# location is ''/'�~] and since it matches any request it will
# be used as a last resort. Then nginx checks locations
# given by regular expression in the order listed in the
# configuration file. The first matching expression stops
# the search and nginx will use this location. If no regular
@oalders
oalders / gist:30d3d3a15f791f318b3b897e64310f49
Created September 22, 2020 16:51
Deutsch-kanadischer Krümelkuchen
Deutsch-kanadischer Krümelkuchen
 
Zutaten:
3 Tassen Mehl

Eine 3/4 Tasse Zucker 

2 Eier 

1/2 Päckchen (in Kanada = 227 g) ungesalzene Butter 

2 Teelöffel Backpulver 

1 Teelöffel Vanille-Extrakt oder ein Päckchen Vanille-Zucker