Skip to content

Instantly share code, notes, and snippets.

View feloy's full-sized avatar

Philippe Martin feloy

View GitHub Profile
@feloy
feloy / skill-pnpm11-migration.md
Last active July 24, 2026 09:37
Migrate pnpm to v11 for Podman Desktop extensions
name pnpm11-migration
description Step-by-step guide for migrating a Podman Desktop extension from pnpm v10 to v11. Covers config relocation, workspace YAML format, Containerfile updates, CI workflow fixes, and common pitfalls. Triggers when upgrading pnpm to v11 or fixing pnpm v11 compatibility issues.

pnpm v10 → v11 Migration Guide

@feloy
feloy / openshell-podman-proxy.md
Last active July 9, 2026 13:49
Test HTTPS Proxy with OpenShell and Podman driver

Related issue: NVIDIA/OpenShell#1792

Run a mitmproxy with HTTPS connection:

$ mkdir -p $HOME/.mitmproxy
$ podman run -d --name mitmproxy -p 8080:8080 \        
    -v "$HOME/.mitmproxy:/home/mitmproxy/.mitmproxy" \
    mitmproxy/mitmproxy mitmdump -p 8080
@feloy
feloy / download-and-run-openshell-gateway.sh
Created June 11, 2026 11:22
Download and run OpenShell gateway with podman driver on macOS X arm64
#!/bin/sh
# Download and run openshell gateway on macOS X (ARM64).
# Execute this script from an empty directory
# Tested with OpenShell v0.0.59
set -e
ARCH="aarch64-apple-darwin"
# Check if openssl is available
@feloy
feloy / devfile.yaml
Created November 17, 2021 14:28
devfile with inner and outer loop
commands:
- exec:
commandLine: npm install
component: runtime
group:
isDefault: true
kind: build
workingDir: /project
id: install
- exec:
#!/bin/bash
while : ; do
go run main.go &
fswatch -xrn1 -m inotify_monitor --event Created --event Removed --event Updated --event Renamed .
killall main
done
// Package p contains a Firestore Cloud Function.
package p
import (
"context"
"errors"
"fmt"
"log"
"os"
"strings"
package p
// Score represents the Score collection in Firestore
type Score struct {
Uid string
Name string
Points int
Details string
Country string
}
package p
import (
"errors"
"fmt"
"strconv"
)
// FirestoreValue holds Firestore fields.
type FirestoreValue struct {
// Package p contains a Firestore Cloud Function.
package p
import (
"context"
"fmt"
"log"
"cloud.google.com/go/functions/metadata"
)
module cloudfunction
require cloud.google.com/go v0.34.0