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
#!/usr/bin/env ruby | |
# USAGE: | |
# $ check_redirects --help | |
# or | |
# $ ruby check_redirects.rb --help | |
require 'bundler/inline' | |
gemfile do |
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
image: an-image-with-docker-and-docker-compose | |
variables: | |
DOCKER_TLS_VERIFY: "1" | |
DOCKER_CERT_PATH: ".docker" | |
before_script: | |
- mkdir -p $DOCKER_CERT_PATH | |
- echo "$DOCKER_CA" > $DOCKER_CERT_PATH/ca.pem | |
- echo "$DOCKER_CERT" > $DOCKER_CERT_PATH/cert.pem |
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); | |
namespace In2code\Lux\ViewHelpers\Format; | |
use TYPO3\CMS\Extbase\Utility\LocalizationUtility; | |
use TYPO3Fluid\Fluid\Core\ViewHelper\AbstractViewHelper; | |
/** | |
* Class ReadableDateViewHelper | |
* |
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
var CronJob = require('cron').CronJob; | |
var job = new CronJob({ | |
cronTime: '00 */5 * * * *', | |
onTick: function() { | |
const puppeteer = require('puppeteer'); | |
(async () => { | |
const browser = await puppeteer.launch(); | |
const page = await browser.newPage(); | |
await page.setViewport({width: 1920, height: 1080}); |
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
{ | |
"require": { | |
"typo3-console/composer-auto-setup": "^0.1", | |
"georgringer/news": "^6.1", | |
"helhum/typo3-secure-web": "^0.2.5", | |
"typo3/cms-introduction": "^3.0" | |
}, | |
"extra": { | |
"typo3/cms": { | |
"cms-package-dir": "{$vendor-dir}/typo3/cms", |
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 | |
/* | |
* There is currently no pure PHP yaml parser capable of reading | |
* multi documents (--- separated). I have tested both spyc and Symfony's YAML. | |
* | |
* Therefore I parse YAML with Python, encode it to json and read the json in | |
* PHP. The json is cached on disk. | |
* | |
* Public Domain by http://github.com/svenk | |
*/ |
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 | |
set -e | |
# insert a line to a file if the line does not already exist | |
# - first parameter is the file to insert the line | |
# - second parameter is the line to insert. It'll only be inserted if not already exists | |
# - third parameter is optional. This will override the search behavior. | |
# Instead of searching for the line of parameter 2 this term is used. | |
function insertLineIfNotExists { | |
FILE=$1 |
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
mod { | |
web_layout { | |
// disable translation mode for content elements | |
// backported feature from TYPO3 9.x. See Xclass PageLayoutView.php for details | |
localization.enableTranslate = 0 | |
} | |
} |
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
cache: | |
# Use a cache for every branch and every stage | |
key: "$CI_COMMIT_REF_NAME/$CI_JOB_STAGE" | |
# Cache the path .cache within the project workspace | |
paths: | |
- .cache/ | |
variables: | |
# Tell composer to save and load it's cache within the .cache folder | |
COMPOSER_CACHE_DIR: "$CI_PROJECT_DIR/.cache/composer" |