- S:5200~
- No mistakes
- Vitals stayed above 70
- Completed with 270s left
- 5 COOL's earned
- S:4500~
| #!/bin/bash | |
| # Download the latest version of composer.phar to /usr/local/bin/composer.phar | |
| # Then put this file to /usr/local/bin/composer and allow execution | |
| # Run Composer with cPanel PHP redirector and required parameters for CLI only | |
| /usr/local/bin/php -d allow_url_fopen=1 -d zend.detect_unicode=0 /usr/local/bin/composer.phar $@ | |
| # For global self-update, you'll need the following for cronjob: | |
| # /bin/bash -c 'COMPOSER_ALLOW_SUPERUSER=1 /usr/local/bin/php -d allow_url_fopen=1 -d zend.detect_unicode=0 /usr/local/bin/composer.phar self-update' > /dev/null 2>&1 |
To setup Pushover.net notification in Proxmox VE, go to:
Datacenter -> Notifications -> Notification Targets -> Add -> Webhook
Set up the following fields:
pushover (or whatever you want, note the character limitation)POST, https://api.pushover.net/1/messages.jsonContent-Type -> application/jsonpushover_proxmox-notification-webhook.json file below| /* | |
| * Copyright (c) 2020 Raspberry Pi (Trading) Ltd. | |
| * Copyright (c) 2024 Bill Gong <[email protected]> | |
| * | |
| * SPDX-License-Identifier: BSD-3-Clause | |
| */ | |
| //------------------------------------------------------------------------------------------ | |
| // Board definition for the NoLogo RP2040 USB 16MB |
| <?php | |
| /** | |
| * A simple call-home alive check script based on server-side PHP and client-side curl/cron | |
| */ | |
| error_reporting(0); | |
| ini_set('display_errors', 0); | |
| date_default_timezone_set('Australia/Melbourne'); | |
| header('Content-Type: text/plain'); |
| #!/bin/bash | |
| # Create the HDD temperature script | |
| cat > /tmp/zz-hddtemp.sh <<- "EOF" | |
| #!/bin/bash | |
| # PWM1 (HDD) related Variables | |
| PWM1TEMP=$(/usr/sbin/hddtemp /dev/sdb | awk -F ": " '{print $3}' | grep -Po '\d+') | |
| PWM1TEMPMAX=55 | |
| PWM1TEMPMIN=40 |
| <?php | |
| /* | |
| * To block certain client when downloading and seeding with Aria2 | |
| * | |
| * This will be triggered by CRON and write logs to a log file, where | |
| * fail2ban will pick up and block the client | |
| * | |
| * Also probably run on PHP 8.x? I tested on PHP 8.2 | |
| * | |
| * Remember to setup logrotate otherwise there will be too many logs! |
| #!/bin/bash | |
| # Set up the target drive path and the number of LBA (I know this can be read from SMART...) | |
| TARGETDRIVE="/dev/sda" | |
| LBAS="7814037168" | |
| # In case a different drive shall be selected | |
| #read -rep $'Which drive to check? [/dev/sda]\n' USERTARGETDRIVE | |
| #if [[ $USERTARGETDRIVE ]]; then | |
| # TARGETDRIVE=$USERTARGETDRIVE |