First let's install Homebrew.
$ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
Never touch your local /etc/hosts file in OS X again. Setup your computer to work with *.test domains, e.g. project.test, awesome.test and so on, without having to add to your hosts file each time.
Docker on BTRFS is very buggy and can result in a fully-unusable system, in that it will completely butcher the underlying BTRFS filesystem in such a way that it uses far more disk space than it needs and can get into a state where it cannot even delete any image, requiring one to take drastic actions up to and including reformatting the entire affected BTRFS root file system.
According to the official Docker documentation:
btrfs requires a dedicated block storage device such as a physical disk. This block device must be formatted for Btrfs and mounted into /var/lib/docker/.
In my experience, you will still run into issues even if you use a dedicated partition. No, it seems it requires a standalone
<?php | |
/** This plugin replaces UNIX timestamps with human-readable dates in your local format. | |
* Mouse click on the date field reveals timestamp back. | |
* | |
* @link https://www.adminer.org/plugins/#use | |
* @author Anonymous | |
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0 | |
* @license http://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other) | |
*/ |
GitLab CI/CD for website projects (example: typo3.org): | |
Yaml configuration: https://git-t3o.typo3.org/t3o/typo3.org/blob/develop/.gitlab-ci.yml | |
Deployer: https://git-t3o.typo3.org/t3o/typo3.org/blob/develop/.gitlab-ci/deployer/deploy.php | |
GitLab CI/CD for extensions: | |
Yaml configuration with tests and TER release: https://git.spooner.io/spooner/be_secure_pw/blob/master/.Build/ci/.gitlab-ci.yml |
Add this to your .profile, .bashrc, .zshrc...
BASE64_DECODER_PARAM="-d" # option -d for Linux base64 tool
echo AAAA | base64 -d > /dev/null 2>&1 || BASE64_DECODER_PARAM="-D" # option -D on MacOS
decode_base64_url() {
local len=$((${#1} % 4))
local result="$1"
if [ $len -eq 2 ]; then result="$1"'=='
public function downloadAction() | |
{ | |
$storage = $this->resourceFactory->getDefaultStorage(); | |
$file = $storage->getFile('test.jpg'); | |
$response = $storage->streamFile($file, true, 'test-filename.jpg'); | |
$this->sendResponse($response); | |
exit(); | |
} | |
protected function sendResponse($response) |