cd /etc/apache2/sites-available
cp 000-default.conf project-name.conf
nano project-name.conf
<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot /var/www/project/public
cd /etc/apache2/sites-available
cp 000-default.conf project-name.conf
nano project-name.conf
<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot /var/www/project/public
# GitHub Action for Laravel with MySQL | |
name: Testing Laravel with MySQL | |
on: [push, pull_request] | |
jobs: | |
laravel: | |
name: Laravel (PHP ${{ matrix.php-versions }}) | |
runs-on: ubuntu-latest | |
env: | |
DB_DATABASE: laravel | |
DB_USERNAME: root |
sudo dnf install liberation-fonts
sudo rpm -i google-chrome-stable_current_x86_64.rpm
# shellcheck disable=SC2006 | |
# shellcheck disable=SC2013 | |
warning=`tput setaf 1` | |
success=`tput setaf 2` | |
default=`tput sgr0` | |
grep -o -E '[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}' /var/log/auth.log | sort -u > /tmp/failed-unique-ips.log | |
current_ips=$(ufw status); |
if [ -z "$1" ] | |
then | |
echo "No group argument supplied" | |
exit | |
fi | |
if [ -z "$2" ] | |
then | |
echo "No project folder argument supplied" | |
exit | |
fi |
sudo apt install -f | |
sudo add-apt-repository -y ppa:ondrej/php | |
sudo apt -y install fonts-liberation libappindicator3-1 | |
sudo apt -y install libc++1 | |
sudo apt -y install php7.4 composer | |
sudo apt -y install php7.4-curl php7.4-zip php7.4-mysql php7.4-mbstring php7.4-xml php7.4-gd php7.4-curl php7.4-intl php7.4-dom php7.4-xml | |
sudo apt -y install php8.1 libapache2-mod-php8.1 composer | |
sudo apt -y install php8.1-curl php8.1-zip php8.1-mysql php8.1-mbstring php8.1-xml php8.1-gd php8.1-curl php8.1-intl php8.1-dom php8.1-xml | |
sudo apt -y install mysql-server |
sudo apt install -f | |
sudo add-apt-repository -y ppa:ondrej/php | |
sudo apt -y install fonts-liberation libappindicator3-1 | |
sudo apt -y install libc++1 ibpng-dev | |
sudo apt -y install php7.4 composer | |
sudo apt -y install php7.4-curl php7.4-zip php7.4-mysql php7.4-mbstring php7.4-xml php7.4-gd php7.4-curl php7.4-intl php7.4-dom php7.4-xml | |
sudo apt -y install php8.1 libapache2-mod-php8.1 composer | |
sudo apt -y install php8.1-curl php8.1-zip php8.1-mysql php8.1-mbstring php8.1-xml php8.1-gd php8.1-curl php8.1-intl php8.1-dom php8.1-xml | |
sudo apt -y install mysql-server |
abstract class Model { | |
} | |
class ServicioBase<T extends Model> { | |
String base_url = 'https://cceo.io'; | |
String uri; | |
ServicioBase(this.uri); | |
void post() { |