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
| from ansible.cli import CLI | |
| from ansible.template import Templar | |
| from ansible.vars.manager import VariableManager | |
| from ansible.parsing.dataloader import DataLoader | |
| from ansible.inventory.manager import InventoryManager | |
| import ansible.constants as C | |
| def main(): | |
| # The DataLoader is responsible for loading yaml/json content |
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 | |
| namespace App\EventSubscriber; | |
| use function json_last_error; | |
| use function json_last_error_msg; | |
| use Symfony\Component\EventDispatcher\EventSubscriberInterface; | |
| use Symfony\Component\HttpKernel\Event\FilterControllerEvent; | |
| use Symfony\Component\HttpKernel\Exception\BadRequestHttpException; | |
| use Symfony\Component\HttpKernel\KernelEvents; |
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/sh | |
| # Installation | |
| # - Move this to /etc/init.d/myservice | |
| # - chmod +x this | |
| # | |
| # Starting and stopping | |
| # - Start: `service myservice start` or `/etc/init.d/myservice start` | |
| # - Stop: `service myservice stop` or `/etc/init.d/myservice stop` |