Skip to content

Instantly share code, notes, and snippets.

View ncuesta's full-sized avatar
🤓

Nahuel Cuesta Luengo ncuesta

🤓
View GitHub Profile
anonymous
anonymous / config.json
Created November 14, 2014 15:45
Bootstrap Customizer Config
{
"vars": {
"@gray-base": "#000",
"@gray-darker": "lighten(@gray-base, 13.5%)",
"@gray-dark": "lighten(@gray-base, 20%)",
"@gray": "lighten(@gray-base, 33.5%)",
"@gray-light": "lighten(@gray-base, 46.7%)",
"@gray-lighter": "lighten(@gray-base, 93.5%)",
"@brand-primary": "darken(#428bca, 6.5%)",
"@brand-success": "#5cb85c",
@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.
@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 / 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
@ncuesta
ncuesta / curl.rb
Last active December 18, 2017 20:21
#!/usr/bin/env ruby
# Implementación sencilla de un clon de cURL para utilizar en el examen.
# El script debe invocarse como un ejecutable (deberás darle permisos
# de ejecución con `chmod +x curl.rb`) y espera recibir los siguientes
# argumentos:
# - La URL a la cual realizar la petición
# - El método http a utilizar (opcional), que puede ser GET, POST o
# DELETE (si se omite se considera GET).
# - El cuerpo de la petición a realizar (opcional, sólo aplica en caso
@ncuesta
ncuesta / ncuesta.zsh-theme
Last active July 16, 2018 12:34
Personal theme for zsh prompts
# vim:ft=zsh ts=2 sw=2 sts=2
# Original theme taken from https://github.com/jackharrisonsherlock/common - all credit goes to @jackharrisonsherlock
# Just copied this to further customize it.
# Prompt symbol
COMMON_PROMPT_SYMBOL="❯"
# Left Prompt
PROMPT='$(common_host)$(common_current_dir)$(common_rb_version)$(common_return_status)'