Skip to content

Instantly share code, notes, and snippets.

@alexisdiel
alexisdiel / meta-tags.md
Created August 24, 2018 19:17 — forked from lancejpollard/meta-tags.md
Complete List of HTML Meta Tags

Copied from http://code.lancepollard.com/complete-list-of-html-meta-tags/

Basic HTML Meta Tags

<meta name="keywords" content="your, tags"/>
<meta name="description" content="150 words"/>
<meta name="subject" content="your website's subject">
<meta name="copyright"content="company name">
<meta name="language" content="ES">
@alexisdiel
alexisdiel / meta-tags.md
Created August 24, 2018 19:17 — forked from kevinSuttle/meta-tags.md
List of Usable HTML Meta and Link Tags

Copied from http://code.lancepollard.com/complete-list-of-html-meta-tags/

Basic HTML Meta Tags

<meta charset='UTF-8'>
<meta name='keywords' content='your, tags'>
<meta name='description' content='150 words'>
<meta name='subject' content='your website's subject'>
<meta name='copyright' content='company name'>

HTML5 Basics

This tutorial will introduce you to the basics of the HTML5 markup language, which can be used to create the content portion of your web site. We will be using HTML5 to build a basic blog.

To get started with this tutorial, all you need is a text editor and a web browser. Just about any text editor will do, as long as it can save files as plain text. On Windows, Notepad will work fine, though there are a number of free text editors that might provide a better experience. Notepad++, available online at http://notepad-plus-plus.org/ is one such editor. On the Mac, I recommend downloading a copy of TextWrangler from http://www.barebones.com/products/textwrangler.

Since we're working with HTML5 and it's a relatively new language, you will want to make sure you have a browser that supports the new features. I recommend the latest version of Chrome, Safari, or Firefox. Internet Explorer 9 should also work just fine.

Getting started

@alexisdiel
alexisdiel / getScript.js
Last active September 11, 2018 22:08
dynamic loading javascript files with javascript without jQuery (getScript)
function getScript(source, callback) {
if (Array.isArray(source))
getScript(source[0], (source.length > 1) ? () => getScript(source.slice(1), callback) : callback);
else if (!document.querySelector(`script[src="${source}"]`)) {
var el = document.createElement('script');
el.onload = callback;
el.src = source;
document.head.appendChild(el);
} else {
callback();
@alexisdiel
alexisdiel / fnHideEmptyColumns.js
Created September 25, 2018 19:28
The best way to hide empty columns, on and after, datatables initialization
$.fn.dataTableExt.oApi.fnHideEmptyColumns = function ( oSettings, tableObject )
{
/**
* This plugin hides the columns that are empty.
* If you are using datatable inside jquery tabs
* you have to add manually this piece of code
* in the tabs initialization
* $("#mytable").datatables().fnAdjustColumnSizing();
* where #mytable is the selector of table
* object pointing to this plugin.
@alexisdiel
alexisdiel / gulpfile.js
Created October 26, 2018 20:47
Gulp + Azure + CDN
// /**
// * AZURE TASKS
// * Usage? gulp azure --storageKey XXXXXXXXXX --secret XXXXXXXXX
// */
const gulp = require("gulp");
const msRestAzure = require("ms-rest-azure");
const azureCDN = require("azure-arm-cdn");
const azureStorage = require("gulp-azure-storage");
let purgeContent = (done) => {
@alexisdiel
alexisdiel / style.css
Created November 20, 2018 13:58
CSS - Removing background colour for Chrome autocomplete
@-webkit-keyframes autofill {
to {
background: inherit;
}
}
input:-webkit-autofill {
-webkit-animation-name: autofill;
-webkit-animation-fill-mode: both;
}
@alexisdiel
alexisdiel / apt-get-update-all.sh
Last active July 9, 2019 19:05
Apt-get-UPDATE-all
# cat /usr/local/bin/apt-upgrade-all.sh
# chmod +x /usr/local/bin0/apt-upgrade-all.sh
sudo apt-get update
sudo apt-get -y upgrade
sudo apt-get -y dist-upgrade
sudo apt -y autoremove
sudo apt-get clean
@alexisdiel
alexisdiel / docker & docker-compose
Created May 28, 2019 17:36 — forked from jfollmann/docker & docker-compose
Docker/Compose - Comandos Comuns
- Instalação docker:
curl -fsSL get.docker.com -o get-docker.sh
sh get-docker.sh
- Instalação docker-compose (Verificar nas referencias ultima versão¹):
sudo curl -L https://github.com/docker/compose/releases/download/1.22.0/docker-compose-$(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose
- Instalação ctop (Opcional - Verificar nas referencias ultima versão²)
sudo wget https://github.com/bcicen/ctop/releases/download/v0.7.1/ctop-0.7.1-linux-amd64 -O /usr/local/bin/ctop
sudo chmod +x /usr/local/bin/ctop
@alexisdiel
alexisdiel / letsencrypt
Created May 28, 2019 17:39 — forked from jfollmann/letsencrypt
Geração de Certificado SSL com Let's Encrypt
Geração de certificado SSL com o Let's Encrypt
#1) Instalação
sudo apt-get update
sudo apt-get install software-properties-common
sudo add-apt-repository ppa:certbot/certbot
sudo apt-get update
sudo apt-get install certbot
#2) Geração de um novo certificado