This file contains 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
$action_name = 'r2d2'; | |
$rules = rules_config_load_multiple(FALSE); | |
foreach ($rules as $rule) { | |
if (get_class($rule) == 'RulesReactionRule') { | |
foreach ($rule->actions() as $action) { | |
if (get_class($action) == 'RulesAction') { | |
if (($action->getElementName() == $action_name) && ($rule->active == 1)) { | |
return 'that was the droid you were looking for'; | |
} |
This file contains 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
upstream sensu_dashboard { | |
server 127.0.0.1:8080; | |
} | |
server { | |
listen *:80 ; | |
server_name sensu.example.com; | |
access_log /var/log/nginx/sensu.example.com.access.log; |
This file contains 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 | |
/** | |
* @file | |
* Template for 1x2x1x1 layout. | |
* | |
* This template provides a two column layout split 8/4 with a full row above | |
* and two full rows below. | |
* | |
* Variables: | |
* - $id: An optional CSS id to use for the layout. |
This file contains 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
curl --user USERNAME https://api.bitbucket.org/2.0/repositories/TEAMNAME?pagelen=100 | grep -o '"git@[^ ,]\+' | xargs -L1 git clone |