Skip to content

Instantly share code, notes, and snippets.

View felipelavinz's full-sized avatar

Felipe Lavín Z. felipelavinz

View GitHub Profile
@felipelavinz
felipelavinz / global--restrictions.conf
Created August 3, 2017 16:59
Configuraciones nginx para WordPress
# Global restrictions configuration file.
# Designed to be included in any server {} block.</p>
location = /favicon.ico {
log_not_found off;
access_log off;
}
location = /robots.txt {
allow all;
log_not_found off;
<?php
$config = array(
/* This is the name of this authentication source, and will be used to access it later. */
'udd-sp' => array(
'saml:SP',
'privatekey' => 'saml.pem',
'certificate' => 'saml.crt',
'idp' => 'http://auth.udd.cl/www/saml2/idp/metadata.php',
'entityID' => 'icono.sitios.udd.cl',
[lista_personas cat="20321" show_photos="1"]
[persona_categoria cat="22645" show_photos="1"]
[lista_personas cat="5128" show_photos="1"]
[persona_categoria cat="20299" show_photos="1"]
[persona_categoria cat="20307" show_photos="1"]
@felipelavinz
felipelavinz / .gitlab-ci.yml
Last active January 27, 2017 13:06
PHP Syntax check
image: ubuntu:12.04
before_script:
- apt-get update
- apt-get install -y php5-cli
test:
script:
- php syntax-check.php

Keybase proof

I hereby claim:

  • I am felipelavinz on github.
  • I am felipelavinz (https://keybase.io/felipelavinz) on keybase.
  • I have a public key ASDUui-b95uM2P4g76DWtjD9HZKt_oRXiE7ffHksP_CHqQo

To claim this, I am signing this object:

RESULTADOS:
+------------------------------------------+----------+------------------------------------------------------------------------+
| Query | Posición | URL |
+------------------------------------------+----------+------------------------------------------------------------------------+
| rentabilidad | | |
| comisiones | 19 | http://www.safp.cl/portal/institucional/578/w3-propertyvalue-6439.html |
| pensiones | 1 | http://www.safp.cl/ |
| afiliacion | 1 | http://www.safp.cl/apps/certificados/formConsultaAfiliacion.php |
| cuál es mi afp | |
@felipelavinz
felipelavinz / gist:dcc5b70b9cfd641c1956765b5f3c811f
Created July 11, 2016 22:12
range query elasticsearch (uri)
_search?q=dtstart:["2016-07-11 00:00:00" TO "*"]&sort=dtstart:asc
<?php
/**
* Esto puede ser parte del archivo functions.php de tu tema
*/
add_action('wp_enqueue_scripts', 'custom_enqueue_scripts');
function custom_enqueue_scripts(){
// encolar el script
@felipelavinz
felipelavinz / cache-ajax-localstorage.html
Last active August 29, 2015 14:21
Caché de respuestas AJAX utilizando Promesas y LocalStorage
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8"/>
<title>Prueba caché AJAX con Promises y LocalStorage</title>
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css">
</head>
<body>
<div class="container">
<div class="row">
@felipelavinz
felipelavinz / _layout.ejs
Created December 30, 2014 00:08
Plantilla básica para exportar wiki a HTML
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8">
<title>Documentación de mi proyecto</title>
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css">
</head>
<body>
<div class="container">
<%- yield %>