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 | |
/** @var $extbaseObjectManager \TYPO3\CMS\Extbase\Object\ObjectManager */ | |
$extbaseObjectManager = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Extbase\\Object\\ObjectManager'); | |
/** @var $newsRepository \Tx_News_Domain_Repository_NewsRepository */ | |
$newsRepository = $extbaseObjectManager->get('Tx_News_Domain_Repository_NewsRepository'); | |
/** @var $newsRecord \Tx_News_Domain_Model_News */ | |
$newsRecord = $newsRepository->findByUid($newsParams['news']); |
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 | |
# Open current directory in forklift | |
# Adapted from https://gist.github.com/elentok/6218781 | |
# Adapted from comment https://gist.github.com/elentok/6218781#comment-891115 | |
# Added optional path argument and removed using the clipboard buffer. | |
set -e | |
if [ -z "$@" ]; then |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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 | |
namespace AndreasKießling\AkViewHelpers\ViewHelpers; | |
/** | |
* This class is a view helper for fluid to call array_chunk from a template | |
*/ | |
class ArrayChunkViewHelper extends \TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper | |
{ | |
/** | |
* @param integer $size |
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
# login under http://localhost:8080 with admin/admin | |
version: '2' | |
services: | |
redmine: | |
image: redmine | |
ports: | |
- '8080:3000' |
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
charset = utf-8 | |
end_of_line = lf | |
indent_style = space | |
indent_size = 4 | |
insert_final_newline = true | |
trim_trailing_whitespace = true | |
# Makefile | |
[{Makefile,*.mk}] | |
indent_style = tab |
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 -e | |
# Usage: ./docker-local-hosts.sh containername mylocalname | |
# Get IP of container and strip newlines. | |
INSPECT=$(docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' $1) | |
IP=${INSPECT//[$'\t\r\n']} | |
if test -z "$IP"; then | |
echo "Container IP for $1 not found." | |
exit |
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
txtsitemap = PAGE | |
txtsitemap { | |
typeNum = 77 | |
config { | |
disableAllHeaderCode = 1 | |
additionalHeaders.10.header = Content-type:text/plain | |
debug = 0 | |
} | |
10 = HMENU |