Skip to content

Instantly share code, notes, and snippets.

View supermarsx's full-sized avatar

Mariana supermarsx

  • Δ on earth™
  • 10:11 (UTC +01:00)
View GitHub Profile
@supermarsx
supermarsx / Install-ExchangeCertificateAutoUpdateTask.ps1
Created July 13, 2026 14:20
Registers a Windows Scheduled Task for Update-ExchangeCertificate.ps1
#requires -Version 5.1
#requires -RunAsAdministrator
<#
.SYNOPSIS
Registers a Windows Scheduled Task for Update-ExchangeCertificate.ps1.
.DESCRIPTION
Run this once from an elevated Windows PowerShell prompt. You will be asked
for the credential under which the task should run. Use a dedicated domain
@supermarsx
supermarsx / Update-ExchangeCertificate.ps1
Created July 13, 2026 14:18
Automatically selects and applies the newest valid public certificate to Microsoft Exchange Server services and SMTP connectors
#requires -Version 5.1
#requires -RunAsAdministrator
<#
.SYNOPSIS
Automatically selects and applies the newest valid public certificate to
Microsoft Exchange Server services and SMTP connectors.
.DESCRIPTION
This script:
@supermarsx
supermarsx / send-as-group-exchange.md
Last active May 13, 2026 12:53
Exchange On-premises Send as group alias

Exchange On-Prem: Allow a User to Send As a Group

This gist shows how to allow an Exchange on-prem user to send email as a distribution group, dynamic distribution group, or mail-enabled security group.

Example:

User:  john.smith@contoso.com
Group: sales@contoso.com
@supermarsx
supermarsx / protainer-ce-auto-updater.md
Created April 16, 2026 13:42
Portainer CE Auto-Installer & Auto-Updater Script

Portainer CE Auto-Installer & Auto-Updater Script

Zero-touch install / daily self-update via cron.

1 Purpose & highlights

  • Installs or updates Portainer CE to the latest portainer/portainer-ce:latest image
  • Re-creates the container only when a newer image exists
  • Persists data in a named volume portainer_data
@supermarsx
supermarsx / rds-reset-grace-period.md
Created April 15, 2026 17:19
Reset RDS 120-Day Grace Period (Windows Server 2022)

Reset the RDS 120-Day Grace Period (Windows Server 2016/2019/2022)

Scope – Lab, PoC, break-fix.
Not a licensing substitute. Buy & install CALs before production rollout.


0. Check how many days you have left

@supermarsx
supermarsx / fix-outlook-auth.md
Last active April 15, 2026 17:12
Fix Outlook asking for credentials when doing on-prem

Fix Outlook credential prompts in on-prem Exchange setups

This small batch script applies a few Outlook/Exchange registry values that can help stop repeated credential prompts in on-premises Exchange environments.

What it does

It sets these values for the current user:

  • Forces modern auth for Exchange autodiscover
  • Excludes the explicit Microsoft 365 autodiscover endpoint
@supermarsx
supermarsx / curated-list-android-ksu-lsposed-module.md
Created January 18, 2026 17:36
Curated list of Essential Root Modules

🧩 Curated List of Essential Android Root Modules

A clean, opinionated, power‑user‑grade list of KernelSU / Magisk / Zygisk / LSPosed modules. Think: stability first, stealth where needed, quality‑of‑life everywhere. Emojis included. Whistles enabled. 🚀


🧠 KernelSU / Core Root Stack

🛡️ KernelSU

@supermarsx
supermarsx / windows-unlock-files.md
Last active April 16, 2026 11:06
Mass unblock files recursively on Windows

Mass Unblock Files Recursively on Windows

A tiny PowerShell snippet that removes the “blocked” Mark-of-the-Web (Zone.Identifier) flag from every file inside a folder tree—perfect after unzipping archives downloaded from the internet.

🖥️ The Script

Minimal, no progress output

Get-ChildItem -Path "C:\Your\Path\Here" -Recurse -File | Unblock-File
@supermarsx
supermarsx / shutdown-all-docker-compose.md
Last active April 16, 2026 11:13
Shutdown and remove all Docker Compose containers subfolders within a directory

Shutdown every Docker Compose stack in a directory tree

One-liner & script to stop (and remove) all Compose projects that live in sub-folders.

1. Quick copy-paste one-liner

find . -type f \( -name "docker-compose.yml" -o -name "compose.yaml" \) \
 -execdir sh -c 'echo "↓ Stopping in $(pwd)"; docker compose down' \;
@supermarsx
supermarsx / storesace-product-scraper.user.js
Created November 3, 2025 18:27
StoresAce Product Scraper — CSV Export with UI (parallel per-item)
// ==UserScript==
// @name StoresAce Product Scraper — CSV Export with UI (parallel per-item)
// @namespace https://supermarsx.github.io/userscripts
// @version 1.1.0
// @description Scrape all product data and export a flattened CSV. Now requests per-item HTML, KPIs, composition (and optionally cardex) IN PARALLEL so each product is fetched “all at once”. Includes overlay UI with Start/Cancel, progress bar, retry/backoff, and failure list.
// @author Supermarsx
// @match https://COMPANYID.storesace.com/*
// @run-at document-end
// @grant none
// ==/UserScript==