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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name="viewport" content="initial-scale=1.0, user-scalable=no"> | |
<meta charset="utf-8"> | |
<title>ElasticSearch GeoPolygon Drawing Utility</title> | |
<style> | |
html, body { | |
height : 100%; | |
margin : 0; |
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
client | |
dev tun1 | |
proto tcp | |
remote 37.187.239.39 80 | |
resolv-retry infinite | |
nobind | |
persist-key | |
persist-tun | |
auth-user-pass | |
comp-lzo |
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
client | |
dev tun0 | |
proto udp | |
remote 37.187.239.39 53 | |
resolv-retry infinite | |
nobind | |
persist-key | |
persist-tun | |
auth-user-pass | |
comp-lzo |
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
// comparing against https://gist.github.com/attozk/5727bad9e621dbca4615 | |
<?php | |
$loader = include __DIR__ . '/../vendor/autoload.php'; | |
$loop = React\EventLoop\Factory::create(); | |
$counter = 0; | |
$timer = $loop->addPeriodicTimer(10, function() use(&$timer, &$counter) { | |
$counter++; |
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 | |
$loader = include __DIR__ . '/../vendor/autoload.php'; | |
$loop = React\EventLoop\Factory::create(); | |
$counter = 0; | |
$timer = $loop->addPeriodicTimer(10, function() use(&$timer, &$counter) { | |
$counter++; | |
if ($counter > 1 && $counter <= 5) { |
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 | |
$loader = include __DIR__ . '/../vendor/autoload.php'; | |
$loop = React\EventLoop\Factory::create(); | |
$counter = 0; | |
$timer = $loop->addPeriodicTimer(10, function() use(&$timer, &$counter) { | |
$counter++; | |
$type = 'None'; |
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
############################################################ | |
### | |
### Useless for a single mysql connection trying to | |
### ASYNC multiple db calls | |
### | |
$link1 = mysqli_connect("localhost","user","pwd","dbname"); | |
$s1 = "SELECT SLEEP(10)"; | |
$s2 = "SELECT SLEEP(5)"; |
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 | |
# /etc/init.d/owpd | |
# | |
# chkconfig: 2345 85 15 | |
# description: OWP Daemon | |
# processname: OWP Daemon | |
# | |
# Install the service with chkconfig --add owpd | |
# |