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
| // Example function-based high-level Apache Kafka consumer | |
| package main | |
| /** | |
| * Copyright 2016 Confluent Inc. | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); | |
| * you may not use this file except in compliance with the License. | |
| * You may obtain a copy of the License at | |
| * |
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
| // Use SSH Agent command evaluator | |
| ssh-agent sh -c \ | |
| 'ssh-add ~/.ssh/id_rsa_other;\ | |
| git push --set-upstream origin proper_branch_name' |
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 | |
| // Declare Ticks as a required mechanics to handle Signals | |
| declare(ticks = 1); | |
| // Throw Error on | |
| pcntl_signal(SIGINT, function($sig) { | |
| throw new Exception("Interrupted by client signal: ".$sig,500); | |
| }); |