This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if(!isset($_SERVER['HTTPS'])){ | |
$port = 80; | |
$protocol = 'http'; | |
}else{ | |
$port = 443; | |
$protocol = 'https'; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 10.0.1.1 (10.0.1.1) 0.340 ms 0.156 ms 0.140 ms | |
2 reverso.190.215.128.operaciones.gtdinternet.com (190.215.128.1) 34.644 ms 44.184 ms 31.231 ms | |
3 190.196.124.153 (190.196.124.153) 38.119 ms 41.142 ms 43.004 ms | |
4 ci1.te1-2.v219.cn1.gtdinternet.com (190.196.125.29) 37.911 ms 43.716 ms 44.738 ms | |
5 tengigabitethernet9-3.ar3.scl1.gblx.net (64.209.88.25) 44.038 ms 46.435 ms 39.566 ms | |
6 64.208.27.190 (64.208.27.190) 166.688 ms 171.863 ms 176.721 ms | |
7 ae-5.r04.lsanca03.us.bb.gin.ntt.net (129.250.2.220) 179.205 ms 179.298 ms 183.230 ms | |
8 ae-0.gtt.lsanca03.us.bb.gin.ntt.net (198.173.172.6) 216.907 ms 205.152 ms * | |
9 ae1-80g.cr1.lax1.us.nlayer.net (69.31.127.129) 200.698 ms | |
ae0-50g.cr1.lax2.us.nlayer.net (69.31.124.84) 214.628 ms |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bash-3.2$ cd ~ | |
bash-3.2$ brew unlink freetype | |
Unlinking /usr/local/Cellar/freetype/2.5.1... 0 links removed | |
bash-3.2$ brew unpin freetype | |
Warning: freetype not pinned | |
bash-3.2$ brew rm freetype | |
Uninstalling /usr/local/Cellar/freetype/2.5.1... | |
bash-3.2$ cd /usr/local/Cellar/freetype/ | |
bash-3.2$ ls -al | |
total 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function validarRut($rut){ | |
$rut = $rut['id_number']; | |
$temp = explode('-',$rut); | |
$digito_v = $temp[1]; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function sanitizarRut($rut){ | |
$temp = explode('-',$rut); | |
if (!isset($temp[1]) || $temp[1] == ''){ | |
$temp[0] = substr($rut,0,strlen($rut)-1); | |
$temp[1] = substr($rut,strlen($rut)-1); | |
} | |
$digito_v = $temp[1]; | |
$digito_v = ($digito_v=='k')?'K':$digito_v; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
less.watch(); | |
less.optimization = 0; | |
jQuery(document).ready(function(){ | |
cache = null; | |
less.watchTimer = setInterval(function () { | |
if (less.watchMode) { | |
console.log('Forcing Compile'); | |
less.refresh(true); | |
} | |
}, less.poll); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RewriteEngine On | |
RewriteBase / | |
RewriteCond %{HTTP_HOST} !^www.halles\.cl$ [NC] | |
RewriteRule ^(.*)$ http://www.halles.cl/ [R=301,L] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_action( 'admin_init', 'iworks_dtl' ); | |
function iworks_dtl(){ | |
global $wpdb; | |
$query = 'SELECT ID FROM '.$wpdb->posts.' WHERE LENGTH(post_content) < 800 AND post_type = "post" AND post_status = "publish"'; | |
$data = $wpdb->get_results( $query ); | |
foreach( $data as $one ) { | |
wp_delete_post( $one->ID, true ); |