This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Auto-discovery Docker backup script | |
| # Automatically finds and backs up ALL Docker volumes and databases. | |
| # Uploads to Cloudflare R2, then cleans up local files. | |
| # No configuration needed when adding new containers. | |
| set -euo pipefail | |
| HC_BACKUP_URL="${HC_BACKUP_URL:?set HC_BACKUP_URL}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==UserScript== | |
| // @name Alza.cz MPN | |
| // @namespace https://gist.github.com/KristianP26/46cf9a12a8db1dc2127b6db26b9f570a | |
| // @version 1.0 | |
| // @description Extract MPN and Add New H1 | |
| // @author Kristian Partl | |
| // @match https://www.alza.cz/* | |
| // @match https://www.alza.sk/* | |
| // @grant none | |
| // ==/UserScript== |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| function getSteamWorkshopSubscriberCount($workshopItemId) { | |
| $apiUrl = "https://api.steampowered.com/ISteamRemoteStorage/GetPublishedFileDetails/v1/"; | |
| $postData = [ | |
| "itemcount" => 1, | |
| "publishedfileids[0]" => $workshopItemId, | |
| ]; | |
| $ch = curl_init($apiUrl); | |
| curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); |