Skip to content

Instantly share code, notes, and snippets.

View visualex's full-sized avatar

Aleksandr visualex

  • Tresorg
  • Basque Country
View GitHub Profile
@visualex
visualex / build.sh
Created May 11, 2023 07:53
compile min-devkit on silicon and avoid "cannot be loaded due to system security policy"
cd build/
rm -rf ./*
/Applications/CMake.app/Contents/MacOS/CMake -G Xcode .. # if using CMake GUI, select parent as source folder, current folder as build, click configure, then generate
make -j8 # if you have 8 cores
# you have to codesign your externals to not get a "cannot be loaded due to system security policy" error
codesign --force --deep -s - ../externals/your-external.mxo
@visualex
visualex / php-8.2.5-ventura-install.sh
Created May 3, 2023 08:47
install vanilla PHP 8.2.5 on MacOS Ventura
# the configure should probably have one flag "--without-external-libs"
# this will configure php without the following, but there are scenarios when you just want the core language just for CLI use
./configure --enable-debug --without-libxml --without-sqlite3 --disable-dom --without-iconv --without-pdo-sqlite --disable-simplexml --disable-xml --disable-xmlreader --disable-xmlwriter
make -j4
make TEST_PHP_ARGS=-j4 test
sudo make install
@visualex
visualex / issue template
Created March 28, 2019 07:35
template for issues
Briefly describe the problem you are having, up to a few paragraphs.
**Steps to reproduce the issue:**
1.
2.
3.
**Describe the results you received:**
@visualex
visualex / README.md
Created March 27, 2018 08:37 — forked from chadrien/README.md
Debug PHP in Docker with PHPStorm and Xdebug

Debug your PHP in Docker with Intellij/PHPStorm and Xdebug

  1. For your local dev, create a Dockerfile that is based on your production image and simply install xdebug into it. Exemple:
FROM php:5

RUN yes | pecl install xdebug \
&& echo "zend_extension=$(find /usr/local/lib/php/extensions/ -name xdebug.so)" > /usr/local/etc/php/conf.d/xdebug.ini \
<?php
if (version_compare(PHP_VERSION, '5.5.9') < 0) {
trigger_error('Your PHP version must be equal or higher than 5.5.9 to use CakePHP.', E_USER_ERROR);
}
if (!extension_loaded('intl')) {
trigger_error('You must enable the intl extension to use CakePHP.', E_USER_ERROR);
}
if (!extension_loaded('mbstring')) {
body#-webkit-web-inspector #main{background-color:#002b36!important}body#-webkit-web-inspector #main .panel.network,body#-webkit-web-inspector #main .panel.timeline,body#-webkit-web-inspector #main .panel.profiles,body#-webkit-web-inspector #main .panel.audits,body#-webkit-web-inspector #main .panel.extension{background-color:#fff!important}body#-webkit-web-inspector #console-messages a:hover,body#-webkit-web-inspector #console-messages .console-formatted-function,body#-webkit-web-inspector #console-messages .console-formatted-object{color:#93a1a1!important}body#-webkit-web-inspector #console-prompt,body#-webkit-web-inspector #console-messages a,body#-webkit-web-inspector #console-messages .console-message,body#-webkit-web-inspector #console-messages .console-group-messages .section .header .title{color:#839496!important}body#-webkit-web-inspector #console-messages .console-formatted-null,body#-webkit-web-inspector #console-messages .console-formatted-undefined{color:#657b83!important}body#-webkit-web-inspect