Skip to content

Instantly share code, notes, and snippets.

View pschriner's full-sized avatar

Patrick Schriner pschriner

View GitHub Profile
@pschriner
pschriner / locallang-xml-to-xliff.php
Last active February 12, 2024 10:54 — forked from tleilax/locallang-xml-to-xliff.php
Typo3: Very very basic locallang.xml to locallang.xlf converter
<?php
function Language2XML($data, $language, $translations = array()) {
$xml = new DOMDocument('1.0', 'UTF-8');
$xliff = $xml->createElement('xliff');
$xliff->setAttribute('version', '1.0');
$file = $xml->createElement('file');
$file->setAttribute('source-language', 'en');
if (func_num_args() > 2) {
$file->setAttribute('target-language', $language);
@pschriner
pschriner / ubuntu-18.04.sh
Created May 14, 2019 10:54 — forked from mourato/ubuntu-18.04.sh
Things to do after install Ubuntu 18.04
#!/bin/bash
#
# Updating system
#
sudo apt-get update # Update resources
sudo apt dist-upgrade -f # Then, a dist upgrade
#
@pschriner
pschriner / .gitlab-ci.yml
Last active January 11, 2019 09:34 — forked from spoonerWeb/.gitlab-ci.yml
GitLab CI for building and deploying TYPO3 websites with deployer
cache:
paths:
- /cache/composer
stages:
- composer
- deploy
build:
stage: composer