Run # | Benchmark 1 (sec) | BenchMark 2 (sec) |
---|---|---|
1 | 0.2886860370636 | 0.16710495948792 |
2 | 0.31771802902222 | 0.16766691207886 |
3 | 0.27882695198059 | 0.17383599281311 |
4 | 0.2907509803772 | 0.17733597755432 |
5 | 0.28123903274536 | 0.17464399337769 |
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
<div class="container"> | |
<div class="row flex-row"> | |
<section class="col-xs-8"> | |
<h2>News</h2> | |
<div class="modcon-yellow flex-grow"> | |
<p>... some content but yellow background doesn't stretch.</p> | |
</div> | |
</section> | |
<section class="col-xs-4"> | |
<h1>Welcome</h1> |
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
fallocate -l 1G /swapfile | |
chmod 600 /swapfile | |
mkswap /swapfile | |
swapon /swapfile | |
echo "/swapfile none swap sw 0 0" | tee -a /etc/fstab |
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
uname | |
# Linux | |
uname -a | |
# Linux feb1f2105a6d 4.15.0-91-generic #92-Ubuntu SMP Fri Feb 28 11:09:48 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux |
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
sudo nano /etc/default/grub | |
# Find and comment current value | |
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" | |
# Change to value below | |
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash i915.enable_psr=0" | |
sudo update-grub | |
reboot |
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
# Make sure yum is up-to-date | |
yum update yum | |
# Install yum-utils (it provides yum-config-manager) | |
yum install yum-utils | |
# Backup: dump all databases to all_dbs.sql | |
mysqldump --lock-all-tables --all-databases -uroot -ped8a5f47cbf39f0b5eda6715c85c0ae0 >/root/all_dbs.sql | |
# Stop MySQL daemon |
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 | |
declare(strict_types=1); | |
/** | |
* Change this namespace to your and put this file whenever you want, | |
* according to your project structure. This is just example name. | |
*/ | |
namespace App\Phalcon\Paginator\Adapter; |
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
static void zephir_get_class_ns(zval *result, zval *object, int lower) | |
{ | |
int found = 0; | |
unsigned int i, class_length; | |
char *cursor, *class_name; | |
zval *z = Z_ISREF_P(object) ? Z_REFVAL_P(object) : object; | |
if (Z_TYPE_P(z) != IS_OBJECT) { | |
if (Z_TYPE_P(z) != IS_STRING) { | |
ZVAL_NULL(result); |
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
# Run makefiles with Max CPU parallelism | |
# see: export MAKEFLAGS | |
if [[ -n "$(command -v gmake 2>/dev/null || true)" ]]; then | |
alias make='gmake' | |
fi |
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
# Makefile flags | |
MAKEFLAGS="-j$(getconf _NPROCESSORS_ONLN)" | |
export MAKEFLAGS |
OlderNewer