Skip to content

Instantly share code, notes, and snippets.

View stdevPavelmc's full-sized avatar

Pavel Milanes (CO7WT) stdevPavelmc

View GitHub Profile
@stdevPavelmc
stdevPavelmc / Secure_registry_microk8s.md
Last active December 22, 2023 07:00
Securing a microk8s registry

Adding auth for the default registry

  • Add this vars to the env in the deployment
- name: REGISTRY_AUTH_HTPASSWD_REALM
  value: Registry Realm
- name: REGISTRY_AUTH_HTPASSWD_PATH
  value: /var/lib/registry/registry.auth
@stdevPavelmc
stdevPavelmc / repo_uppdate.sh
Created March 27, 2024 01:19
Ubuntu debmirror update script
#!/bin/bash
## Author: Pavel Milanes <[email protected]> / Telegram: @pavelmc
## Goal: mirror ubuntu repos
## Last Mod: Tue Mar 26 07:22:45 PM EST 2024
# This script use the terms described on the ubuntu base docs
# https://ubuntu.com/landscape/docs/explanation-about-repository-mirroring
# Archs, you can set more than one, comma separated no space [a,b,c,d]
@stdevPavelmc
stdevPavelmc / delete-messages.sh
Last active March 25, 2025 02:27
Zimbra massive message delete across all mailboxes
#!/bin/bash
# This script cycle throug all email users and try to find an email with a particular subject and erase it
# Author: [email protected] circa 2024
# usage
if [ -z "$1" ]; then
echo "Goal: search for an emails with a subject and erase them"
echo "usage: Delete-mails <subject_simple_pattern> [option]"
echo "Option is:"