Skip to content

Instantly share code, notes, and snippets.

View w0rldart's full-sized avatar

Al w0rldart

View GitHub Profile
@w0rldart
w0rldart / README.md
Last active January 21, 2025 19:16
JIRA Upgrade from 8 to 9.4 LTS, together with MySQL upgrade from 5 to 8

Jira and MySQL upgrade

This GIST is a compilation of steps/instructions to help on how to

  1. Upgrade MySQL to version 8 from version 5
  2. Upgrade Jira to version 9.4 LTS from version 8.x
  3. Fix MySQL collation issues for new version of Jira

These steps have been executed on Ubuntu 24.04 after a few subsecuent Ubuntu OS upgrades with the do-release-upgrade tool. It might be different for you if you have a different configuration and OS, but the overall process/idea should be universal.

@w0rldart
w0rldart / README.md
Created February 27, 2025 05:07
Python Script for Monitoring Running Processes and Docker Containers

Python Script for Monitoring Running Processes and Docker Containers

This Python script captures and logs information about running OS processes and Docker containers on a Unix-like system. It filters out specific unwanted processes (e.g., system tasks, internal commands) to provide a clear view of active user processes and containers.

Features

  • Process Monitoring: Uses the ps command to retrieve detailed information about running processes, including user, PID, CPU, and memory usage.
  • Docker Integration: Utilizes Docker CLI to fetch active container information in JSON format.
  • Exclusion List: Implements an exclusion mechanism to filter out system processes and commands based on a predefined list.
  • Output in JSON: Saves results in separate JSON files (running_processes.json and docker_containers.json) for easy consumption and analysis.
  • Error Logging: Captures errors during execution in a dedicated log file.