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 / daemon.json
Created October 24, 2025 15:38 — forked from paulgwebster-oe/daemon.json
Example Docker daemon.json
{
"api-cors-header": "",
"authorization-plugins": [],
"bip": "",
"bridge": "",
"cgroup-parent": "",
"cluster-store": "",
"cluster-store-opts": {},
"cluster-advertise": "",
"debug": true,
@officialmofabs
officialmofabs / git-hook-post-checkout.sh
Created October 22, 2025 03:21 — forked from f-honcharenko/git-hook-post-checkout.sh
This Bash script dynamically updates the VS Code `settings.json` file with the current Git branch name. It ensures that any previous dynamically added instructions are removed before appending the new branch name. This is useful for tools like GitHub Copilot Chat to generate commit messages based on the active branch.
#!/bin/bash
# Run the custom script whenever a branch is checked out
"/Users/$USER/Library/Application Support/Code/User/update-copilot-branch-instructions.sh"
# Check if the custom script executed successfully
if [ $? -eq 0 ]; then
# If the script was successful, print the success message
echo "Successfully updated Copilot commit message generation instructions with the current Git branch name."
else
@officialmofabs
officialmofabs / List of in-browser VMs.md
Created October 14, 2025 06:44 — forked from joseluisq/List of in-browser VMs.md
List of Javascript based virtual machines running in browser
@officialmofabs
officialmofabs / export_vscode_extesions.md
Created October 14, 2025 06:43 — forked from joseluisq/export_vscode_extesions.md
How to export your VS Code extensions from terminal

How to export your VS Code extensions from terminal

Note: Unix-like systems only.

  1. Export your extensions to a shell file:
code --list-extensions | sed -e 's/^/code --install-extension /' > my_vscode_extensions.sh
@officialmofabs
officialmofabs / fast_firefox.md
Created October 6, 2025 16:07 — forked from RubenKelevra/fast_firefox.md
Make Firefox fast again
@officialmofabs
officialmofabs / install-docker-ubuntu-2025.md
Created October 2, 2025 05:17 — forked from cybergitt/install-docker-ubuntu-2025.md
How to Install Rootless Docker on Ubuntu on 2025

Rootless Docker

This guide teaches how to use Rootlesskit and Docker to install a Rootless Docker and run Docker containers in Rootless mode. The setup works for Linux (Ubuntu, Debian, etc.), and Raspberry PI Docker allows you to create Rootless containers. This means, Docker Engine will create and run these containers in Rootless mode. They will run as unprivileged to the user namespaces creating them.

Install Rootless Docker Kit and Run Rootless Container Mode

You will learn different ways to get Rootless container ready:

  • Using Docker Engine
  • Using Rootlesskit
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>CCC Erith MediaRoom</title>
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/7.0.0/css/all.min.css" integrity="sha512-DxV+EoADOkOygM4IR9yXP8Sb2qwgidEmeqAEmDKIOfPRQZOWbXCzLC6vjbZyy0vPisbH2SyW27+ddLVCN+OMzQ==" crossorigin="anonymous" referrerpolicy="no-referrer" />
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
@officialmofabs
officialmofabs / Git_Behind_Proxy.md
Created August 23, 2025 04:37 — forked from ozbillwang/Git_Behind_Proxy.md
Configure Git to use a proxy (https or SSH+GIT)
@officialmofabs
officialmofabs / git_server.md
Created August 20, 2025 12:37 — forked from Kreijstal/git_server.md
How to set up git with nginx

Setting Up Git with Nginx for Anonymous HTTP Access

This guide explains how to configure a Git repository to be served anonymously over HTTP using Nginx and git-http-backend. This setup allows users to clone and fetch repositories without authentication, and optionally push if configured. It’s ideal for public repositories or simple internal use cases.

Prerequisites

  • A Linux server with:
    • Git installed (sudo apt install git)
    • Nginx installed (sudo apt install nginx)
    • fcgiwrap installed (sudo apt install fcgiwrap) to bridge Nginx and git-http-backend
@officialmofabs
officialmofabs / Dockerfile
Created August 20, 2025 08:36 — forked from noinarisak/Dockerfile
VsCode devcontainer development setup for Java 8
#-------------------------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See https://go.microsoft.com/fwlink/?linkid=2090316 for license information.
#-------------------------------------------------------------------------------------------------------------
FROM openjdk:8-jdk
# This Dockerfile adds a non-root user with sudo access. Use the "remoteUser"
# property in devcontainer.json to use it. On Linux, the container user's GID/UIDs
# will be updated to match your local UID/GID (when using the dockerFile property).