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); | |
/** | |
* src/ | |
* Domain/ | |
* Entity/ | |
* Factory/ | |
* Repository/ // repository interfaces |
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); | |
/** | |
* Tested with PHP 8.1 | |
* Create a sqlite file named `secrets.db` in the same directory | |
* Required extensions: sqlite3/pdo_sqlite, openssl | |
* Recommended extension: uuid | |
* |
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
##### dataCount: 10000, seletCount: 1, limit: 5000 ##### | |
PhpClickhouse 0.076 | |
SeasClickNonCompression 0.062 | |
SeasClickCompression 0.064 | |
OneCk 0.095 | |
-------------------------------- | |
Total 0.297 | |
##### dataCount: 10000, seletCount: 1, limit: 5000 ##### | |
PhpClickhouse 0.051 |
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
// see https://learn.snyk.io/lesson/prototype-pollution/ for additional information and great explanations | |
// recursively update target with source data | |
function merge(target, source) { | |
for (const attr in source) { | |
if ( | |
typeof target[attr] === "object" && | |
typeof source[attr] === "object" | |
) { | |
merge(target[attr], source[attr]) |
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 | |
# when running `php artisan native:install`, when prompted to start the development server select "no" | |
# copy this file within the root of your project/application and run it `bash nativephp-linux-patch.sh` | |
# after running this script run `php artisan native:serve` | |
sed -i 's/app.dock.setIcon(state_1.default.icon);/\/\/app.dock.setIcon(state_1.default.icon);/g' vendor/nativephp/electron/resources/js/node_modules/nativephp-electron/dist/index.js | |
cp -L /usr/bin/php vendor/nativephp/php-bin/bin/mac/x86/php |
OlderNewer