Skip to content

Instantly share code, notes, and snippets.

View JLNNN's full-sized avatar

Julian Stock JLNNN

View GitHub Profile
@JLNNN
JLNNN / .gitlab-ci.yml
Created August 14, 2019 11:06
GitLab Continuous Delivery Pipeline -> Deployment to Webserver (SSH) (without Composer)
before_script:
- apt-get update -yqq
- apt-get install -yqq git
- 'which ssh-agent || ( apt-get install -qq openssh-client )'
- mkdir -p ~/.ssh
- eval $(ssh-agent -s)
- '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config'
stages:
- deploy
deploy:staging:
@JLNNN
JLNNN / GenerateValidSegmentPath.php
Last active August 7, 2019 10:28
Unit test for generating slugs
<?php
namespace My\NamespaceExt\Task;
use TYPO3\CMS\Core\Charset\CharsetConverter;
use TYPO3\CMS\Core\Utility\GeneralUtility;
class GenerateValidSegmentPath {
/**
<?php
namespace My\NamespaceRedirect\Tests\Unit\Hooks;
use My\NamespaceRedirect\Hooks\RequestHandlerHook;
use My\NamespaceRedirect\Service\DomainDataService;
use My\NamespaceRedirect\Service\HeaderService;
use My\NamespaceRedirect\Service\RedirectDataService;
use TYPO3\CMS\Core\Core\Environment;
use TYPO3\CMS\Core\Core\SystemEnvironmentBuilder;
{
"meta": {
"version": "2.7.12",
"build": 1554467925
},
"pods": {
"395": {
"id": 395,
"name": "project",
"label": "Projekte",
openapi: 3.0.0
servers:
- url: https://localhost/
info:
description: My API description
title: My API title
version: '1.0'
paths:
/some-data/:
get:
@JLNNN
JLNNN / server_not_working.json
Last active March 22, 2018 15:29
unable to start server (DapperDox/dapperdox)
{
"openapi": "3.0.0",
"servers": [
{
"url": "https://api.test.lulu.com"
}
],
"info": {
"version": "1",
"description": "The Platform provides APIs for creating, processing and ordering both electronical and printed books.",
@JLNNN
JLNNN / DCE configuration of field.link
Created March 16, 2017 09:26
[TYPO3 6.2.x] Return typolink to tx_news entry or pageId set by DCE content
@JLNNN
JLNNN / TSconfig
Last active March 16, 2017 14:44
[TYPO3 6.2.x] Hook for LinkHandler extension for different tx_news detail pages separated by sys_category single view pid (no namespaces, using extension https://github.com/AOEpeople/linkhandler)
RTE.default.tx_linkhandler.tx_news {
label = Newsbeitrag
listTables = tx_news_domain_model_news
pageTreeMountPoints {
# storagepid of news entries
1 = 16
}
}
@JLNNN
JLNNN / setup.ts
Created May 25, 2016 07:48
Typoscript: Use default content if column is empty
CONTENT = COA
CONTENT {
10 = COA
10 {
10 < styles.content.get
10.select.where = colPos = 1
if.isTrue.numRows {
# diese Seite überprüfen
pidInList = this