Skip to content

Instantly share code, notes, and snippets.

eamexicano / clip-checkout-fix-aspero-bug.css
Created December 1, 2022 23:26
Corrección para visualizar el logo de Clip Checkout que se ocultó con el tema Aspero
View clip-checkout-fix-aspero-bug.css
Corrección para visualizar el logo de Clip Checkout que se ocultó con el tema Aspero
li.payment_method_clip_payment_gateway label {
width: 100%;
eamexicano / demo.sql
Created May 15, 2020 05:31
View demo.sql
USE `demo`;
# Dump of table categorias
# ------------------------------------------------------------
DROP TABLE IF EXISTS `categorias`;
CREATE TABLE `categorias` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
View gist:c1d4e8bb2f5244f6cbb7f38fb34a2abe
<!DOCTYPE html
<meta charset="utf-8">
// Abrir conexión
$conexion = new mysqli("localhost", "root", "", "tutoriales");
eamexicano /
Created May 14, 2016 01:22
Copiar un directorio de manera recursiva con wget
wget -r --user="" --password="password" ftp://domain.tld/
eamexicano / mysql2xls.php
Last active March 2, 2016 19:03
Exporta los datos de MySQL a XLS incluyendo el nombre de los campos
View mysql2xls.php
* The MIT License (MIT)
* Copyright (c) 2016 Emmanuel Ayala Mexicano @eamexicano
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
eamexicano / data-obj.html
Created June 9, 2015 15:26
Atributos data - Objetos
View data-obj.html
Utilizar atributos data para almacenar contenido
<!DOCTYPE html>
<meta charset="utf-8">
eamexicano / ejercicios.html
Last active August 29, 2015 14:07
Cargar scripts de distintas carpetas y ejecutarlos al momento.
View ejercicios.html
<!DOCTYPE html>
<meta charset='utf-8'>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="estilo.css" type="text/css">
<h2>Ejercicios disponibles</h2>
eamexicano / tutoriales.sql
Created September 18, 2014 02:26
Base de datos para los ejercicios del curso MySQL y PHPMySQL
View tutoriales.sql
-- BD Tutoriales
SET time_zone = "+00:00";
/*!40101 SET NAMES utf8 */;
eamexicano /
Created November 22, 2013 05:57
Remove carriage return from windows file and create new file. Exclude some files (from a directory) and concatenate into a one big file.
# Remove carriage return from windows file <CR> and createa a new file
tr -d '\015' < windows_file > another_file
# Exclude some files prior concatenation
ls | sort | grep -v -E "(file1|file2|...|fileN)" | xargs cat > large_file
eamexicano / template.css
Created November 7, 2013 16:39
CSS rules for template.html - To be used as a remote repository.
View template.css
body { background: #f2f2f2; margin: 0 auto; font-family: 'helvetica neue', helvetica, sans-serif; font-size: 1em; padding: 1em; color: #151515;}
h1, h2, h3, h4, h5, h6 {font-family: georgia, "times new roman", times, serif;}
header {text-align: left;}
section { }
footer {text-align: right; margin: 1em 0;}