Skip to content

Instantly share code, notes, and snippets.

View minanagehsalalma's full-sized avatar
🍒
Meow ?

Mina Nageh Salama minanagehsalalma

🍒
Meow ?
View GitHub Profile

VMware Workstation Ubuntu VM Shows Huge Host Size Even Though Linux Uses Little Space

If your Ubuntu VM says it is using something like 27 GB, but Windows shows the VM folder taking 100+ GB, this is usually not a Linux mystery. It is a VMware virtual disk compaction issue.

Why this happens

VMware growable VMDKs expand when the guest writes data, but they do not automatically shrink when files are deleted inside Linux.

That means:

@minanagehsalalma
minanagehsalalma / Invoke-VMGuest.ps1
Created April 12, 2026 15:03
Invoke-VMGuest — PowerShell helper to run bash commands inside a VMware Workstation guest and capture output on the host (works around vmrun's missing stdout pipe).
# Invoke-VMGuest.ps1
#
# PowerShell helper to run bash commands inside a VMware Workstation guest
# and capture their output on the host.
#
# vmrun's runScriptInGuest silently discards stdout — this works around that
# by redirecting output to a temp file in the guest, then pulling it back with
# CopyFileFromGuestToHost.
#
# Requirements:
@minanagehsalalma
minanagehsalalma / codex-cli-ubuntu-vmware-guide.md
Created April 7, 2026 15:12
Installing OpenAI Codex CLI on Ubuntu 22.04 (VMware on Windows 11)

Installing OpenAI Codex CLI on Ubuntu 22.04 (VMware on Windows 11)

Complete troubleshooting guide — from a broken VM with no network to a working Codex CLI install.


Environment

  • Host OS: Windows 11
  • Hypervisor: VMware Workstation Pro
  • Guest OS: Ubuntu 22.04 LTS (Jammy)
  • Network Mode: NAT
@minanagehsalalma
minanagehsalalma / ZTE ZXHN router vulnerabilities.md
Created March 27, 2026 23:26
ZTE ZXHN router vulnerabilities – CVE-2026-34472, CVE-2026-34473, CVE-2026-34474

ZTE ZXHN router vulnerabilities

Public disclosure date: 2026-03-27 Researcher: Mina Nageh Salama Zekry

This advisory documents three vulnerabilities affecting multiple ZTE ZXHN router models. The following CVE IDs were assigned by the CVE Program:

  • CVE-2026-34472
  • CVE-2026-34473
  • CVE-2026-34474
@minanagehsalalma
minanagehsalalma / milanote-board-to-markdown.user.js
Last active April 13, 2026 13:45
Milanote Board to Markdown — right-click context menu + header button to copy board elements as Markdown
// ==UserScript==
// @name Milanote Board to Markdown
// @namespace https://github.com/minanagehsalalma
// @version 1.5.0
// @description Injects "Copy as Markdown" into Milanote's right-click context menu, with element picker and header button fallback
// @author Mina Nageh Salama
// @match https://app.milanote.com/*
// @grant GM_registerMenuCommand
// @grant GM_setClipboard
// ==/UserScript==
@minanagehsalalma
minanagehsalalma / reddit-post-exporter.user.js
Last active April 13, 2026 13:45
Tampermonkey userscript for Reddit — enter select mode, click any posts on the feed, then export them as structured JSON (subreddit, author, timestamp, title, body, flair, mod notices, link, upvotes, comments, views). Works on new Reddit (shreddit web components) and old Reddit. Useful for feeding Reddit content to LLMs.
// ==UserScript==
// @name Reddit Post JSON Exporter
// @namespace https://github.com/minanagehsalalma
// @version 1.2.0
// @description Select Reddit posts and export them as clean JSON for LLM ingestion. Now captures rich text, bullets, flairs, and mod notices.
// @author Mina Nageh Salama
// @match https://www.reddit.com/*
// @match https://old.reddit.com/*
// @grant GM_setClipboard
// @run-at document-idle
@minanagehsalalma
minanagehsalalma / ChromeDefaultFix.md
Created March 6, 2026 14:40
Fix Chrome not opening links/files even though it appears in Default Apps

Fix Chrome not opening links/files even though it appears in Default Apps

Symptoms

  • Google Chrome shows in Settings > Apps > Default apps
  • .htm, .html, HTTP, HTTPS may look assigned to Chrome
  • But clicking links does nothing
  • PowerShell shows: Start-Process "http://example.com" -> Application not found
@minanagehsalalma
minanagehsalalma / Export-ChromeExtensions.ps1
Last active March 9, 2026 14:26
Export Chrome extensions inventory (all profiles/channels and even source code) to CSV + JSON — PowerShell
<#
.SYNOPSIS
Exports a full inventory of installed Chrome extensions across all profiles to CSV and JSON,
and physically copies the extension source files and user data.
.DESCRIPTION
Scans every Chrome profile on the current machine and collects extension metadata from
manifest.json and the profile's Preferences file: name, version, enabled state, install
time, permissions, manifest version (MV2/MV3), and more.
@minanagehsalalma
minanagehsalalma / reCAPTCHA Enterprise bypass.md
Created February 27, 2026 09:18
How to Force Submit a React Form with reCAPTCHA Enterprise via the Browser Console

How to Force Submit a React Form with reCAPTCHA Enterprise via the Browser Console

A step-by-step guide for submitting a React form when the submit button is disabled or blocked.


Step 1: Enable the Disabled Button (Optional)

If the submit button has a disabled attribute, remove it:

@minanagehsalalma
minanagehsalalma / Gemini pure patchmatch.js
Last active April 13, 2026 13:45
Gemini Stupid watermark remover fixed by Claude.
// ==UserScript==
// @name 🍌 Gemini NanoBanana watermark replacer
// @description Removes Gemini watermark using patch-based texture synthesis.
// Finds the best matching texture patch nearby and blends it in.
// No data leaves your device.
// @namespace https://github.com/minanagehsalalma
// @version 3.0
// @author Mina Nageh Salama
// @match https://gemini.google.com/*
// @grant none