Skip to content

Instantly share code, notes, and snippets.

View oalders's full-sized avatar
🚀
https://www.olafalders.com/2026/01/15/can-others-explain-my-work-without-me/

Olaf Alders oalders

🚀
https://www.olafalders.com/2026/01/15/can-others-explain-my-work-without-me/
View GitHub Profile
@oalders
oalders / gist:58977120631e5fa157f93be4427472d1
Created July 11, 2023 18:22
wezterm debugging part deux
14:20:54.310 TRACE config::config > consider config: /home/olaf/.wezterm.lua
14:20:54.310 TRACE config::config > consider config: /home/olaf/.config/wezterm/wezterm.lua
14:20:54.311 TRACE async_io::driver > block_on()
14:20:54.337 TRACE async_io::driver > block_on: completed
14:20:54.337 TRACE polling::epoll > add: epoll_fd=5, fd=7, ev=Event { key: 18446744073709551615, readable: false, writable: false }
14:20:54.337 TRACE polling::epoll > add: epoll_fd=5, fd=6, ev=Event { key: 18446744073709551615, readable: true, writable: false }
14:20:54.337 TRACE polling::epoll > new: epoll_fd=5, event_fd=6, timer_fd=Some(7)
14:20:54.337 TRACE async_io::driver > main_loop: waiting on I/O
14:20:54.337 TRACE async_io::reactor > process_timers: 0 ready wakers
14:20:54.337 TRACE polling > Poller::wait(_, None)
log_unknown_escape_sequences: false,
integrated_title_button_alignment: Right,
integrated_title_button_style: Windows,
integrated_title_button_color: Auto,
font_dirs: [],
color_scheme_dirs: [],
dpi: None,
font: TextStyle {
font: [
FontAttributes {
feature_code country_code country_name
PCL GG Guernsey
PCL IM Isle of Man
PCL JE Jersey
PCLD AI Anguilla
PCLD AX Åland Islands
PCLD BM Bermuda
PCLD BV Bouvet Island
PCLD CC Cocos [Keeling] Islands
PCLD CX Christmas Island
@oalders
oalders / dzil-docker.md
Last active March 3, 2023 23:28
dzil via Docker
@oalders
oalders / setup.sh
Created January 6, 2023 20:14
Testing Rails apps in Docker (unzip archive in the container)
#!/bin/bash
# Create an empty dir which contains only the .zip file of your app
# Copy this file to your app dir
# Save it as `setup.sh`
# Then run it via:
# docker run --rm -it -p 3000:3000 --volume $PWD:/sandbox ruby:3.2.0-bullseye ./sandbox/setup.sh
set -eux
@oalders
oalders / setup.sh
Created January 6, 2023 19:55
Testing Rails apps in Docker
#!/bin/bash
# Copy this file to your app dir
# Save it as `setup.sh`
# Then run it via:
# docker run --rm -it -p 3000:3000 --volume $PWD:/app ruby:3.2.0-bullseye ./app/setup.sh
set -eux
apt update
@oalders
oalders / gist:f930f26af8563c08d5d57dfae6714f6c
Last active December 12, 2022 20:32
error building WWW-Mechanize
[@Author::OALDERS/stale modules, build] checking for stale modules...
[DZ] beginning to build WWW-Mechanize
[@Author::OALDERS/Git::Contributors] multiple names with the same email found: you may want to use a .mailmap file (https://www.kernel.org/pub/software/scm/git/docs/git-shortlog.html#_mapping_authors)
[@Author::OALDERS/StaticInstall] setting x_static_install to 1
[@Author::OALDERS/Git::Contributors] Warning: distribution has non-ascii characters in contributor names. META.json will be unparsable on perls <= 5.8.6 when JSON::PP is lower than 2.27300
[DZ] writing WWW-Mechanize in WWW-Mechanize-2.16
[@Author::OALDERS/CopyFilesFromBuild] Copied WWW-Mechanize-2.16/cpanfile to cpanfile
[@Author::OALDERS/CopyFilesFromBuild] Copied WWW-Mechanize-2.16/LICENSE to LICENSE
[@Author::OALDERS/CopyFilesFromBuild] Copied WWW-Mechanize-2.16/Makefile.PL to Makefile.PL
[@Author::OALDERS/CopyFilesFromBuild] Copied WWW-Mechanize-2.16/META.json to META.json
@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)