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 | |
| VPN_SERVER="10.8.0.1" | |
| STATUS_COMMAND="/root/openvpn_status.sh" | |
| output=$(ssh -o BatchMode=yes -o ConnectTimeout=5 root@$VPN_SERVER "$STATUS_COMMAND") | |
| if [[ $? -ne 0 ]]; then | |
| echo "Failed to connect to $VPN_SERVER or run the command." | |
| exit 1 |
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 | |
| DEVICE_IP="${ADB_DEVICE:-}" | |
| VLC_ACTIVITY="org.videolan.vlc/org.videolan.vlc.StartActivity" | |
| usage() { | |
| echo "Usage: $(basename "$0") [OPTIONS] <url>" | |
| echo "" | |
| echo "Options:" | |
| echo " -d, --device <ip:port> Target device (or set ADB_DEVICE env)" |
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
| #!/usr/bin/env bash | |
| set -Eeuo pipefail | |
| SCRIPT_NAME="$(basename "$0")" | |
| INPUT="" | |
| OUTPUT="scanned_output.pdf" | |
| DPI="130" | |
| QUALITY="65" | |
| INSTALL_DEPS="false" |
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 | |
| /** | |
| * Check whether the given year is a leap year. | |
| */ | |
| function isLeapYear(int $year): bool | |
| { | |
| return $year % 400 === 0 | |
| || ($year % 4 === 0 && $year % 100 !== 0); | |
| } |
OlderNewer