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 | |
| # | |
| # Hetzner Cloud Server Info & Cost Optimizer | |
| # | |
| # Description: | |
| # Fetches all servers from your Hetzner Cloud account and analyzes their pricing. | |
| # For each server, it identifies cheaper server types with equal or better specs. | |
| # Results are exported to a tab-separated file (servers.txt) with cost savings. | |
| # | |
| # Setup: |
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 | |
| Route::post('/deploy', function(Request $request) { | |
| if (($signature = $request->headers->get('X-Hub-Signature')) == null) { | |
| abort(400, 'Signature header is not set.'); | |
| } | |
| $signatureData = explode('=', $signature); |