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 | |
| #Example Usage: bash update_hosts_for_docker_containers.sh --containers="my_container_id_1,my_container_id_2" --urls="example1.com,example2.com" | |
| #Author: https://github.com/faiyazalam | |
| containers="" | |
| urls="" | |
| # Parse arguments |
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
| Docker Hosts Update Script | |
| This shell script updates the `/etc/hosts` file on a Docker host machine by mapping container IP addresses to specified hostnames or container names. | |
| Author: | |
| https://github.com/faiyazalam | |
| Parameters: | |
| --containers: Comma-separated list of Docker container names. | |
| --urls: Comma-separated list of corresponding hostnames. If not provided, defaults to container names. |
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 | |
| use PhpOffice\PhpSpreadsheet\Spreadsheet; | |
| use PhpOffice\PhpSpreadsheet\Writer\Xlsx; | |
| $page = 1; | |
| $limit = 100; | |
| $sql = "TODO"; |
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 checkSsl($domain, $daysThreshold = 7) | |
| { | |
| $port = 443; // Default port for HTTPS | |
| $timeout = 5; // Timeout for the connection | |
| // Open a connection to the domain | |
| $context = stream_context_create([ | |
| "ssl" => [ |
OlderNewer