Skip to content

Instantly share code, notes, and snippets.

View mateo2181's full-sized avatar

Mateo mateo2181

  • Argentina
View GitHub Profile
- sudo apt update && sudo apt install apache2
Config firewall to allow ssh connections:
- sudo ufw allow OpenSSH
- sudo ufw allow in "Apache Full"
- sudo ufw enable
Install Mysql:
- sudo apt update && sudo apt install mysql-server
- sudo mysql_secure_installation
@mateo2181
mateo2181 / exportExcel.js
Last active November 29, 2018 21:26
VueJs - Mixin export html table to csv
// table parameter in export METHOD should be a selector to get the table.
var exportToExcel = {
methods: {
export(table) {
let date = new Date();
let outputFile =
date.getDate() +
"/" +
(date.getMonth() + 1) +
"/" +
@mateo2181
mateo2181 / index.js
Created July 14, 2017 14:05
Flat Array Javascript
var myArray = [[1, 2],[3, 4, 5], [6, 7, 8, 9]];
var flatArray = [].concat.apply([], myArray);
console.log(flatArray);