Open ~/.bash_profile
in your favorite editor and add the following content to the bottom.
# Git branch in prompt.
parse_git_branch() {
<?php | |
declare(strict_types=1); | |
/* | |
* This file is part of the Extension "plain_faq" for TYPO3 CMS. | |
* | |
* For the full copyright and license information, please read the | |
* LICENSE.txt file that was distributed with this source code. | |
*/ |
#!/bin/bash | |
# Script for converting MXF video files to different to other file formats. | |
for i in *.MXF; do | |
if [ -e "$i" ]; then | |
file=`basename "$i" .MXF` | |
# MP4 file with default settings + deinterlacing | |
ffmpeg -i "$i" -c:v libx264 -vf yadif "$file.mp4" |
<?php | |
declare(strict_types=1); | |
namespace Vendor\Extension\Hooks; | |
use TYPO3\CMS\Core\Utility\GeneralUtility; | |
use TYPO3\CMS\FrontendEditing\EditingPanel\FrontendEditingDropzoneModifier; | |
use TYPO3\CMS\FrontendEditing\Service\ContentEditableWrapperService; | |
/** |
#!/usr/bin/env php | |
<?php | |
echo "Running tests.. "; | |
exec('vendor/bin/phpunit', $output, $returnCode); | |
if ($returnCode !== 0) { | |
// Show full output | |
echo PHP_EOL . implode($output, PHP_EOL) . PHP_EOL; | |
echo "Aborting commit.." . PHP_EOL; |
#!/bin/bash | |
# Stop all containers | |
containers=`docker ps -a -q` | |
if [ -n "$containers" ] ; then | |
docker stop $containers | |
fi | |
# Delete all containers | |
containers=`docker ps -a -q` | |
if [ -n "$containers" ]; then | |
docker rm -f -v $containers |
/** | |
* A special action which is called if the originally intended action could | |
* not be called, for example if the arguments were not valid. | |
* | |
* The default implementation sets a flash message, request errors and forwards back | |
* to the originating action. This is suitable for most actions dealing with form input. | |
* | |
* We clear the page cache by default on an error as well, as we need to make sure the | |
* data is re-evaluated when the user changes something. | |
* |
When VPNs Just Work™, they're a fantastic way of allowing access to a private network from remote locations. When they don't work it can be an experience in frustration. I've had situations where I can connect to a VPN from my Mac, but various networking situations cause routing conflicts. Here are a couple of cases and how I've been able to get around them.
In this example the VPN we are connecting to has a subnet that does not conflict with our local IP, but has additional routes that conflict in some way with our local network's routing. In my example the remote subnet is 10.0.x.0/24, my local subnet is 10.0.y.0/24, and the conflicting route is 10.0.0.0/8. Without the later route, I can't access all hosts on the VPN without manually adding the route after connecting to the VPN: