Note: This is the guide for v 2.x.
For the v3, please follow this url: https://blog.csdn.net/sam_shan/article/details/80585240 Thanks @liy-cn for contributing.
Download: StarUML.io
Source: jorgeancal
DROP DATABASE IF EXISTS 📚; | |
CREATE DATABASE 📚; | |
USE 📚; | |
CREATE TABLE 👤( | |
🔑 INTEGER PRIMARY KEY, | |
🗣 varchar(64), -- name | |
🗓 DATE -- date of registration |
Note: This is the guide for v 2.x.
For the v3, please follow this url: https://blog.csdn.net/sam_shan/article/details/80585240 Thanks @liy-cn for contributing.
Download: StarUML.io
Source: jorgeancal
/** | |
* Check if a given ip is in a network | |
* @param string $ip IP to check in IPV4 format eg. 127.0.0.1 | |
* @param string $range IP/CIDR netmask eg. 127.0.0.0/24, also 127.0.0.1 is accepted and /32 assumed | |
* @return boolean true if the ip is in this range / false if not. | |
*/ | |
function ip_in_range( $ip, $range ) { | |
if ( strpos( $range, '/' ) == false ) { | |
$range .= '/32'; | |
} |
#!/bin/bash | |
# | |
# validate nginx config | |
# | |
# depends upon a symbolic link from /var/apps/redirector to dist directory | |
# and a build of nginx which supports real_ip and other extensions | |
# | |
# probably best to build a chroot'd tree containing a complete nginx server | |
# though that's a lot of work to copy in shared libraries, etc |
<?php | |
/** | |
* @author Kristaps Karlsons <kristaps.karlsons@gmail.com> | |
* Licensed under MPL 1.1 | |
*/ | |
function mc_status($host,$port='25565') { | |
$timeInit = microtime(); | |
// TODO: implement a way to store data (memcached or MySQL?) - please don't overload target server | |
$fp = fsockopen($host,$port,$errno,$errstr,$timeout=10); |