Skip to content

Instantly share code, notes, and snippets.

View rm3l's full-sized avatar

Armel Soro rm3l

View GitHub Profile
@rm3l
rm3l / oc-pull-secret-update-global.sh
Last active December 21, 2023 20:28 — forked from nickboldt/oc-pull-secret-update-global.sh
add tokens/pwds for quay.io (and/or for registry.redhat.io) to your openshift's global or per-project pull secret
#!/bin/bash
# set your own logins!
#QUAY_USER="****"
#QUAY_TOKEN="****"
#RRIO_USERNAME="****"
#RRIO_PASSWORD="****"
# login to quay.io
REGISTRY="quay.io"
@rm3l
rm3l / configureGlobalFetch.ts
Created May 2, 2024 14:22 — forked from zicklag/configureGlobalFetch.ts
Configuring a Global Proxy for Undici That Kind of Supports the `no_proxy` Environment Variable.
/**
* Importing this modules will configure the global undici agent, which is used to provide
* global `fetch()` support, to use an http proxy if present during development. Unfortunately
* undici doesn't come with this functionality so we implement a solution that is not fully
* correct as to the way that proxy environment variables are supposed to be parsed.
*
* This only goes into effect during development, though, and it's functional enough for that
* purpose.
*/