Skip to content

Instantly share code, notes, and snippets.

@adelton
adelton / README.md
Last active April 17, 2025 21:32
NetworkManager and Oracle Cloud instances and IPv6

AlmaLinux-9-OCI-9.5-20250205.aarch64

[opc@test-ipv6-almalinux ~]$ ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
@adelton
adelton / gist:ec152cda6e6d63de6d7daa07957f93a8
Last active January 9, 2025 20:07
Build OpenWrt LuCI package in a container
$ podman run --rm -ti registry.fedoraproject.org/fedora-minimal:41
bash-5.2# dnf install -y asciidoc bash binutils bzip2 flex git-core gcc-c++ gcc util-linux gawk gzip help2man intltool elfutils-libelf-devel zlib-devel make ncurses-devel openssl-devel patch perl-ExtUtils-MakeMaker perl-Thread-Queue swig unzip wget gettext libxslt zlib-devel zlib-static which rsync perl-FindBin perl-IPC-Cmd tar perl-Time-Piece
bash-5.2# dnf install -y tar zstd
bash-5.2# curl -O https://downloads.openwrt.org/releases/24.10.0-rc5/targets/x86/64/openwrt-sdk-24.10.0-rc5-x86-64_gcc-13.3.0_musl.Linux-x86_64.tar.zst
bash-5.2# tar xvaf openwrt-sdk-24.10.0-rc5-x86-64_gcc-13.3.0_musl.Linux-x86_64.tar.zst
bash-5.2# cd openwrt-sdk-24.10.0-rc5-x86-64_gcc-13.3.0_musl.Linux-x86_64
bash-5.2# vi feeds.conf.default
# Basic setup
text
network --bootproto=dhcp --device=link --activate
# Basic partitioning
clearpart --all --initlabel --disklabel=gpt
reqpart --add-boot
part / --grow --fstype xfs
# Here's where we reference the container image to install - notice the kickstart
# has no `%packages` section! What's being installed here is a container image.
@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 September 8, 2024 22:44
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() {