Skip to content

Instantly share code, notes, and snippets.

View Jigsaw5279's full-sized avatar

Fabian Bettag Jigsaw5279

View GitHub Profile
@MrPunyapal
MrPunyapal / LaravelWhereLikeMacro.php
Last active April 12, 2024 03:32
Laravel Custom 'whereLike' Macro for Dynamic 'LIKE' Searches including relationships
<?php
namespace App\Providers;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Support\Arr;
use Illuminate\Support\ServiceProvider;
class AppServiceProvider extends ServiceProvider
{
@janikvonrotz
janikvonrotz / Unattended Encrypted Incremental Backup to Amazon S3.md
Last active May 8, 2020 08:00
Ubuntu: Unattended Encrypted Incremental Backup to Amazon S3#AmazonAWS#Markdown

Introduction

For this task we are going to configure a duplicity script wrapper. Unregarded of the installation instructions it's expected that you have already signed up for an Amazon account and know how to use their services.

Requirements

  • Ubuntu server
  • duplicity, Git, GnuPG
  • MySQL
@Casmo
Casmo / BootstrapFormHelper.php
Last active November 25, 2018 22:23 — forked from Suven/BootstrapFormHelper.php
Keep default class for labels.
<?php
App::uses('FormHelper', 'View/Helper');
/**
* BootstrapFormHelper.
*
* Applies styling-rules for Bootstrap 3
*
* To use it, just save this file in /app/View/Helper/BootstrapFormHelper.php
* and add the following code to your AppController:
@Suven
Suven / BootstrapFormHelper.php
Last active July 3, 2018 00:12
Bootstrap 3 FormHelper for CakePHP 2.x
<?php
App::uses('FormHelper', 'View/Helper');
/**
* BootstrapFormHelper.
*
* Applies styling-rules for Bootstrap 3
*
* To use it, just save this file in /app/View/Helper/BootstrapFormHelper.php
* and add the following code to your AppController:
@intellix
intellix / Application\Controller\IndexController.php
Last active December 20, 2015 14:49
Event Listeners in ZF2/Doctrine ORM
<?php
namespace Application\Controller;
use Zend\Mvc\Controller\AbstractActionController;
class VillageController extends AbstractActionController
{
private $em;