Skip to content

Instantly share code, notes, and snippets.

View X-Tender's full-sized avatar
🤓
I like to code

Paul Kamma X-Tender

🤓
I like to code
View GitHub Profile
@t3easy
t3easy / .gitlab-ci.yml
Last active October 26, 2023 10:09
TYPO3 Surf in GitLab CI
cache:
key: "$CI_JOB_STAGE-$CI_COMMIT_REF_NAME"
paths:
- .cache/
.dedicated-runner:
tags:
- docker
- linux
@TheCyberQuake
TheCyberQuake / TwitchTvEmbedOnlyWhenLive.html
Last active April 16, 2024 19:39 — forked from capperstrnd/TwitchTvEmbedOnlyWhenLive.html
A simple script for embedding Twitch stream only when the channel is live, otherwise it is hidden.
<html>
<head>
<style>
.hide { display:none; }
/* Optional: The following css just makes sure the twitch video stays responsive */
#twitch {
position: relative;
padding-bottom: 56.25%; /* 16:9 */
padding-top: 25px;
@froemken
froemken / docker-compose.override.yaml
Last active August 8, 2022 15:00
How to exclude typo3temp directory from ddev to get more performance
# Move typo3temp into RAM-Disk. Do not sync vendor and TYPO3-Directory.
# For MAC: 'nocopy' will only work correct, if nfs_mount_enabled is true
version: '3.6'
services:
web:
volumes:
- type: tmpfs
tmpfs:
size: 268435456
# TYPO3 8
@garbast
garbast / .gitlab-ci.yml
Created March 8, 2019 12:00
Deployment with deployerphp and gitlabci
cache:
paths:
- $CI_PROJECT_DIR/cache
- $CI_PROJECT_DIR/vendor
- $CI_PROJECT_DIR/.Build/vendor
stages:
- composer
- deploy
@spoonerWeb
spoonerWeb / .gitlab-ci.yml
Last active March 15, 2024 08:15
GitLab CI for building and deploying TYPO3 websites with deployer
cache:
paths:
- /cache/composer
stages:
- composer
- deploy
build:
stage: composer
@koehnlein
koehnlein / .gitlab-ci.yml
Last active December 1, 2021 15:21
simple deployment based on TYPO3 Surf and Gitlab CI
stages:
- deploy
# use caching
cache:
key: "$CI_BUILD_REF_NAME/$CI_BUILD_STAGE"
paths:
- .caches/
variables:
@markhowellsmead
markhowellsmead / newsViaAjax.ts
Last active March 19, 2020 13:46
Get news from TYPO3 via Ajax
// Ajax rendering of news: calls content element set in the backend to get content/settings
// Example call: http://domain.mhm/index.php?id=71&type=1479807984&recordUid=27
// Required params: id => page.uid, recordUid => tt_content.uid
// Returns the data in JSON format
// constants.txt
plugin.tx_news.settings.ajaxPageType = 1479807984
// setup.txt
plugin.tx_news.settings.ajaxPageType = {$plugin.tx_news.settings.ajaxPageType}
@marty-wang
marty-wang / gist:5a71e9d0a6a2c6d6263c
Last active February 13, 2024 07:34
Compile and deploy React Native Android app of Release version to device.
Disclaimer: The instructions are the collective efforts from a few places online.
Nothing here is my original. But I want to put them together in one place to save people from spending the same time as I did.
First off, bundle.
==================
1. cd to the project directory
2. Start the react-native packager if not started
3. Download the bundle to the asset folder:
curl "http://localhost:8081/index.android.bundle?platform=android" -o "android/app/src/main/assets/index.android.bundle"
@arnekolja
arnekolja / PartialExistsViewHelper.php
Last active October 14, 2018 01:38
TYPO3 Fluid ViewHelper to check if a partial name exists ("My/Partial")
<?php
namespace Krbu\Utility\ViewHelpers;
use TYPO3\CMS\Core\Utility\ExtensionManagementUtility;
/**
* Copyright note: Some parts are copied from the Fluid package.
* Usage example:
* <f:if condition="{krbu:PartialExists(partial: 'Category/{item.category.id}/DetailCol1')}">
@michelalbers
michelalbers / lib.menu.language.ts
Created January 21, 2015 19:14
Language Switcher in TYPO3 with tx_news support
lib.menuLanguage = COA
lib.menuLanguage {
10 = HMENU
10 {
special = language
special.value = 1,2
stdWrap.wrap = <ul class="language-select">|</ul>
1 = TMENU
1 {
# Normal link to language that exists: