Skip to content

Instantly share code, notes, and snippets.

@adelton
adelton / investigation.md
Created December 5, 2023 17:14
Kind in podman

Kind in pod

The Kind project project provides a tool to start a Kubernetes cluster running within containers in Docker / Moby engine or podman.

When a Kubernetes cluster is needed for testing, it is then quite natural to want to run in a containerized manner itself, either locally or

@adelton
adelton / README.md
Last active August 17, 2023 13:16
OpenShift Console on MicroShift

OpenShift Console on MicroShift

On MicroShift 4.13 installed on RHEL 9.2 using Installing and configuring MicroShift clusters product documentation, OpenShift Console can be enabled on port :9000 by fetching the files from this gist and then running

# oc create serviceaccount -n kube-system openshift-console
# bash openshift-console.eval | oc create -f -
@adelton
adelton / bugzilla-favicon.js
Last active March 28, 2023 23:39
Violentmonkey scripts
// ==UserScript==
// @name Set bugzilla favicon
// @namespace Adelton Violentmonkey Scripts
// @include https://bugzilla.redhat.com/*
// @grant none
// ==/UserScript==
var link = document.querySelector("link[rel = 'shortcut icon']");
if (!link) {
link = document.createElement('link');
@adelton
adelton / gist:b4cd3d59b3f315a19a8814dcd307c340
Created February 26, 2022 18:17
Debugging why Django under mod_wsgi hangs on Fedora 35 (with python 3.10)
The handling of the request produces output, sends it to client but then never gets to logging the request in the access_log.
python3-3.10.2-1.fc35.x86_64
apr-1.7.0-14.fc35.x86_64
httpd-2.4.52-1.fc35.x86_64
python3-mod_wsgi-4.9.0-1.fc35.x86_64
(gdb) r -X
The program being debugged has been started already.
Start it from the beginning? (y or n) y
@adelton
adelton / PRs
Created May 9, 2018 16:56
Tibor's Tang pull requests
Tang: https://github.com/openwrt/packages/pull/5447
jansson: https://github.com/openwrt/packages/pull/4289
libhttp-parser: https://github.com/openwrt/packages/pull/5446
jose: https://github.com/openwrt/packages/pull/4334
@adelton
adelton / google-calendar-color-undecided.tampermonkey
Created March 1, 2018 07:09
Google Calendar color undecided items
// ==UserScript==
// @name Google Calendar color undecided items
// @namespace adelton
// @description New 2018 Google Calendar, color undecided items to make clearer which calendar they are in
// @include https://www.google.com/calendar/*
// @include https://calendar.google.com/*
// @version 1.1
// @grant none
// ==/UserScript==
document.addEventListener('DOMNodeInserted', function() {
@adelton
adelton / google-calendar-color-items.tampermonkey
Last active February 27, 2018 09:04
Google Calendar color tasks, not dots
// ==UserScript==
// @name Google Calendar color tasks, not dots
// @namespace adelton
// @description New 2018 Google Calendar, color the tasks instead of the colored dots
// @include https://www.google.com/calendar/*
// @include https://calendar.google.com/*
// @version 1.1
// @grant none
// ==/UserScript==
document.addEventListener('DOMNodeInserted', function() {
@adelton
adelton / fetch-single-pull-request-from-github
Last active June 23, 2020 20:23
Fetch single pull request from github
In projects where I only participate in some small areas, I often want to fetch
or update just one (or few) particular pull request, without polluting my repo with the full
fetch = +refs/pull/*/head:refs/pull/origin/*
configuration. To do that, one-off command like
git fetch origin refs/pull/529/head:pr-529 -f
does the trick.