Skip to content

Instantly share code, notes, and snippets.

View byhoratiss's full-sized avatar

Horacio Tissera byhoratiss

  • Argentina, Santa Fe
View GitHub Profile

0x13e45849d3467e940ac47f255320f9a7711829954ff727f8e99bbba564bf9e31

@byhoratiss
byhoratiss / StrategyFilter.php
Last active May 25, 2023 08:45
Api Platform multiple SearchFilter strategies for a property
<?php
namespace App\Filter;
use ApiPlatform\Core\Api\IriConverterInterface;
use ApiPlatform\Core\Bridge\Doctrine\Orm\Filter\SearchFilter;
use ApiPlatform\Core\Bridge\Doctrine\Orm\Util\QueryBuilderHelper;
use ApiPlatform\Core\Bridge\Doctrine\Orm\Util\QueryNameGeneratorInterface;
use ApiPlatform\Core\Exception\InvalidArgumentException;
use Doctrine\Common\Persistence\ManagerRegistry;
@byhoratiss
byhoratiss / five_minutes.yml
Last active August 29, 2015 14:27 — forked from ryane/five_minutes.yml
five_minutes.yml
---
- hosts: all
vars:
UBUNTU_COMMON_ROOT_PASSWORD: 'xxxxx'
UBUNTU_COMMON_DEPLOY_PASSWORD: 'xxxxx'
UBUNTU_COMMON_LOGWATCH_EMAIL: user@example.com
ubuntu_common_deploy_user_name: deploy
ubuntu_common_deploy_public_keys:
- ~/.ssh/id_rsa.pub
@byhoratiss
byhoratiss / web.config
Created December 4, 2012 01:14 — forked from fabiancarlos/web.config
Kohana 3.2 URL Rewrite of the IIS 7/Windows 2008 **using conversor of .htaccess to web.config
<!--# link: http://learn.iis.net/page.aspx/470/importing-apache-modrewrite-rules/ -->
<configuration>
<system.webServer>
<rewrite>
<rules>
<!--# Turn on URL rewriting-->
<!--# Protect hidden files from being viewed-->
<!--# Protect application and system files from being viewed-->
<rule name="Imported Rule 9" stopProcessing="true">
<match url="^(?:application|modules|system)\b.*" ignoreCase="false" />
@byhoratiss
byhoratiss / orm.php
Created August 19, 2011 17:35 — forked from jeremeamia/orm.php
View-Models for Kohana 3.2.x (ORM-specific)
<?php defined('SYSPATH') or die('No direct script access.');
class ORM extends Kohana_ORM {
protected $_as_object = NULL;
public function as_object($class)
{
$this->_as_object = $class;
(function($){
$.widget("ui.mywidget", {
options: {
autoOpen: true
},
_create: function(){
// by default, consider this thing closed.