Skip to content

Instantly share code, notes, and snippets.

View ncuesta's full-sized avatar
🤓

Nahuel Cuesta Luengo ncuesta

🤓
View GitHub Profile
@paigeruten
paigeruten / phi.php
Created August 30, 2009 08:34
look up php function synopses from the command line
#!/usr/bin/php
<?php
// v v
// \\O//
$RED = 31;
$GREEN = 32;
$BLUE = 34;
$MAGENTA = 35;
$CYAN = 36;
@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).
*
@alganet
alganet / cli.md
Created February 14, 2012 18:20
Respect\Cli

Respect\Cli

A tool for interacting with PHP code from the command line. It is intended to be used alongside Respect\Config.

Main Actions

Usage: [action] [config] [command]

@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.
@jrochkind
jrochkind / gist:2161449
Created March 22, 2012 18:40
A Capistrano Rails Guide

A Capistrano Rails Guide

by Jonathan Rochkind, http://bibwild.wordpress.com

why cap?

Capistrano automates pushing out a new version of your application to a deployment location.

I've been writing and deploying Rails apps for a while, but I avoided using Capistrano until recently. I've got a pretty simple one-host deployment, and even though everyone said Capistrano was great, every time I tried to get started I just got snowed under not being able to figure out exactly what I wanted to do, and figured I wasn't having that much trouble doing it "manually".

@erikh
erikh / hack.sh
Created March 31, 2012 07:02 — forked from DAddYE/hack.sh
OSX For Hackers
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh
#
@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.
*/
@jedschneider
jedschneider / gh-pages-tips.md
Created June 7, 2012 17:59
github pages tips for jekyll wiki

Working With Github Pages

The FAQ maintained by Github covers most stumbling blocks, some other tips and tricks supplied here.

Gitignore

Add _site to .gitignore. The generated site should not be uploaded to Github since its gets generated by github.

Working With Code Partials