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
@officialmofabs
officialmofabs / local-registry.md
Created August 18, 2025 14:56 — forked from trisberg/local-registry.md
Using a Local Registry with Minikube

Using a Local Registry with Minikube

Install a local Registry

These instructions include running a local registry accessible from Kubernetes as well as from the host development machine at registry.dev.svc.cluster.local:5000.

  1. Use the docker CLI to run the registry:2 container from Docker, listening on port 5000, and persisting images in the ~/.registry/storage directory.

Designing MySQL Database Using YAML

After using OpenAPI scheme to design my API, I wonder if I could also use similar notation to design the database. This is an attempt to do such that and to my surprise it works pretty well. Since there is no CLI that can generate the actual SQL file, we can use any of the available LLM chatbot to generate one for us.

Header

This part shows the name, description, author, etc.

--
# Dataset Stuff -------------------------------------------------
#
data_path: ~/data
output_path: ~/output
val_size: 10000
train_chunk_size: 40000
@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
@officialmofabs
officialmofabs / workbench.colorCustomizations.json
Created May 1, 2025 19:18 — forked from uncasually/workbench.colorCustomizations.json
A list of all the available customizations for Visual Studio Code workbench color theme with the workbench.colorCustomizations user setting. As of 1.78 (2023)
"workbench.colorCustomizations": {
// Contrast colors - The contrast colors are typically only set for high contrast themes. If set, they add an additional border around items across the UI to increase the contrast
"contrastActiveBorder": "", //An extra border around active elements to separate them from others for greater contrast.
"contrastBorder": "", //An extra border around elements to separate them from others for greater contrast.
//Base colors
"focusBorder": "", //Overall border color for focused elements. This color is only used if not overridden by a component.
"foreground": "", //Overall foreground color. This color is only used if not overridden by a component.
"disabledForeground": "", //Overall foreground for disabled elements. This color is only used if not overridden by a component.
"widget.border": "", //Border color of widgets such as Find/Replace inside the editor.
"widget.shadow": "", //Shadow color of widgets such as Find/Replace inside the editor.
@officialmofabs
officialmofabs / multiple-ssh-keys-git.adoc
Created April 27, 2025 17:00 — forked from alejandro-martin/multiple-ssh-keys-git.adoc
Configure multiple SSH Keys for Git

Use Multiple SSH Keys for Git host websites (Github, Gitlab)

This is guide about how to configure multiple SSH keys for some Git host websites such as Github, Gitlab, among others.

Creating SSH keys

  1. Create SSH directory:

@officialmofabs
officialmofabs / php_style.xml
Created April 23, 2025 14:58 — forked from s3inlc/php_style.xml
PHP code style
<code_scheme name="php_style">
<option name="HTML_ATTRIBUTE_WRAP" value="0" />
<MarkdownNavigatorCodeStyleSettings>
<option name="RIGHT_MARGIN" value="72" />
</MarkdownNavigatorCodeStyleSettings>
<PHPCodeStyleSettings>
<option name="KEEP_RPAREN_AND_LBRACE_ON_ONE_LINE" value="true" />
<option name="ALIGN_CLASS_CONSTANTS" value="true" />
</PHPCodeStyleSettings>
<codeStyleSettings language="HTML">
@officialmofabs
officialmofabs / install-toolbox.sh
Created March 5, 2025 18:29 — forked from greeflas/install-toolbox.sh
JetBrains Toolbox installation script for Ubuntu - https://www.jetbrains.com/toolbox/app/
#!/bin/bash
set -e
if [ -d ~/.local/share/JetBrains/Toolbox ]; then
echo "JetBrains Toolbox is already installed!"
exit 0
fi
echo "Start installation..."