Skip to content

Instantly share code, notes, and snippets.

View guillehorno's full-sized avatar

Guillermo Horno guillehorno

View GitHub Profile

Keybase proof

I hereby claim:

  • I am guillehorno on github.
  • I am guillehorno (https://keybase.io/guillehorno) on keybase.
  • I have a public key whose fingerprint is AE68 2AF6 C405 EC1E 068D B259 7BD8 C72F A4FB 6B46

To claim this, I am signing this object:

@guillehorno
guillehorno / jordan_notes.md
Created June 5, 2014 03:26
Instrucciones Pfacil

Notas

Instalar PostgreSQL, PostGIS y ElasticSearch

Se necesita tener instalado ruby 1.9.3 y rubygems. Instalar Rails 3 haciendo gem install rails -v 3.2.13

Instalar Foreman gem install foreman

Con el repositorio clonado y actualizado seguir estas instrucciones

Array
(
[REDIRECT_REDIRECT_SCRIPT_URL] => /ajax_multi_upload/uploads/upload/Company___123
[REDIRECT_REDIRECT_SCRIPT_URI] => http://dev2.dropina.com/ajax_multi_upload/uploads/upload/Company___123
[REDIRECT_REDIRECT_STATUS] => 200
[REDIRECT_SCRIPT_URL] => /ajax_multi_upload/uploads/upload/Company___123
[REDIRECT_SCRIPT_URI] => http://dev2.dropina.com/ajax_multi_upload/uploads/upload/Company___123
[REDIRECT_STATUS] => 200
[SCRIPT_URL] => /ajax_multi_upload/uploads/upload/Company___123
[SCRIPT_URI] => http://dev2.dropina.com/ajax_multi_upload/uploads/upload/Company___123
@guillehorno
guillehorno / gist:3890668
Created October 15, 2012 03:23 — forked from padolsey/gist:527683
JavaScript: Detect IE
// ----------------------------------------------------------
// A short snippet for detecting versions of IE in JavaScript
// without resorting to user-agent sniffing
// ----------------------------------------------------------
// If you're not in IE (or IE version is less than 5) then:
// ie === undefined
// If you're in IE (>=5) then you can determine which version:
// ie === 7; // IE7
// Thus, to detect IE:
// if (ie) {}
@guillehorno
guillehorno / access.log
Created October 10, 2012 03:37
La debacle de PropiedadFacil....
64.76.181.134 - - [09/Oct/2012:11:49:17 -0300] "POST /app/payments/pp_notificacion/ HTTP/1.1" 500 4424 "-" "-"
64.76.181.134 - - [09/Oct/2012:11:49:17 -0300] "POST /app/payments/pp_notificacion/ HTTP/1.1" 500 4424 "-" "-"
64.76.181.134 - - [09/Oct/2012:11:49:18 -0300] "POST /app/payments/pp_notificacion/ HTTP/1.1" 500 715 "-" "-"
64.76.181.134 - - [09/Oct/2012:11:49:49 -0300] "POST /app/payments/pp_notificacion/ HTTP/1.1" 500 715 "-" "-"
64.76.181.134 - - [09/Oct/2012:11:49:49 -0300] "POST /app/payments/pp_notificacion/ HTTP/1.1" 500 715 "-" "-"
64.76.181.134 - - [09/Oct/2012:11:49:49 -0300] "POST /app/payments/pp_notificacion/ HTTP/1.1" 500 715 "-" "-"
64.76.181.134 - - [09/Oct/2012:11:49:49 -0300] "POST /app/payments/pp_notificacion/ HTTP/1.1" 500 715 "-" "-"
64.76.181.134 - - [09/Oct/2012:11:49:49 -0300] "POST /app/payments/pp_notificacion/ HTTP/1.1" 500 715 "-" "-"
96.31.66.245 - - [09/Oct/2012:11:50:20 -0300] "GET / HTTP/1.0" 200 16614 "-" "Pingdom.com_bot_version_1.4_(http://www.pingdom.com/)"
64.76.181
@guillehorno
guillehorno / punto_pagos.php
Created July 15, 2012 00:17
PuntoPagos CakePHP component
<?php
/**
* PuntoPagos Component
*
* Copyright 2012, Guillermo Horno & dvinales
*
* Licensed under The MIT License
* Redistributions of files must retain the above copyright notice.
*
* @author Guillermo Horno & dvinales
@guillehorno
guillehorno / gist:2949861
Created June 18, 2012 18:29
Proceso PHP - Notificacion PuntoPagos
<?php
//codigo de la URL a la que PuntoPagos notifica
$post_body = json_decode(file_get_contents("php://input"),true);
$headers = getallheaders();
if(empty($post_body)){ //vino vacio la notificacion
$this->log('notificacion vacia');
$this->set('rta', json_encode(array('respuesta' => 99, 'token' => '')));
}
else{
/*$this->log($post_body);
@guillehorno
guillehorno / gist:1769708
Created February 8, 2012 13:54
Tests en Cake
function testAdd(){
$result = $this->testAction($this->path.'add',array('data'=>$this->testPackage,'method'=>'post','return'=>'vars')); //aca se llama al test action
if($_SESSION['Auth']['User']['role_id']==1 || $_SESSION['Auth']['User']['role_id']==2)
$this->tAddLoggedInUser($result['cakeDebug']->data['Lrapackage']); //aca se prueban sus resultados
else
tAddPublicUser($result);
}
function tAddLoggedInUser($data){
$this->assertEqual($data['name'],$this->testPackage['Lrapackage']['name']);