This file contains hidden or 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
| ### add this to your gitconfig (~/.config/git/config) | |
| ### …or use this command: git config --global commit.template ~/.config/git/gitcommitmessage.txt | |
| [commit] | |
| template = ~/.config/git/gitcommitmessage.txt |
This file contains hidden or 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
| ### path | |
| alias sl='ls' | |
| alias la='ls -alh' | |
| alias ..='cd ..' | |
| alias ...='cd ../..' | |
| alias ....='cd ../../..' | |
| alias .....='cd ../../../..' | |
| ### git | |
| alias gll='git log --graph --pretty=oneline --abbrev-commit' | |
| alias gls='git log -7 --oneline' |
This file contains hidden or 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
| <!-- Allow ONLY the FCE »Slider« in a column --> | |
| <flux:grid> | |
| <flux:grid.row> | |
| <flux:grid.column name="sliderContent" colPos="1" variables="{allowedContentTypes: 'fluidcontent_content', Fluidcontent: {allowedContentTypes: 'Vendorname.some_extension_key:Slider.html'}}" /> | |
| </flux:grid.row> | |
| <flux:grid.row> | |
| <flux:grid.column name="mainContent" colPos="0" variables="{Fluidcontent: {deniedContentTypes: 'Vendorname.some_extension_key:Slider.html'}}" /> | |
| </flux:grid.row> | |
| </flux:grid> |
This file contains hidden or 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
| <f:if condition="{node.context.workspace.name} == 'live'"> | |
| Only visible in live frontend | |
| </f:if> | |
| <f:security.ifAccess privilegeTarget="TYPO3.Neos:Backend.GeneralAccess"> | |
| <f:if condition="{node.context.workspace.name} != 'live'"> | |
| Only visible in backend workspace | |
| </f:if> | |
| </f:security.ifAccess> |
This file contains hidden or 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
| ### crawls all links, writes the result to /tmp/ and deletes the files right away | |
| wget --spider --force-html -r -l10 --directory-prefix=/tmp/ --no-directories --delete-after http://www.example.com |
This file contains hidden or 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 | |
| namespace Pixelbrackets\AcmeSitepackage\ViewHelpers; | |
| use TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper; | |
| /** | |
| * Grouped loop viewhelper | |
| * | |
| * Iterates through elements and groups them by a specified property first | |
| * |
This file contains hidden or 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 | |
| namespace Pixelbrackets\AcmeExtension\ViewHelpers; | |
| use TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper; | |
| /** | |
| * Returns the domain of a given link | |
| * | |
| * = Examples = | |
| * |
This file contains hidden or 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 | |
| namespace Pixelbrackets\AcmeExtension\ViewHelpers; | |
| use TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper; | |
| /** | |
| * Checks if a given page is translated into a given language or translated at all | |
| * | |
| * = Examples = | |
| * |
This file contains hidden or 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
| /* | |
| If you blind a menu item (e.g. let an editor edit translations, but dont show him tsconfig), | |
| then check for all currently registered keys in the configuration module. | |
| Open the configuration module in TYPO3 backend and select the option »BE Modules Extensions«. | |
| This will show a tree. Just copy the key names and adjust the following snippet to your needs. | |
| Warning: This will just blind the option, it is not an access check. | |
| */ |
This file contains hidden or 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
| cd /home/ | |
| ### you may search for a part of the public key only, but make sure to not match unwanted keys of other users | |
| grep -R -l 'SomeSSHKeyOrHostname' */.ssh/authorized_keys | |
| sed -i '/SomeSSHKeyOrHostname/d' somedeploymentuser1/.ssh/authorized_keys | |
| sed -i '/SomeSSHKeyOrHostname/d' somedeploymentuser2/.ssh/authorized_keys | |
| sed -i '/SomeSSHKeyOrHostname/d' somedeploymentuser3/.ssh/authorized_keys |