Skip to content

Instantly share code, notes, and snippets.

View cedricziel's full-sized avatar
🥸

Cedric Ziel cedricziel

🥸
View GitHub Profile
@cedricziel
cedricziel / publish_post.json
Created August 9, 2020 15:53
Canva.com Publish Extension Request Schema
{
"user": "userid",
"brand": "brandid",
"label": "Publish",
"message": "message provided",
"assets": [
{
"url":"https://s3-url",
"type":"PNG",
"name":"0001-9416535780.png"
@cedricziel
cedricziel / README
Created February 4, 2020 14:29
Simple setup for keycloak and docker.
* run gen_keys.sh
* run keycloak_server.sh
Take a look at kcadm on how to import more diverse data points like idp metadata and client configurations.
Also take a look at the simple import / export stuff at https://hub.docker.com/r/jboss/keycloak/

Keybase proof

I hereby claim:

  • I am cedricziel on github.
  • I am cedricziel (https://keybase.io/cedricziel) on keybase.
  • I have a public key ASAfgwH_iPnBRuetEupEV-aAKQeFZyvkiw-Rop-5rRCSogo

To claim this, I am signing this object:

@cedricziel
cedricziel / RealUrlAutoconfHook.php
Created February 1, 2017 12:37
Find all plugins of a specific type and attach fixedPostVars to them
<?php
namespace My\Ext\Hooks;
use TYPO3\CMS\Backend\Utility\BackendUtility;
class RealUrlAutoconfHook {
/**
* @param array $params
@cedricziel
cedricziel / composer.json
Created January 13, 2017 08:07
Tools with tooly
{
"require": {
"tm/tooly-composer-script": "^1.2"
},
"require-dev": {
"escapestudios/symfony2-coding-standard": "~2.0"
},
"scripts": {
"post-install-cmd": [
@cedricziel
cedricziel / migrate.sh
Created January 12, 2017 09:11
Very simple migration script to move from gitlab to gogs
#!/bin/env bash
## Needs `jq` (https://stedolan.github.io/jq/) on PATH
## and a personal gogs token of yours.
## Obtain token from https://git.example.com/user/settings/applications
## Usage:
## ./migrate.sh $clone_url $project_name [$optional_group]
## Migrate a repository to gogs into the user namespace of the token-user
## ./migrate.sh git@mygitlab.com:group/repo.git repo
## Migrate a repository to gogs into the group namespace `group` (needs to exist)
config.tx_extbase {
persistence {
classes {
Vendor\MyExt\Domain\Model\Address {
mapping {
tableName = tt_address
# optional. if you have added additional fields f.e.
columns {
tx_foo_description.mapOnProperty = description
tx_foo_my_other_column.mapOnProperty = unusualPropertyName
<?php
namespace AppBundle\Routing;
use AppBundle\Entity\RoutableEntityInterface;
use JMS\I18nRoutingBundle\Router\I18nRouter;
/**
* Class Router
* Overrides the I18n router to be able to resolve objects by route
@cedricziel
cedricziel / CustomerAutocompletion.php
Created November 4, 2016 14:40
TYPO3 CMS 7 fully loaded TSFE in EiD
<?php
namespace Project\Namespace\Hooks;
use Psr\Http\Message\ResponseInterface;
use Psr\Http\Message\ServerRequestInterface;
use TYPO3\CMS\Backend\Utility\BackendUtility;
use TYPO3\CMS\Core\Core\Bootstrap;
use TYPO3\CMS\Core\Utility\ExtensionManagementUtility;
use TYPO3\CMS\Core\Utility\GeneralUtility;
@cedricziel
cedricziel / FacebookVideoHelper.php
Created October 7, 2016 14:27 — forked from spoonerWeb/FacebookVideoHelper.php
Facebook video integration in TYPO3 (needs some love for FE rendering)
<?php
namespace Vendor\ExtensionKey\Helpers;
/**
* This file is part of the TYPO3 CMS project.
*
* It is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License, either version 2
* of the License, or any later version.
*