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 | |
return [ | |
'minutes' => '/^(?:(?:[1-5]{0,1}[0-9]{1}(?:,[1-5]{0,1}[0-9]{1})*)|\*{1})$/', | |
'hours' => '/^(?:(?:[1-2]{0,1}[0-9]{1}(?:,[1-2]{0,1}[0-9]{1})*)|\*{1})$/', | |
'days' => '/^(?:[1-3]{0,1}[0-9](?:,[1-3]{0,1}[0-9])*|\*{1})$/', | |
'months' => '/^(?:(?:[1]{0,1}[0-9]{1}(?:,[1]{0,1}[0-9]{1})*)|\*{1})$/', | |
'weekdays' => '/^(?:[0-7](?:,[0-7]){0,6}|\*{1})$/', | |
'years' => '/^(?:(?:20[0-9]{2}(?:,20[0-9]{2})?)|\*{1})$/' | |
]; |
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
find . -path ./src/vendor -prune -o -name "*.php" -exec php -l {} \; | grep "Parse error" |
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
#define DEBUG_CONSOLE | |
#define DEBUG_LEVEL_LOG | |
#define DEBUG_LEVEL_WARN | |
#define DEBUG_LEVEL_ERROR | |
#if (UNITY_EDITOR || DEVELOPMENT_BUILD) | |
#define DEBUG | |
#endif | |
#if (UNITY_IOS || UNITY_ANDROID) |
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 | |
/** | |
* DynamoDB Dump File Ingestion Script | |
* - takes a dynamodb dumpfile and breaks it down into individual records | |
* - splits each record back into its component parts in an array | |
* - returns it all | |
* | |
* Author : Paul Blakey. | |
* Date : 2/14/14 | |
* |
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
## input some test data into an index | |
curl -X POST http://127.0.0.1:9200/testindex/testtype/1 -d' | |
{ | |
"title":"titletest", | |
"description":"testdescription" | |
}' | |
## make a head request to the index |
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
sed -e '/amazonaws/d' ~/.ssh/known_hosts > ~/.ssh/known_hosts2; mv ~/.ssh/known_hosts2 ~/.ssh/known_hosts; |