Skip to content

Instantly share code, notes, and snippets.

View guilu's full-sized avatar
💭
{dbhstudios}

Diego Barrio Hortigüela guilu

💭
{dbhstudios}
View GitHub Profile
@guilu
guilu / phpmd.xml
Last active September 7, 2015 09:11
Rulesets del mess detector. Suele ir en ci/phpmd.xml
<?xml version="1.0" encoding="UTF-8" ?>
<ruleset name="My own rules"
xmlns="http://pmd.sf.net/ruleset/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://pmd.sf.net/ruleset/1.0.0 http://pmd.sf.net/ruleset_xml_schema.xsd"
xsi:noNamespaceSchemaLocation="http://pmd.sf.net/ruleset_xml_schema.xsd">
<description>
Son todas las reglas de phpmd, pero con algunas excepciones :
- Clean Code: quita el warning de sentencias else
@guilu
guilu / build.xml
Last active September 11, 2015 10:33
fichero build para proyectos symfony (jenkins and phing)
<?xml version="1.0" encoding="UTF-8"?>
<!-- build file for jenkins phing job. Includes:
build:
clean:
delete build
prepare:
create directories
composer:
composer install
@guilu
guilu / .gitignore_global
Last active November 8, 2015 11:39
gitigone global (va en el ~)
# Compiled source #
#-------------------------------------------
*.com
*.class
*.dll
*.exe
*.o
*.so
*.pyc
@guilu
guilu / infinte.scroll.paginator.html.twig
Created September 10, 2014 20:08
infinte scroll knppaginatorbundle twig
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8">
<title>infinite scroll</title>
</head>
<body>
{% block body %}
<!-- aqui pones el la plantilla que pinta los resultados de knppaginator -->
@guilu
guilu / windows terminal - Solarized Dark.reg
Created August 21, 2014 07:06
windows terminal Solarized Dark
Windows Registry Editor Version 5.00
; Registry file that maps the solarized palette to the 16 avaliable colors
; in a Windows command prompt. Note, hex values in the table are RGB but byte
; ordering of a DWORD is BGR, e.g. "ColorTable<##>"=dword:00<B><G><R>
;
; Solarized color table from http://ethanschoonover.com/solarized.
;
; NR cmd.exe PowerShell SOLARIZED HEX DWORD
; -- ------- ----------- --------- ------- --------
@guilu
guilu / symonfy2-VirtualHost.conf
Created January 23, 2014 08:16
configuracion de un host virtual en apache, este fichero debe estar incluido en la configuracion global de apache (httpd.conf)
#-------------------------------------------------------- proyecto Symfony2
#-------------------------------------------------------- sustituir [ruta_hasta_proyecto] y [nombre_proyecto] por sus valores correspondientes
<VirtualHost *:80>
ServerName [nombre_proyecto].local
ServerAlias www.[nombre_proyecto]
DocumentRoot "[ruta_hasta_proyecto]/[nombre_proyecto].local/web"
DirectoryIndex app.php
<Directory "/Users/diegobarrioh/www/[nombre_proyecto].local/web">