Skip to content

Instantly share code, notes, and snippets.

View supermarsx's full-sized avatar
💫

Mariana supermarsx

💫
  • Δ on earth™
  • 20:50 (UTC +01:00)
View GitHub Profile
@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==
@supermarsx
supermarsx / portainer-ce-auto-install-update.sh
Last active October 31, 2025 16:52
Portainer CE Auto-Installer and Auto-Updater Script
#!/usr/bin/env bash
# =============================================================================
# Portainer Auto-Installer & Auto-Updater
# =============================================================================
# Purpose
# Idempotently install or update Portainer CE to the latest image and
# automatically keep it up-to-date via cron. The script only recreates the
# container when a newer image is available and verifies successful startup.
#
# What it does
@supermarsx
supermarsx / force-enable-windows-11-25h2.bat
Created October 31, 2025 16:20
Force enable Windows 11 25H2 update availability
REG ADD HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate /v DeferFeatureUpdates /t REG_DWORD /d "0" /f
REG ADD HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\WindowsStore /v DisableOSUpgrade /t REG_DWORD /d "0" /f
REG ADD HKEY_LOCAL_MACHINE\SYSTEM\Setup\UpgradeNotification /v UpgradeAvailable /t REG_DWORD /d "1" /f
REG ADD HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate /v ProductVersion /t REG_SZ /d "Windows 11" /f
REG ADD HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate /v TargetReleaseVersion /t REG_DWORD /d "1" /f
REG ADD HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate /v TargetReleaseVersionInfo /t REG_SZ /d "25H2" /f
@supermarsx
supermarsx / reverse-nginx-rds.conf
Created October 20, 2025 15:49
Reverse proxy setup to access RDP Remote Apps portal, useful for SSL Certificate setup.
location /rpc/ {
proxy_pass https://IPADDRESS/rpc/;
proxy_ssl_server_name on;
proxy_ssl_verify off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_http_version 1.1;
proxy_buffering off;