文章

[ubuntu] 1 sudo many commands

  sudo su -c "apt update && apt install php" but cd not work

mac os .iso files

 https://archive.org/details/macos-collection

[Windows] 1-command-install php+composer for laravel

cd $env:TEMP;Invoke-WebRequest https://github.com/techdesignism/1-command-install/raw/main/windows/win10/php8.1.8%2Bcomposer2.3.10%2Bvc_redist.x64_2022/php-8.1.8-Win32-vs16-x64.zip -O php.zip;Expand-Archive php.zip -DestinationPath C:/php;Copy-Item 'C:/php/php.ini-development' -Destination 'C:/php/php.ini';(Get-Content C:/php/php.ini) -Replace ';extension=openssl', 'extension=openssl' -Replace ';extension=curl', 'extension=curl' -Replace ';extension=gd', 'extension=gd' -Replace ';extension=mbstring', 'extension=mbstring' -Replace ';extension=pdo_mysql', 'extension=pdo_mysql' -Replace ';extension=pdo_sqlite', 'extension=pdo_sqlite' -Replace ';extension=sqlite3', 'extension=sqlite3' -Replace ';extension=fileinfo', 'extension=fileinfo'   | Set-Content C:/php/php.ini;$env:Path += ';C:/php';[Environment]::SetEnvironmentVariable("Path...

[docker/not in docker] setup php+composer+laravel environment in a ubuntu container in 1 command

docker apt update && apt install php ca-certificates git zip unzip php-zip curl php-curl php-xml wget -y && cd /tmp && wget https://getcomposer.org/installer -O composer-setup.php --no-check-certificate && wget https://composer.github.io/installer.sig --no-check-certificate && HASH=`cat installer.sig` && php -r "if (hash_file('SHA384', '/tmp/composer-setup.php') === '$HASH') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;" && php /tmp/composer-setup.php --install-dir=/usr/local/bin --filename=composer not in docker sudo apt update && sudo apt install php ca-certificates git zip unzip php-zip curl php-curl php-xml wget -y && cd /tmp && wget https://getcomposer.org/installer -O composer-setup.php --no-check-certificate && wget https://composer.github.io/installer.sig --no-check-certi...

[ubuntu] install 7zip

 apt install p7zip-full p7zip-rar

[Alpine] ERROR: unable to select packages error docker on Alpine Linux

 vi  /etc/apk/repositories remove # and save

[Mac vbox] How to Fix VirtualBox Error: Kernel Driver Not Installed (rc=-1908)

  How to Fix VirtualBox Error: Kernel Driver Not Installed (rc=-1908) Step 1: Go to System Preferences Step 2: Navigate to Security and Privacy From  System Preferences :  Navigate to the   Security and Privacy  option.  Select the  General  tab. Step 3: Allow Oracle America, Inc. to Load Go to the  General  tab.  Look for the  System Software from Developer ‘Oracle America, Inc.’ was blocked from the loading  section.  Click the  Allow  button next to this text. Step 4: Restart VirtualBox After completing all the steps above and allowing Oracle America Inc. to work with your macOS,  reopen  VirtualBox . Now, try installing a virtual machine. If this doesn’t work, try restarting your Mac before you relaunch VirtualBox.