Zero-touch install / daily self-update via cron.
- Installs or updates Portainer CE to the latest
portainer/portainer-ce:latestimage - Re-creates the container only when a newer image exists
- Persists data in a named volume
portainer_data
Zero-touch install / daily self-update via cron.
portainer/portainer-ce:latest imageportainer_dataThis small batch script applies a few Outlook/Exchange registry values that can help stop repeated credential prompts in on-premises Exchange environments.
It sets these values for the current user:
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.
Get-ChildItem -Path "C:\Your\Path\Here" -Recurse -File | Unblock-FileOne-liner & script to stop (and remove) all Compose projects that live in sub-folders.
find . -type f \( -name "docker-compose.yml" -o -name "compose.yaml" \) \
-execdir sh -c 'echo "↓ Stopping in $(pwd)"; docker compose down' \;| // ==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== |
| #!/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 |
| 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 |
| 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; |