Skip to content

Instantly share code, notes, and snippets.

View tbal's full-sized avatar

Tilo Baller tbal

  • CosmoCode GmbH
  • Berlin, Germany
View GitHub Profile
@jonashaag
jonashaag / 0-howto-listfield-django-admin.rst
Created September 7, 2011 09:41
Howto use ListFields in Django's admin

Howto use ListFields in Django's admin

Problem

Consider this blog post model:

models.py

anonymous
anonymous / gist:4284545
Created December 14, 2012 10:52
Test setup to use FAL file reference in extbase model
TCA (this is the Definition for an image field using FAL reference):
'image' => array(
'exclude' => 0,
'label' => 'LLL:EXT:abs_content_elements/Resources/Private/Language/locallang_db.xlf:tx_abscontentelements_domain_model_box.image',
'config' => array(
'maxitems' => 1,
'type' => 'inline',
'foreign_table' => 'sys_file_reference',
'foreign_field' => 'uid_foreign',
@maddy2101
maddy2101 / gist:5668835
Last active March 12, 2021 12:08
TCA, Model and Fluid Partial to display FAL images as a simple gallery using TYPO3 and Extbase 6.1
SQL:
images int(11) unsigned DEFAULT '0',
=======================================================
TCA
....
'images' => array(
'exclude' => 0,
'label' => 'images',
'config' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getFileFieldTCAConfig(
'images',
@bramus
bramus / myservice
Created November 11, 2013 11:23
Running a PHP script as a service/daemon using `start-stop-daemon`
#! /bin/sh
# Installation
# - Move this to /etc/init.d/myservice
# - chmod +x this
#
# Starting and stopping
# - Start: `service myservice start` or `/etc/init.d/myservice start`
# - Stop: `service myservice stop` or `/etc/init.d/myservice stop`
@happycollision
happycollision / Vagrantfile
Created January 17, 2014 06:48
A nice little Vagrantfile that spins up a MySQL server and loads in the data from your .sql file sitting next to it.
# -*- mode: ruby -*-
# vi: set ft=ruby :
# This Vagrantfile (vagrantup.com) spins up a MySQL server with your data
# already loaded. Many of the settings below are the same suggestions you get
# from `vagrant init`.
#
# Just be sure that (if you want data loaded) you have your .sql file sitting
# in the directory that will be shared to the guest. Usually this is the folder
# that your Vagrantfile is in. The database and user will have the same name as
@kj187
kj187 / gist:9857991
Last active June 28, 2021 11:21
Inspiring Conference 2014 in Kolbermoor
@cander
cander / gist:e22a84605d8c4a501a67
Created October 11, 2014 23:05
Vagrant file for Modern IE boxes
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrant file for Modern IE (https://www.modern.ie/en-us) boxes
# This file is for Windown 7 running IE9, but there are other possibilities.
# NB: Vagrant wants to ssh into the VM, but these VMs don't have ssh. So,
# you'll get a timeout error message, which is safe to ignore.
# To use a different box, replace the config.vm.box_url with the URL and
# update the config.vm.box to some name you want to refer to it as.
@cedricziel
cedricziel / README.md
Last active October 27, 2021 08:12
TYPO3 Extension with 3rd part composer dependencies. composer.json is placed in Resources/Private - Updated

Motivation

As long as composer support in CMS is "not there yet", you need to get around somehow.

Say you want to use the (awesome) markdown library, you need a way to get it in.

How

  1. Use a container extension with a private namespace
@cvrebert
cvrebert / css_regression_testing.md
Last active March 3, 2026 22:52
Survey of screenshot-based CSS testing tools

Currently considering https://github.com/webdriverio/webdrivercss


Core Goals:

  • Can test in up-to-date versions of all major browsers
  • Can test on up-to-date versions of all major OSes
  • Can test in IE9 (because Bootstrap v4 will support IE9+)
  • Don't want to have to setup/maintain our own cluster of VMs running all the necessary OSes (and all the versions of Windows)
  • Workflow for management of reference/baseline/norm screenshots
@dreikanter
dreikanter / emberjs-cheat-sheet.md
Last active December 11, 2023 05:01
Ember.js Cheat Sheet

Core concepts

Model

  • An object that stores data (data persistance layer abstraction).
  • Templates transforms models into HTML.
  • Same thing as Rails model.

Template