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 Vendor\Product\Hooks; | |
use TYPO3\CMS\Core\DataHandling\DataHandler; | |
use TYPO3\CMS\Core\Database\DatabaseConnection; | |
use TYPO3\CMS\Core\Utility\GeneralUtility; | |
class DataHandlerHooks { | |
/** |
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
#To Get List of Hardware | |
sudo networksetup -listallhardwareports | |
#To Disable IPv6 on Wifi Adapter | |
sudo networksetup -setv6off wi-fi | |
#To Disable IPv6 on Built-in Ethernet Adapter | |
sudo networksetup -setv6off Ethernet |
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 Smichaelsen\Gist\Mail; | |
use TYPO3\CMS\Core\Utility\ExtensionManagementUtility; | |
use TYPO3\CMS\Core\Utility\GeneralUtility; | |
use TYPO3\CMS\Extbase\Mvc\Controller\ControllerContext; | |
/** | |
* This class represents an email which can be rendered with fluid. | |
* You can use all the possibilities of TYPO3's MailMessage but instead of |
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
/(#([0-9a-f]{3}){1,2}|(rgba|hsla)\(\d{1,3}%?(,\s?\d{1,3}%?){2},\s?(1|0?\.\d+)\)|(rgb|hsl)\(\d{1,3}%?(,\s?\d{1,3}%?\)){2})/i |
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
# Extremely basic development setup to serve the current directory at http://localhost:9001 | |
# Start nginx in this directory with `nginx -p . -c nginx.conf` | |
# Stop nginx with `nginx -p . -s stop` | |
events {} | |
http { | |
# Serve files with correct mimetypes on OSX | |
# location may have to be adjusted depending on your OS and nginx install | |
include /usr/local/etc/nginx/mime.types; |
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
import React from 'react'; | |
import {Provider} from 'mobx-react'; | |
const stub = () => true; | |
export const exampleStore = { | |
app: {}, | |
auth: { | |
checkAuth: stub | |
}, |
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 In2code\Extkey\Hooks; | |
/** | |
* Class RealurlDecoding | |
*/ | |
class RealurlDecoding | |
{ | |
/** |
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
/** | |
* Generates an absolute URL for a page (based on Site Handling) | |
* | |
* @param int $pageId | |
* @param array|null $arguments | |
* @return UriInterface | |
* @throws \TYPO3\CMS\Core\Exception\SiteNotFoundException | |
* @throws \TYPO3\CMS\Core\Routing\InvalidRouteArgumentsException | |
*/ | |
private function getUrlForPage(int $pageId, array $arguments = null): UriInterface |