Skip to content

Instantly share code, notes, and snippets.

View dPacc's full-sized avatar
:octocat:
超本能

Deepak dPacc

:octocat:
超本能
  • Abu Dhabi
  • 00:43 (UTC +04:00)
View GitHub Profile
@dPacc
dPacc / log_trace_metrics.md
Created May 3, 2024 09:59
Logging vs Tracing vs Metrics

Logging vs Tracing vs Metrics

log_trace_metrics

Logging, Tracing, Metrics

Logging, tracing, and metrics are 3 pillars of system observability.

Logging

Logging records discrete events in the system. For example, we can record an incoming request or a visit to databases as events. It has the highest volume. ELK (Elastic-Logstash-Kibana) stack is often used to build a log analysis platform. We often define a standardized logging format for different teams to implement, so that we can leverage keywords when searching among massive amounts of logs.

@dPacc
dPacc / nexus_bkp_rst.md
Created January 17, 2025 04:42
Nexus Repository Backup and Restore

Sonatype Nexus Backup and Restore Guide

This guide provides detailed instructions for backing up and restoring Sonatype Nexus data when running in a Docker container. It includes automated backup scripts and step-by-step restoration procedures.

Prerequisites

  • Docker installed and running
  • Sonatype Nexus running in a Docker container
  • Root or sudo access to the host system
  • Basic understanding of bash scripting and cron jobs
@dPacc
dPacc / jenkins_backup_restore.md
Created January 22, 2025 05:04
Jenkins Backup and Restoration Guide

Jenkins Backup and Restoration Guide

This guide provides detailed instructions for backing up and restoring Jenkins configurations, jobs, and credentials when running Jenkins via WAR file.

Current Setup

System Information

  • Jenkins running from WAR file
  • Jenkins home directory: /data/jenkins
  • WAR file: jenkins_2.452.1.war
@dPacc
dPacc / private_docker_registry.md
Created January 23, 2025 05:07
Self Host Private Docker Registry

Setting Up Chromium and ChromeDriver for Browser Automation on Ubuntu

This guide explains how to properly set up Chromium and ChromeDriver on Ubuntu servers for browser automation tasks using tools like Selenium WebDriver.

The Problem with Ubuntu's Default Chromium Package

On Ubuntu (especially 20.04 and newer), the chromium-browser package in the default repositories is actually just a transitional package that redirects to the Snap version. This Snap-packaged version of Chromium runs in a confined environment with restricted filesystem access, which often causes permission issues when used with browser automation tools.

Common errors you might encounter with the Snap version include:

  • cannot create default profile directory