There is good news for you. I made a new repository with a single Dockerfile to build every combinations of versions of Ubuntu LTS and gcc you like
Find out more on https://github.com/alexandreelise/install-gcc
#!/usr/bin/env php | |
<?php | |
/** | |
* This php script attempts to replace wildcard IPv4 address in Nginx sites-available/*.conf files | |
* by the loopback address 127.0.0.1 to try to prevent access of your local dev environment by Internet | |
* when listening to all network interface like *:80 or *:443 does. * means listen to all available network | |
* interfaces and this script tries to restrict use to loopback only. | |
* | |
* NOTE: If you have multiple wildcard IPv4 address in your conf files at the moment of writing this script it | |
* doesn't handle yet this edge case correctly. It just replaces all the wildcard addresses rather than having just one occurence of 127.0.0.1 you will have multiple ones which can cause "address already in use" errors while restart Nginx. Please keep that in mind. You can improve this script at will. It's a first attempt. Hope it helps someone. |
[xdebug] | |
zend_extension=/usr/lib/php/20190902/xdebug.so | |
xdebug.mode=debug | |
xdebug.start_with_request=yes | |
xdebug.start_upon_error=yes | |
xdebug.trigger_value=yes | |
xdebug.client_host=127.0.0.1 | |
xdebug.client_port=9003 | |
xdebug.connect_timeout_ms=30000 | |
xdebug.force_display_errors=0 |
<label for="demo">Demo</label> | |
<select id="demo" name="demo"> | |
<?php array_unshift($this->myExampleOptionsArray, null); ?> | |
<?php echo HTMLHelper::_('select.options', $this->myExampleOptionsArray, 'value', 'text', $this->selectedOptionValue ?? '');?> | |
</select> |
<?php | |
declare(strict_types=1); | |
// final associative array to json_encode | |
$output = []; | |
// root level array keys | |
$keys_0_min = 1; | |
$keys_0_max = 10; | |
$keys_0 = []; |
#!/usr/bin/env bash | |
RELEASE='3.9' | |
if [[ -z "$1" ]]; then | |
exit 1; | |
fi | |
PROJECT_NAME="$1" | |
if [[ ! -z "$2" ]]; then |
<?php | |
/** | |
* @package all | |
* @author Alexandre ELISÉ <[email protected]> | |
* @link https://alexandre-elise.fr | |
* @copyright (c) 2020 . Alexandre ELISÉ . Tous droits réservés. | |
* @license GPL-2.0-and-later GNU General Public License v2.0 or later | |
* Created Date : 19/07/2020 | |
* Created Time : 16:04 | |
*/ |
#!/usr/env sh | |
# To add this repository please do: | |
if [ "$(whoami)" != "root" ]; then | |
SUDO=sudo | |
fi | |
${SUDO} apt-get -y install apt-transport-https lsb-release ca-certificates curl \ | |
&& ${SUDO} wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg \ | |
&& ${SUDO} sh -c "echo \"deb https://packages.sury.org/php/$(lsb_release -si | awk '{print tolower($0)}' ) $(lsb_release -sc) main\" > /etc/apt/sources.list.d/php.list" \ |
There is good news for you. I made a new repository with a single Dockerfile to build every combinations of versions of Ubuntu LTS and gcc you like
Find out more on https://github.com/alexandreelise/install-gcc
#!/bin/bash | |
#Take just the outdated formulas names from the list using awk | |
#then give that to upgrade command | |
# you could add to this line && brew cleanup but it's up to you | |
# | |
# WARNING: Please understand what that script does before using it. | |
# I will in no way be responsible for the misuse of this script. | |
# If you understand and you are ok with that, If you are unsure don't use it. |
I hereby claim:
To claim this, I am signing this object: