Skip to content

Instantly share code, notes, and snippets.

View robin-a-meade's full-sized avatar

Robin A. Meade robin-a-meade

View GitHub Profile
@robin-a-meade
robin-a-meade / distrobox_fedora_playwright.md
Created February 6, 2026 01:36 — forked from pskopek/distrobox_fedora_playwright.md
Playwright compatible distrobox setup on Fedora 41

Setup on Fedora 41 (or other not supported Linux distro)

Playwright doesn't support Fedora distribution. Following is a description how to run the tests using Ubuntu 22.04 image using distrobox which is fairy supported on various Linux distributions.

Install distrobox and podman packages

sudo dnf install distrobox podman
@robin-a-meade
robin-a-meade / osc52.md
Last active June 12, 2026 22:53
OSC 52 escape sequence to copy to clipboard in terminal

OSC 52 escape sequence to copy to clipboard in terminal

OSC 52 (Operating System Command 52) is an ANSI escape sequence that allows a terminal application to read or write to your local system's clipboard.

Note

Not all terminal emulators support OSC 52, and those that do usually restrict it to writing to the clipboard, disallowing reading from it.

Restricting it to writing is to prevent the scenario of a malicious application reading sensitive information from the user's clipboard.

More about terminal support below.

@robin-a-meade
robin-a-meade / .bashrc
Created October 15, 2025 18:42
Minimal bashrc with TAB:menu-complete and prefix history search using UP and DOWN arrow keys
# .bashrc
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
# User specific aliases and functions
# Return immediately if not an interactive shell
@robin-a-meade
robin-a-meade / deps_to_classpath
Last active March 30, 2024 19:49
resolve dependencies and print classpath. This is a wrapper around `jbang info classpath`.
#!/bin/bash
# NAME
# deps_to_classpath - resolve dependencies and print classpath
#
# SYNOPSIS
# deps_to_classpath [OPTIONS] DEP...
#
# EXAMPLE
# Suppose you are evaluating different HTML parsers to use with saxon. You
@robin-a-meade
robin-a-meade / versions-maven-plugin ignore versions.md
Last active March 15, 2026 07:00
versions-maven-plugin How to ignore alpha beta release candidate and milestone versions

versions-maven-plugin: How to ignore alpha, beta, release candidate, and milestone versions

Introduction

The versions-maven-plugin, by default, does not ignore versions ending with qualifier strings when searching for the latest version of an artifact.

For example, versions ending with -alpha.14, -beta3, -M-2, and -RC1 will be considered as valid upgrade candidates.

Suppose your project depends on version 3.2.1 of a certain artifact and then 3.3.0-beta is released. The versions-maven-plugin will, by default, consider that to be a valid upgrade.

@robin-a-meade
robin-a-meade / Sample output
Created April 9, 2023 06:34
Check the gnome extension packages in the Fedora repo for any that are not compatible with the currently running version of Gnome
Checking for existence of jq command ..... Y
Checking for existence of rpm2cpio command ..... Y
Checking for existence of cpio command ..... Y
You are running Fedora 38
You are running Gnome 44
There are 43 packages matching the pattern 'gnome-shell-extension-*'
1 gnome-shell-extension-appindicator-0:53-1.fc38.noarch
2 gnome-shell-extension-apps-menu-0:44.0-1.fc38.noarch
3 gnome-shell-extension-argos-0:3^20220712git1180568-2.fc38.noarch
4 gnome-shell-extension-auto-move-windows-0:44.0-1.fc38.noarch
@robin-a-meade
robin-a-meade / .gitignore
Last active November 15, 2022 09:53
Webpack detects ESM modules automatically
/main.js
/node_modules
/package-lock.json
@robin-a-meade
robin-a-meade / README.md
Last active August 21, 2022 04:05
How to use ESM modules with NodeJS

How to use ESM modules with NodeJS

Excerise 1: Clone the gist and run the examples

  1. Create a temporary directory and cd into it
  2. Clone the gist
  3. Run the examples
cd "$(mktemp -d)"
git clone git@gist.github.com:4ba7867a771de384b66b512d1847de61.git .