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
$page = (int) $this->request->getGet('page'); // | |
$limit = config('Pager')->perPage; // see Config/Pager.php | |
if (!isset($page) || $page === 0 || $page === 1) { | |
$page = 1; | |
$offset = 0; | |
} else { | |
$offset = ($page - 1) * $limit; | |
$page = $page; | |
} |
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 -v | |
pecl version | |
sudo apt-get install php7.4-dev -y | |
sudo apt-get install php-pear | |
sudo apt-get -y install gcc make autoconf libc-dev pkg-config -y | |
sudo pecl channel-update pecl.php.net | |
sudo apt-get -y install libmcrypt-dev | |
sudo pecl install mcrypt-1.0.3 # 7.4 | |
# php 7.4 |
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 lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>jQuery => Vanilla JS</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
</head> | |
<body> |
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
## From a post on the ML, apropos this: | |
## http://lowlatencyweb.wordpress.com/2012/03/20/500000-requestssec-modern-http-servers-are-fast. | |
## For sysctl.conf | |
net.ipv4.tcp_slow_start_after_idle = 0 | |
echo "1768 64512" > /proc/sys/net/ipv4/ip_local_port_range | |
echo 1 > /proc/sys/net/ipv4/tcp_tw_recycle | |
echo 1 > /proc/sys/net/ipv4/tcp_tw_reuse |
OlderNewer