Skip to content

Instantly share code, notes, and snippets.

View jlaso's full-sized avatar

joseluis laso jlaso

  • Spain
View GitHub Profile
#############################################
# Push de la rama actual
git push origin $rama_actual
#############################################
# Volver a un commit anterior, descartando los cambios
git reset --HARD $SHA1
#############################################
# Ver y descargar Ramas remotas
@jlaso
jlaso / project_sf2.conf
Created March 7, 2014 14:15
symfony2 apache virtualhost configuration
<VirtualHost *:80>
ServerName project-sf2.dev
ServerAlias www.project-sf2.dev
DirectoryIndex app.php
DocumentRoot "~/projects/project-sf2.dev/web"
ErrorLog "~/logs/project-sf2_error.log"
CustomLog "~/logs/project-sf2_access.log" common
<Directory "~/projects/project-sf2.dev/web">
Options Indexes FollowSymLinks
AllowOverride None
@jlaso
jlaso / .git-completion.sh
Last active December 29, 2015 00:39
my helpers in mac terminal
#!bash
#
# bash completion support for core Git.
#
# Copyright (C) 2006,2007 Shawn O. Pearce <spearce@spearce.org>
# Conceptually based on gitcompletion (http://gitweb.hawaga.org.uk/).
# Distributed under the GNU General Public License, version 2.0.
#
# The contained completion routines provide support for completing:
#
use Symfony\Component\HttpKernel\Kernel;
use Symfony\Component\Config\Loader\LoaderInterface;
use Doctrine\Common\Inflector\Inflector;
class AppKernel extends Kernel
{
public function __construct($environment, $debug)
{
Inflector::rules('singular', [
'/(d|n|r|s)es$/i' => '\1\2',