Skip to content

Instantly share code, notes, and snippets.

View sourcerebels's full-sized avatar

Edu Rodríguez Castillo sourcerebels

View GitHub Profile
@sourcerebels
sourcerebels / symfony2-create-bundle.sh
Created February 11, 2012 18:00
PHP > Symfony2 > Clear routes and twig templates cache
# Execute this from your Symfony2 path
php app/console cache:clear --env=prod --no-debug
@sourcerebels
sourcerebels / symfony2-create-bundle.sh
Created February 11, 2012 17:11
PHP > Symfony2 > Create a bundle from command line
# Execute from "Symfony" installation folder
php app/console generate:bundle --namespace=Sourcerebels/BlogBundle
@sourcerebels
sourcerebels / pom.xml
Created February 9, 2012 11:23
Maven > POM Examples > Spock and Groovy 1.8 project
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.sourcerebels</groupId>
<artifactId>groovy-spock-maven-sample-project</artifactId>
<version>1.0-SNAPSHOT</version>
@sourcerebels
sourcerebels / create-maven-jasmine-project.sh
Created January 30, 2012 06:34
Create Jasmine - Maven project
#
# Original documentation (http://searls.github.com/jasmine-maven-plugin/)
# Requires Maven (http://maven.apache.org)
#
ARTIFACT_ID=$1
GROUP_ID=$2
VERSION=$3
function usage() {
@sourcerebels
sourcerebels / build.gradle
Created December 10, 2011 14:39
Gradle application plugin: Bypassing system properties when running an application
apply plugin: 'application'
mainClassName = 'com.sourcerebels.Launcher'
run.systemProperties = System.properties
@sourcerebels
sourcerebels / README.txt
Created November 29, 2011 13:19
Atajos de teclado para Midnight Commander
Atajos de teclado de Midnight Commander
- Trabajar con paneles.
Alt+t: Cambia entre los diferentes modos de visualización de los paneles.
Control+r: Refresca ambos paneles.
Control+u: Intercambia los dos panels.
Control+s: Busca un fichero en el panel activo.
Alt+Shift+?: Buscar archivos en .
@sourcerebels
sourcerebels / Gradle.sublime-build
Created November 22, 2011 15:14
Sublime Text 2 configuration file for different build systems
{
"cmd": ["gradle", "test"],
"working_dir": "$project_path"
}
@sourcerebels
sourcerebels / maven-completion.bash
Created October 9, 2011 18:43
maven-completion.bash
#!/bin/bash
_m2_make_goals()
{
plugin=$1
mojos=$2
for mojo in $mojos
do
export goals="$goals $plugin:$mojo"
done
@sourcerebels
sourcerebels / ArgumentsParserTests.groovy
Created September 30, 2011 20:13
Kata-Args try at Runroom Coding Dojo (Agile Barcelona) 2011-09-30
import org.junit.Test
import static org.junit.Assert.*
class ArgumentsParserTests {
@Test
void shouldParseBooleanArgument() {
def parser = new ArgumentsParser("Bl")
import sourcerebels.com.Post
class BootStrap {
def fixtureLoader
def init = { servletContext ->
environments {