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
/** | |
The following environment variables have to be set: | |
AWS_ES_REGION | |
AWS_ES_DOMAIN | |
AWS_ES_INDEX | |
AWS_ES_ACCESS_KEY_ID | |
AWS_ES_SECRET_ACCESS_KEY | |
**/ | |
require('dotenv').config(); |
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
sudo logstash -e ' | |
input { | |
jdbc { | |
jdbc_driver_class => "com.mysql.jdbc.Driver" | |
jdbc_connection_string => "jdbc:mysql://domain.com:3306/database?autoReconnect=true&useSSL=false&useCursorFetch=true" | |
jdbc_user => "admin" | |
jdbc_password => "password" | |
jdbc_fetch_size => 1000 | |
statement => "SELECT * FROM everything" | |
use_column_value => true |
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
<? | |
/***************** | |
*** README *** | |
Prerequisites: | |
- PHP / Apache x64 | |
- the following PHP extensions installed & enabled: intl, bz2 | |
Caveats: |
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
<? | |
ini_set('display_errors', '0'); | |
ini_set('memory_limit', '-1'); | |
ini_set('max_execution_time', 0); | |
set_time_limit(0); | |
// FILE | |
$xml_file = 'planet-latest.osm'; | |
echo 'Opening the file ' . $xml_file . '... '; |
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
#!/usr/bin/env bash | |
if [[ -x $(which php) ]]; then | |
PHP_ICU_VERSION=$(php -r 'echo defined("INTL_ICU_VERSION") ? INTL_ICU_VERSION : "none";') | |
echo "PHP ICU version: $PHP_ICU_VERSION" | |
else | |
echo 'WARNING: PHP not installed' | |
PHP_ICU_VERSION=none | |
fi |