Skip to content

Instantly share code, notes, and snippets.

View garbast's full-sized avatar

Sebastian Fischer garbast

View GitHub Profile
@garbast
garbast / suggest.js
Created June 9, 2016 09:47
Problem with suggest as mixed mode file
/* global window, define, jQuery */
(function(factory) {
"function" == typeof define && define.amd ? define('suggest', ['jquery', 'jquery-ui'], factory) : factory(jQuery)
})(function(jQuery, jQueryUi) {
console.log('yeah');
function initialize() {
// Change back to the old behavior of auto-complete
// http://jqueryui.com/docs/Upgrade_Guide_184#Autocomplete
jQuery.ui.autocomplete.prototype._renderItem = function( ul, item ) {
return jQuery( "<li></li>" )
@garbast
garbast / getter_for_first_request.txt
Created February 26, 2016 13:56
Quick solution for requests
diff --git a/typo3/sysext/core/Classes/Http/ServerRequestFactory.php b/typo3/sysext/core/Classes/Http/ServerRequestFactory.php
index bee3e59..7b9cf82 100644
--- a/typo3/sysext/core/Classes/Http/ServerRequestFactory.php
+++ b/typo3/sysext/core/Classes/Http/ServerRequestFactory.php
@@ -27,6 +27,23 @@ use TYPO3\CMS\Core\Utility\GeneralUtility;
class ServerRequestFactory
{
/**
+ * First request instantiated
+ *
@garbast
garbast / steam.sls
Created October 17, 2015 14:06
Install steam via saltstack
dpkg_steam_license:
cmd.run:
- unless: which steam
- name: '/bin/echo /usr/bin/debconf steam/license note | /usr/bin/debconf-set-selections'
- require_in:
- pkg: steam
- cmd: dpkg_steam_question
dpkg_steam_question:
cmd.run:
@garbast
garbast / flexform.xml
Created September 30, 2015 09:57
Flexform with FAL field
<image type="array">
<TCEforms type="array">
<label>Bild (Pflichtfeld)</label>
<config>
<type>inline</type>
<minitems>1</minitems>
<maxitems>1</maxitems>
<appearance type="array">
<createNewRelationLinkTitle>LLL:EXT:cms/locallang_ttc.xlf:images.addFileReference</createNewRelationLinkTitle>
#!/bin/bash
#
# This script will
# * fire up a ramdisk
# * start a mysql server using it as storage
# * copying your typo3 database to ram
# * run the tests
# * clean up
#
# use -k as parameter to clean-up after a failed run