Skip to content

Instantly share code, notes, and snippets.

@rumpmx
rumpmx / error.php
Last active April 19, 2018 18:30
Pag error 404 en Joomla
<!-- Modificar el archivo error.php de la plantilla usada por estas líneas o solo reeemplazar el inicio del código -->
<?php
/**
* @package Joomla.Site
* @subpackage Template.system
*
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
rm -f ./.git/index.lock
…or create a new repository on the command line
echo "# xb3" >> README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin https://github.com/rumpmx/xb3.git
git push -u origin master
…or push an existing repository from the command line
@rumpmx
rumpmx / git-logout
Last active March 6, 2018 18:24 — forked from bas-ie/git-logout
Deslogearse en la consola Git Bash
#!/bin/bash
# Logout current GitHub credentials and remove global user.name, user.email
echo -e "host=github.com\nprotocol=https\n" | git credential-osxkeychain erase
git config --unset-all --global user.name
git config --unset-all --global user.email
#Confirm
git config --global user.email
git config --global user.name
@rumpmx
rumpmx / whatsapp.md
Last active April 18, 2019 17:55
Enlaces para WhatsApp en Web

Cómo poner un enlace web para WhatsAPP

En cualquier caso son 12 dígitos incluído el código del país

Crear enlace de un número de WhatsApp

https://api.whatsapp.com/send?phone=34123456789

Crear enlace de un número de WhatsApp junto a un mensaje

https://api.whatsapp.com/send?phone=34123456789&text=hola,%20qué%20tal?

Crear enlace de un mensaje de WhatsApp

https://api.whatsapp.com/send?text=hola,%20qué%20tal?

Link en HTML

@rumpmx
rumpmx / HTML5
Last active September 2, 2017 20:22
Cabeceras Favicon Completas
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="64x64" href="/favicon-32x32.png">
<link rel="apple-touch-icon" href="/apple-touch-icon.png" />
<link rel="apple-touch-icon" sizes="57x57" href="/apple-touch-icon-57x57.png">
<link rel="apple-touch-icon" sizes="60x60" href="/apple-touch-icon-60x60.png">
<link rel="apple-touch-icon" sizes="72x72" href="/apple-touch-icon-72x72.png">
<link rel="apple-touch-icon" sizes="76x76" href="/apple-touch-icon-76x76.png">
<link rel="apple-touch-icon" sizes="114x114" href="/apple-touch-icon-114x114.png">
<link rel="apple-touch-icon" sizes="120x120" href="/apple-touch-icon-120x120.png">
@rumpmx
rumpmx / HTML5
Created July 30, 2017 23:25
Cabecera de Favicons Básico
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="64x64" href="/favicon-32x32.png">
<link rel="apple-touch-icon" href="/apple-touch-icon.png" />
<link rel="apple-touch-icon" sizes="57x57" href="/apple-touch-icon-57x57.png" />
<link rel="apple-touch-icon" sizes="72x72" href="/apple-touch-icon-72x72.png" />
<link rel="apple-touch-icon" sizes="76x76" href="/apple-touch-icon-76x76.png" />
<link rel="apple-touch-icon" sizes="114x114" href="/apple-touch-icon-114x114.png" />
<link rel="apple-touch-icon" sizes="120x120" href="/apple-touch-icon-120x120.png" />
<link rel="apple-touch-icon" sizes="144x144" href="/apple-touch-icon-144x144.png" />
@rumpmx
rumpmx / og:image-linea.txt
Created July 10, 2017 18:18
Esconder imagen para que funcione como og:image
<p style="display: none;"><img src="images/og/eb-radio-og-01.jpg" style="display: none;" width="0" height="0" /></p>
@rumpmx
rumpmx / anuncios-random.html
Created June 29, 2017 17:12
Despliega anuncios HTML en manera random técnica if-else
<!--
Diseñado para incluir en un widget HTML/JS de Blogger
se introduce completo tal cual.
Originalmente está diseñado para imágenes con un link pero puede desplegar cualquier código HTML
-->
<script language="javascript" type="text/javascript">
function randRange(lowVal,highVal) {
return Math.floor(Math.random()*(highVal-lowVal+1))+lowVal;
}
</script>
@rumpmx
rumpmx / og:image.txt
Last active September 2, 2017 20:23
og:image en Blogger
<b:if cond='data:blog.postImageThumbnailUrl'>
<meta expr:content='data:blog.postImageThumbnailUrl' property='og:image'/>
<b:else/>
<meta content='http://www.logo-de-tu-blog.jpg' property='og:image'/>
</b:if>