Skip to content

Instantly share code, notes, and snippets.

View bcremer's full-sized avatar

Benjamin Cremer bcremer

View GitHub Profile
@bcremer
bcremer / README.md
Last active October 12, 2015 12:08
Shopware4 Nginx Configuration - This configuration is WIP!
@bcremer
bcremer / phpstorm-eap-noconflict
Created November 20, 2012 11:40
Conflict free PhpStorm-eap PKGBUILD. Has been included in https://aur.archlinux.org/packages/phpstorm-eap/
# Maintainer: Eduard Kracmar <edke.kraken[at]gmail[dot]com>
# Contributor: D. Can Celasun <dcelasun[at]gmail[dot]com>
# Contributor: Slava Volkov <sv99sv[at]gmail[dot]com>
pkgname=phpstorm-eap-noconflict
_pkgname=PhpStorm # Directory name in the tar file
pkgver=122.864
pkgbuild=122.864
pkgrel=2
pkgdesc="Lightweight and Smart PHP IDE. 30-day free trial."
set-option -g prefix C-a
unbind-key C-b
bind-key C-a last-window
# 0 start numbering at 1
set-option -g base-index 1
# Automatically set window title
setw -g automatic-rename
@bcremer
bcremer / config.php
Created April 16, 2013 09:25
Shopware 4 Debug-Configuration
'front' => array(
'noErrorHandler' => true,
'throwExceptions' => true,
),
// Template-Cache
'template' => array(
'forceCompile' => true,
),
!-- Xft settings -- !
Xft.dpi: 96
Xft.antialias: true
Xft.rgba: rgb
Xft.hinting: true
Xft.hinstyle: hintslight
*foreground:#A7A7A7
*background:#101010
@bcremer
bcremer / ZendOpcache + APCu
Last active September 9, 2020 21:03
Alternative Bytecodecache + Datacache based on ZendOpcache and APCu
# http://pecl.php.net/package/APCu
# http://pecl.php.net/package/ZendOpcache
# Install ZendOpcache
sudo pecl install ZendOpcache-beta
sudo -i
cat > /etc/php5/mods-available/opcache.ini << EOF
zend_extension=/usr/lib/php5/20100525/opcache.so
opcache.memory_consumption=128
opcache.interned_strings_buffer=8
@bcremer
bcremer / dump_shopware_plugin.php
Last active December 17, 2015 18:58
Dumps a given shopware4 plugin (subscribes, forms, elements) into a dbdeploy compatible delta-file. Usage: php dump_plugin.php HttpCache > insert.sql
<?php
if (file_exists('../config.php')) {
$config = include '../config.php';
} elseif (file_exists('../engine/Shopware/Configs/Custom.php')) {
$config = include '../engine/Shopware/Configs/Custom.php';
} else {
die('Could not find config');
}
$dbConfig = $config['db'];
@bcremer
bcremer / build.xml
Created July 30, 2013 09:23
Apache ANT If/Else-Condition without ANT-Contrib
<?xml version="1.0" encoding="utf-8"?>
<project name="Ant Condition Example">
<target name="myConditionalTask" depends="myConditionalTask-check, myConditionalTask-fail" if="myConditionalTask-check-property">
<echo message="EXECUTE myConditionalTask" />
</target>
<target name="myConditionalTask-fail" unless="myConditionalTask-check-property">
<echo message="SKIPPED myConditionalTask" />
</target>
@bcremer
bcremer / gist:7524492
Last active August 5, 2023 23:09
My i3 config.
# .config/i3/config
set $mod Mod4
set $alt Mod1
font pango:Segoe UI 8
# Use Mouse+$mod to drag floating windows to their wanted position
floating_modifier $mod
## Solarized colorshema
@bcremer
bcremer / README.md
Last active January 4, 2016 02:29
Wrapper around php-cs-fixer with preselected fixers matching the shopware4 CS

sw-fix-cs

Wrapper around php-cs-fixer with preselected fixers matching the shopware4 CS

UPDATE (2015-09-17)

We are using the full PSR2 set of fixers now. So the following script is superfluous. Please use directly php-cs-fixer. Please follow the php-cs-fixer installation instructions: http://cs.sensiolabs.org/#installation

Usage