This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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) + | |
"/" + |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var myArray = [[1, 2],[3, 4, 5], [6, 7, 8, 9]]; | |
var flatArray = [].concat.apply([], myArray); | |
console.log(flatArray); |