Skip to content

Instantly share code, notes, and snippets.

View vivirenremoto's full-sized avatar
🍗

vivirenremoto vivirenremoto

🍗
View GitHub Profile
Utilizamos cookies propias y de terceros para analizar nuestros servicios y mostrarte publicidad personalizada con base en un perfil elaborado a partir de tus hábitos de navegación. Puedes aceptar todas las cookies pulsando el botón "Aceptar" o rechazar su uso haciendo aquí. Para más información, consulta nuestra <span onclick="window.open('https://www.tarotfiable.tel/informacion-legal/#politica-cookies')" style="cursor:pointer;color:#fff;">Politica de Cookies</span>
@vivirenremoto
vivirenremoto / gist:cae4fd8a0ca3452c11e6cf4ec7458704
Created August 17, 2020 14:34
canonical prestashop un idioma
//poner en header.tpl antes de </head>
{if $page_name == 'product'}
<link rel="canonical" href="{$link->getProductLink($smarty.get.id_product, null, null, null, $id_lang, null, 0, false)}" />
{/if}
FullScreenMario by JoshuaKGoldberg
http://www.uta.edu/utari/acs/ASL_site/Homepage/Misc/Mario/index.html
handtrack.js by Victor Dibia
https://github.com/victordibia/handtrack.js/
Gesture controls integration to Mario game by Miquel Camps @vivirenremoto
Disclaimer
Mario, Super Mario Brothers, and all associated games and media are property of Nintendo and/or Nintendo of America Inc., and are protected by United States and international copyright, trademark and other intellectual property laws.
@vivirenremoto
vivirenremoto / autologin.php
Created August 13, 2020 17:53
autologin wordpress
<?php
require('wp-blog-header.php');
$user_login = 'admin';
$user = get_userdatabylogin($user_login);
$user_id = $user->ID;
wp_set_current_user($user_id, $user_login);
wp_set_auth_cookie($user_id);
do_action('wp_login', $user_login);
@vivirenremoto
vivirenremoto / gist:30d06ea0b036a23a8dafcbc1e2139c8f
Created August 13, 2020 17:44
custom domain localhost wordpress
define('WP_HOME', 'https://test.test/');
define('WP_SITEURL', 'https://test.test/');
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
@vivirenremoto
vivirenremoto / gist:24660affffe2f6956066e8b70bf7ef17
Created August 13, 2020 17:40
desactivar sitemap wordpresss
add_filter('wp_sitemaps_enabled', '__return_false');
@media only screen and (min-width: 480px){
.products .product img{height:556px !important;}
}
@vivirenremoto
vivirenremoto / gist:4cc80a47eb3d35c0bafa44982d431d98
Created August 12, 2020 10:38
yost set canonical url only posts
/* seo canonical problem */
function yoast_seo_canonical_change_post( $canonical ) {
if ( !is_single() ) {
return $canonical;
}
global $post;
return get_permalink($post);
}
add_filter( 'wpseo_canonical', 'yoast_seo_canonical_change_post', 10, 1 );
// añadir marca de agua en las imagenes pendientes al guardar un post
function post_after_update($post_id)
{
file_get_contents(site_url('/watermark.php'));
}
add_action('save_post', 'post_after_update');