Skip to content

Instantly share code, notes, and snippets.

View egobude's full-sized avatar
😀
happy programmer

Benedikt Schmitz egobude

😀
happy programmer
  • ROSE Bikes GmbH
  • Bocholt, Germany
View GitHub Profile
<?php
class Shopware_Plugins_Frontend_OrderMod_Bootstrap extends Shopware_Components_Plugin_Bootstrap
{
/**
* (non-PHPdoc)
* @see Shopware_Components_Plugin_Bootstrap::install()
*/
public function install()
{
@egobude
egobude / gist:010be3be6a133b38324b
Last active August 29, 2015 14:10
Install IonCube

Install IonCube

Download ionCube loaders

wget http://downloads.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz

Extract

tar zxvf ioncube_loaders_lin_x86-64.tar.gz
@egobude
egobude / Latest.php
Last active August 29, 2015 14:16 — forked from aertmann/Latest.php
<?php
use TYPO3\Surf\Domain\Model\Node;
use TYPO3\Surf\Domain\Model\SimpleWorkflow;
$application = new \TYPO3\Surf\Application\TYPO3\Flow();
$application->setOption('repositoryUrl', 'git@git.acme.com:Distributions/Acme');
$application->setOption('localPackagePath', FLOW_PATH_DATA . 'Checkout' . DIRECTORY_SEPARATOR . $deployment->getName() . DIRECTORY_SEPARATOR . 'Latest' . DIRECTORY_SEPARATOR);
$application->setOption('composerCommandPath', 'composer');
$application->setOption('transferMethod', 'rsync');
$application->setOption('rsyncFlags', '--recursive --times --perms --links --delete');
@egobude
egobude / config.php
Created May 15, 2015 08:02
Shopware Config
<?php
return array(
'db' =>
array(
'username' => 'xxx',
'password' => 'xxx',
'host' => 'localhost',
'port' => '3306',
'dbname' => 'xxx',
@egobude
egobude / neos.dev.conf
Last active August 29, 2015 14:22 — forked from iwyg/neos.dev.conf
server {
listen *:80;
server_name neos.dev;
root /var/www/neos/Web;
autoindex off;
access_log /var/log/nginx/neos.dev.access.log;
error_log /var/log/nginx/neos.dev.error.log;
index index.php index.html;

#Introduction If you're a php developer on ubuntu, there comes the time where you have to install/reinstall your system. I did it already a few times and i decided to write down the steps for a typical web developer stack with php. This is for a developer machine and not for a live environment!

I hope it helps you too!

fyi @mheiniger and me started with an installer here: https://github.com/mheiniger/webdev-setup

<?php
namespace WM\StarterKit\Finishers;
/**
* @author Benjamin Klix | die wegmeister gmbh
*/
class EmailFinisher extends \TYPO3\Form\Finishers\EmailFinisher {
/**
* Extends the functionality of the default parseOption() method
@egobude
egobude / ubuntu-compass-ruby
Last active August 29, 2015 14:26 — forked from stephanetimmermans/ubuntu-compass-ruby
Install Compass+Ruby on Ubuntu 14.04
#https://gorails.com/setup/ubuntu/14.04
sudo apt-get update
sudo apt-get install git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev python-software-properties
sudo apt-get install libgdbm-dev libncurses5-dev automake libtool bison libffi-dev
curl -L https://get.rvm.io | bash -s stable
source ~/.rvm/scripts/rvm
echo "source ~/.rvm/scripts/rvm" >> ~/.bashrc
rvm install 2.1.2
rvm use 2.1.2 --default
@egobude
egobude / src\Acme\UserBundle\Entity\UserRepository.php
Last active August 29, 2015 14:26 — forked from Slauta/src\Acme\UserBundle\Entity\UserRepository.php
DataTable server side for Symfony 2 Doctrine (ver 2)
<?php
namespace Acme\UserBundle\Entity;
use Doctrine\ORM\EntityRepository;
use Doctrine\ORM\Query\Expr;
/**
* UserRepository
*