It's a bundle of documentation of languages, projects and other stuff. Easily searchable and can be used offline.
Download: https://devdocs.io
It's a bundle of documentation of languages, projects and other stuff. Easily searchable and can be used offline.
Download: https://devdocs.io
| get_latest_release() { | |
| curl --silent "https://api.github.com/repos/$1/releases/latest" | # Get latest release from GitHub api | |
| grep '"tag_name":' | # Get tag line | |
| sed -E 's/.*"([^"]+)".*/\1/' # Pluck JSON value | |
| } | |
| # Usage | |
| # $ get_latest_release "creationix/nvm" | |
| # v0.31.4 |
This launchd script will ensure that your Docker environment on your Mac will have 10.254.254.254 as an alias on your loopback device (127.0.0.1). The command being run is ifconfig lo0 alias 10.254.254.254.
Once your machine has a well known IP address, your PHP container will then be able to connect to it, specifically XDebug can connect to it at the configured xdebug.remote_host.
Copy/Paste the following in terminal with sudo (must be root as the target directory is owned by root)...
rsync must be available on both machines (deployment host and target host)curl to get the JSON response for the latest releasegrep to find the line containing file URLcut and tr to extract the URLwget to download itcurl -s https://api.github.com/repos/jgm/pandoc/releases/latest \
| grep "browser_download_url.*deb" \
| cut -d : -f 2,3 \
| tr -d \" \| composer create-project typo3/cms-base-distribution='^7.6.0' my-test-typo3 --no-interaction | |
| cd my-test-typo3/ | |
| composer require helhum/typo3-console | |
| # This will only work with PHP < 7 as realurl need PHP 5.x | |
| composer require typo3-ter/introduction | |
| cp web/typo3conf/ext/typo3_console/Scripts/typo3cms . | |
| cp web/typo3conf/ext/bootstrap_package/Configuration/Apache/.htaccess web/ | |
| chmod +x typo3cms | |
| ./typo3cms install:setup --non-interactive --database-user-name="root" --database-user-password="root" --database-host-name="localhost" --database-port="3306" --database-name="t3_my_test" --admin-user-name="admin" --admin-password="password" --site-name="Auto Install" | |
| ./typo3cms database:updateschema '*.*' |
| html { | |
| /* Adjust font size */ | |
| font-size: 100%; | |
| -webkit-text-size-adjust: 100%; | |
| /* Font varient */ | |
| font-variant-ligatures: none; | |
| -webkit-font-variant-ligatures: none; | |
| /* Smoothing */ | |
| text-rendering: optimizeLegibility; | |
| -moz-osx-font-smoothing: grayscale; |
| # Backup | |
| docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql | |
| # Restore | |
| cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE | |
| # Let apache know we're behind a SSL reverse proxy | |
| SetEnvIf X-Forwarded-Proto "https" HTTPS=on | |
| # Redirect to HTTPS | |
| <IfModule mod_rewrite.c> | |
| RewriteEngine on | |
| RewriteCond %{HTTPS} !=on | |
| RewriteCond %{HTTP:X-Forwarded-Proto} !https [NC] | |
| RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] | |
| </IFModule> |