Skip to content

Instantly share code, notes, and snippets.

View mrimann's full-sized avatar

Mario Rimann mrimann

View GitHub Profile
@jrenggli
jrenggli / ResourceModificationTimeAspect.php
Last active August 29, 2015 14:16
Add timestamp to resource links in TYPO3 Flow. (Thanks to Sascha and Visay)
<?php
namespace WE\BaseBox\Aspects;
/* *
* This script belongs to the TYPO3 Flow package "WE.BaseBox". *
* *
* It is free software; you can redistribute it and/or modify it under *
* the terms of the GNU Lesser General Public License, either version 3 *
* of the License, or (at your option) any later version. *
* *
@aertmann
aertmann / Caches.yaml
Last active January 6, 2016 23:32
Prevent session clearing on cache flushing.
# Flow 3.0+
Flow_Session_Storage:
persistent: TRUE
Flow_Session_MetaData:
persistent: TRUE
# Flow 2.0-2.3 (only works with Surf deployment – not flow:cache:flush command)
Flow_Session_Storage:
backendOptions:
@robertlemke
robertlemke / nginx.conf
Created July 23, 2013 17:37
My very rudimentary nginx.conf file which I use for development on my Mac. I use a special setup with dnsmasq which redirects all URLs like foo.dev, foo.prod etc. to my localhost. I use Nginx in combination with PHP-FPM. You can do the same with Apache, see: https://gist.github.com/robertlemke/4951820
worker_processes 1;
events {
worker_connections 1024;
}
http {
include mime.types;
use TYPO3\Flow\Annotations as Flow;
use Doctrine\ORM\Mapping as ORM;
/**
* A User
*
* @Flow\Entity
*/
class User {
@erikh
erikh / hack.sh
Created March 31, 2012 07:02 — forked from DAddYE/hack.sh
OSX For Hackers
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh
#
@ziadoz
ziadoz / awesome-php.md
Last active April 17, 2024 21:06
Awesome PHP — A curated list of amazingly awesome PHP libraries, resources and shiny things.