Skip to content

Instantly share code, notes, and snippets.

View ncuesta's full-sized avatar
🤓

Nahuel Cuesta Luengo ncuesta

🤓
View GitHub Profile
@ncuesta
ncuesta / apt4sf
Created November 16, 2010 18:30
Configure environment for symfony PHP framework on Ubuntu using apt
apt-get install apache2 php5 php5-mysql php5-cli php5-dev php5-xsl php-pear mysql-server mysql-client phpmyadmin subversion
@ncuesta
ncuesta / PhpDocInspector.php
Created February 5, 2011 22:16
PHPDoc blocks inspector for Symfony 2.0's components.
<?php
include_once __DIR__.'/autoload.php.dist';
/**
* PHPDoc block inspector for Symfony 2.0's classes.
* At the moment, this inspector tells which methods have missing PHPDoc blocks
* or have not been completely written (it checks the number of @param elements
* in the PHPDoc block against the number of parameters in every method).
*
@ncuesta
ncuesta / assess-security.sh
Created February 27, 2012 21:15
Assess symfony 1.X application security
#!/bin/bash
#
# assess-security.sh
#
# AUTHOR: José Nahuel Cuesta Luengo @ncuestal
#
##
# Assess the security status of a symfony 1.X application.
@ncuesta
ncuesta / dabblet.css
Created May 8, 2012 15:05
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
body {
background: #f06;
background: linear-gradient(45deg, #f06, yellow);
min-height: 100%;
}
@ncuesta
ncuesta / insist-commit.sh
Created May 9, 2012 13:15
insist-commit
#!/bin/bash
### ###
## ##
# #
# Insist on committing some changes using fast:commit #
# This script takes at least one argument: #
# + The changelist number. #
# Optionally, you may indicate the maximum number of attempts #
# desired. #
@ncuesta
ncuesta / insist-commit.php
Created May 16, 2012 17:04
insist-commit [php version]
#!/usr/bin/env php
<?php
/**
* Insist on committing some changes using fast:commit.
* This script takes at least one argument:
* + The changelist number.
* Optionally, you may indicate the maximum number of attempts desired.
*/
@ncuesta
ncuesta / index.html
Created December 1, 2012 18:57
A CodePen by douglasdeodato. Single Element Pure CSS MacBook Pro - This is just an experiment! There are certainly better ways to show an image of a MacBook, but none as fun as this :)
<i class="macbook"></i>
@ncuesta
ncuesta / index.html
Created December 2, 2012 21:10
A CodePen by douglasdeodato. Single Element Pure CSS MacBook Pro - This is just an experiment! There are certainly better ways to show an image of a MacBook, but none as fun as this :)
<i class="macbook"></i>
@ncuesta
ncuesta / index.html
Created December 2, 2012 21:11
A CodePen by douglasdeodato. Single Element Pure CSS MacBook Pro - This is just an experiment! There are certainly better ways to show an image of a MacBook, but none as fun as this :)
<i class="macbook"></i>
@ncuesta
ncuesta / rails-master
Last active December 10, 2015 10:39
Short script to keep an updated local copy of Ruby on Rails master branch and run commands using that version rather than a global stable version of the framework.
#!/bin/bash
# Keep an updated local copy of Ruby on Rails
# and use it to run commands, rather than the
# version you might have installed as a gem
# on your system
#
# @author ncuesta
# Customize this with your own fork