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
#/!/bin/bash | |
# update system | |
yum update -y | |
# install bind-utils | |
sudo yum install bind-utils | |
# Bring repos in | |
rpm -Uvh https://mirror.webtatic.com/yum/el7/epel-release.rpm |
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 | |
function test_Math($count = 140000) { | |
$time_start = microtime(true); | |
$mathFunctions = array("abs", "acos", "asin", "atan", "bindec", "floor", "exp", "sin", "tan", "pi", "is_finite", "is_nan", "sqrt"); | |
foreach ($mathFunctions as $key => $function) { | |
if (!function_exists($function)) unset($mathFunctions[$key]); | |
} | |
for ($i=0; $i < $count; $i++) { | |
foreach ($mathFunctions as $function) { | |
$r = call_user_func_array($function, array($i)); |
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
#/!/bin/bash | |
# update system | |
yum update -y | |
# install bind-utils | |
sudo yum install bind-utils | |
# Apache | |
yum install nano wget curl vim git httpd -y |