sudo apt-get update
sudo apt install vsftpd
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
<invoice id="1234"> | |
<customer name="John Doe" taxID="123456789" /> | |
<total currency="USD" symbol="$" symbolOnRight="false">100.00</total> | |
</invoice> |
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
{ | |
"id": "1234", | |
"customer": { | |
"name": "John Doe", | |
"taxID": "123456789" | |
}, | |
"total": { | |
"amount": 100.00, | |
"currency": "USD", | |
"currency-symbol": "$", |
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
{ | |
"id": "1234", | |
"customer": { | |
"name": "John Doe", | |
"taxID": "123456789" | |
}, | |
"total": { | |
"amount": 100.00, | |
"currency": { | |
"name": "USD", |
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
<invoice id="1234"> | |
<customer name="John Doe" taxID="123456789" /> | |
<total currency="USD">100.00</total> | |
… | |
</invoice> |
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
{ | |
"id": "1234", | |
"customer": { | |
"name": "John Doe", | |
"taxID": "123456789" | |
}, | |
"total": { | |
"amount": 100.00, | |
"currency": "USD" | |
} |
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
class LinkedList { | |
constructor(){ | |
this.head = null; | |
} | |
removeNode(index2Remove) { | |
if(index2Remove == 0){ | |
this.head = this.head.next; | |
return |
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
/** | |
* @param {number[]} nums | |
* @param {number} target | |
* @return {number[]} | |
*/ | |
var twoSum = function(nums, target) { | |
for(var i = 0; i < nums.length; i++){ | |
var n = nums[i] | |
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
<?php | |
class Solution { | |
/** | |
* @param String $s | |
* @return Boolean | |
*/ | |
function isPalindrome($s) { | |
if(! isset($s)) return false; |
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
/** | |
* Author: Alex Otano | |
* This is a implementation of how to get parameters from the CLI when running a nodejs script. | |
* In this case "node-arguments.js --user=myuser --pass=secretPassword" and the script will read them. | |
*/ | |
console.log('---------------------'); | |
let pass = '' | |
let user = '' | |
console.log('process.argv',process.argv) |