Skip to content

Instantly share code, notes, and snippets.

View officialmofabs's full-sized avatar
💭
building safe spaces

Moses Fabiyi officialmofabs

💭
building safe spaces
View GitHub Profile
# Use a base image with systemd support, you free to modify the base image as you want
FROM ubuntu:23.10
#FROM debian:12
# Enable systemd
ENV container docker
STOPSIGNAL SIGRTMIN+3
# Install systemd and other dependencies
RUN apt-get update && \
@officialmofabs
officialmofabs / docker-compose.yaml
Created July 6, 2025 00:02 — forked from natcl/docker-compose.yaml
docker-compose static IP example
version: '3'
networks:
mynetwork:
ipam:
config:
- subnet: 172.20.0.0/24
services:
nodered1:
image: nodered/node-red-docker
ports:
@officialmofabs
officialmofabs / win10dockerinstallwsl2.ps1
Created July 5, 2025 21:55 — forked from chamindac/win10dockerinstallwsl2.ps1
This script automates installation of Docker Desktop on Windows 10 and uses WSL2
set-executionpolicy -scope CurrentUser -executionPolicy Bypass -Force
If (-NOT ([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator))
{
# Relaunch as an elevated process:
Start-Process powershell.exe "-File",('"{0}"' -f $MyInvocation.MyCommand.Path) -Verb RunAs
exit
}
$ProgressPreference = 'SilentlyContinue'
@officialmofabs
officialmofabs / Dockerized-PostgreSQL-17-Ubuntu-24.04.1.md
Created July 5, 2025 21:28 — forked from farunurisonmez/Dockerized-PostgreSQL-17-Ubuntu-24.04.1.md
Docker Compose Configuration for PostgreSQL 17 on Ubuntu 24.04.1 with Static IP and Custom Settings

Dockerized PostgreSQL 17 Service on Ubuntu 24.04.1 (AMD64)

Overview

This document outlines the configuration and deployment process of a Dockerized PostgreSQL database service using Docker Compose, optimized for use on Ubuntu 24.04.1. The setup ensures high availability, persistent data storage, and efficient resource management, while adhering to best practices for containerized services in production environments.

Table of Contents

  1. System Requirements
  2. Project Structure

We can configure the USB drive so that it can be auto-mounted when plugged in.

  1. Insert the external USB drive to the linux server

  2. UUID (universal unique identifier) is used in Linux for the detection of the USB which is plugged in or for the identification of the partition used by the USB drive. Because of this we have to be a root user. We can be a root user by the sudo command, it will ask for a password.

  3. Use this command to list the disk or dirves connected

pi@raspberrypi:~ $ lsblk
NAME        MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
@officialmofabs
officialmofabs / .settings.json
Created June 17, 2025 08:15 — forked from robfrawley/.settings.json
Global Installation of Jetbrains Toolbox
{
"jba": {
"email": "rmf@src.run",
"fullName": "Rob Frawley 2nd",
"login": "robfrawley"
},
"privacy_policy": {
"eua_accepted_version": "1.2"
},
"install_location": "/opt/jetbrains/lib",
@officialmofabs
officialmofabs / fedora-41-desktop-setup.sh
Created June 15, 2025 22:10 — forked from ph33nx/fedora-41-desktop-setup.sh
Fedora 41 Desktop Environment Setup for Developers
sudo dnf update -y && sudo dnf autoremove -y
reboot
# Enable RPMFusion repos: https://docs.fedoraproject.org/en-US/quick-docs/rpmfusion-setup/
sudo dnf install https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm
sudo dnf config-manager --enable fedora-cisco-openh264
sudo dnf update @core
# If secure boot
sudo dnf install kmodtool akmods mokutil openssl
@officialmofabs
officialmofabs / !autossh-service.md
Created June 7, 2025 12:15 — forked from NiklasGollenstede/!autossh-service.md
Automatic, persistent, and secure SSH port forwarding between hosts

This is a comprehensive and automated guide to set up automatic, persistent, and secure SSH port forwarding between hosts.

Please read the content for more information.

@officialmofabs
officialmofabs / yaml-pipeline-build-release.md
Created May 17, 2025 21:29 — forked from kylermintah/yaml-pipeline-build-release.md
Azure DevOps Build & Release YAML Templates

Azure DevOps Pipelines Build & Release with YAML Templates 🚀


Evergreen | Last Tended 🌳 Feb 28, 2021


In this piece we explore a technique for YAML pipeline modularization in Azure DevOps using YAML templates.