This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# based on https://github.com/codekitchen/dinghy/blob/master/cli/dinghy/unfs.rb#L30 https://github.com/codekitchen/dinghy/blob/master/cli/dinghy/unfs.rb#L35 | |
Cmnd_Alias DINGHY_NFS = /usr/local/bin/dinghy nfs * | |
%admin ALL=(root) NOPASSWD: DINGHY_NFS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if (!defined('TYPO3_MODE')) { | |
die ('Access denied.'); | |
} | |
// Override configuration of LocalConfiguration | |
$customChanges = [ | |
'GFX' => [ | |
'TTFdpi' => '96', | |
'colorspace' => 'RGB', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
IP_ADDRESS=localhost | |
GRAYLOG3_URL="http://${IP_ADDRESS}:9000" | |
GRAYLOG3_INPUT_GELF_TCP=' | |
{ | |
"global": "true", | |
"title": "Gelf TCP", | |
"configuration": { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Cmnd_Alias VAGRANT_EXPORTS_ADD = /usr/bin/tee -a /etc/exports | |
Cmnd_Alias VAGRANT_NFSD = /sbin/nfsd restart | |
Cmnd_Alias VAGRANT_EXPORTS_REMOVE = /usr/bin/sed -E -e /*/ d -ibak /etc/exports | |
Cmnd_Alias VAGRANT_HOSTSUPDATER_ADD = /bin/sh -c echo "*" >> /etc/hosts | |
Cmnd_Alias VAGRANT_HOSTSUPDATER_REMOVE = /usr/bin/sed -i -e /*/ d /etc/hosts | |
Cmnd_Alias VAGRANT_HOSTMANAGER_UPDATE = /bin/cp /Users/jglatz/.vagrant.d/tmp/hosts.local /etc/hosts | |
Cmnd_Alias ADMIN_TOOLS_HTOP = /usr/local/bin/htop | |
# additional user specification |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# show version and applicationContext | |
./web/bin/typo3 | head -1 | |
# Extract version only | |
./bin/typo3 | head -1 | grep -P '[0-9]+(\.[0-9]+)?([^\s]+)' -o |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# a) set env var initially to false | |
DEVELOPMENT_ENVIRONMENT_ACTIVE = FALSE | |
# b) set env var to true if env var CI_PROJECT_DIR is not set at all or is empty (The name of the variable is given by GitLab CI) | |
ifeq ($(CI_PROJECT_DIR),) | |
DEVELOPMENT_ENVIRONMENT_ACTIVE = TRUE | |
endif | |
# In an local environment the value will be TRUE now. So we can use this in IF queries in our Makefile | |
# ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
errorHandling: | |
- | |
errorCode: '404' | |
errorContentSource: 't3://page?uid=316' | |
errorHandler: PHP | |
errorPhpClassFQCN: B13\AnyProject\PageErrorHandler\LocalPageErrorHandler |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
declare(strict_types=1); | |
// Override configuration of LocalConfiguration | |
$customChanges = [ | |
'MAIL' => [ | |
'defaultMailFromAddress' => 'your.user@gmail.com', | |
'defaultMailFromName' => 'My Name', | |
'transport' => 'smtp', | |
'transport_smtp_encrypt' => 'tls', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ... | |
CustomLog "|/usr/local/bin/anonip --output /var/log/apache2/www.website.com-access.log" proxy | |
# ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
checkDeprecations: | |
stage: test | |
image: edbizarro/gitlab-ci-pipeline-php:7.2 | |
before_script: | |
- 'which wget || ( sudo apt-get update -y && sudo apt-get install wget -y )' | |
- cd $CI_PROJECT_DIR/ | |
- mkdir -p Build/Report/Deprecations | |
- cd $CI_PROJECT_DIR/app | |
- curl -s https://api.github.com/repos/Tuurlijk/typo3scan/releases/latest | grep "browser_download_url.*phar" | cut '-d' ':' '-f' '2,3' | tr '-d' '\"' | wget -qi - | |
- chmod +x typo3scan.phar |