This file contains hidden or 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
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>Javascript</title> | |
| </head> | |
| <body id="body"> |
This file contains hidden or 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
| #!/bin/sh | |
| #eth0 es la interfaz de cara a internet | |
| EXTIF="eth0" | |
| EXTIP="190.26.2.2" # impsat | |
| #eth1 es la interfaz de cara a la LAN | |
| INTIF="eth2" | |
| INTNET="172.21.10/24" | |
| INTIP="172.21.10.1" |
This file contains hidden or 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
| all types console´s | |
| console.log('hola'); | |
| console.err('data'); | |
| console.warn('data'); | |
| console.dir('escribe'); | |
| console.time('time'); | |
| console.trace('trace error'); |
This file contains hidden or 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
| "use strict"; | |
| //Basic Nodejs | |
| const fs = require('fs'); | |
| const actuality = __dirname; | |
| const actualityFile = __filename; | |
| //Basic nodejs __dirname => en que carpeta estoy parado | |
| console.log('Estoy parado en esta ruta: ' +actuality); | |
| console.log('Estoy parado en esta ruta mas el archivo que ejecute: ' + actualityFile); |
This file contains hidden or 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 r = require('rethinkdb'); | |
| r.connect({ host: 'localhost', port: 28015 }, function(err, conn) { | |
| if (err) { | |
| return err; | |
| } else { | |
| r.db('usuarios').table('paises') | |
| .insert({ | |
| 'name': 'Edinson', |
This file contains hidden or 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
| //Import to module database RethinkDB | |
| var r = require('rethinkdb'); | |
| r.connect({ host: 'localhost', port: 28015 }, function(err, conn) { | |
| if (err) { | |
| return err; | |
| } else { | |
| /*r.db('usuarios').tableCreate('paises').run(conn, function(err, res){ | |
| if(err) throw err; |
This file contains hidden or 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 fs = require('fs'); | |
| fs.link('hola.txt', 'v/demosito.txt', function(success){ | |
| if(success !== success){ | |
| return new err; | |
| } else { | |
| console.log('se movio a la carpeta') | |
| } |
This file contains hidden or 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
| https://dashboard.stripe.com/account/apikeys |
This file contains hidden or 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
| git clean -d -fx "" |
This file contains hidden or 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
| //Import file system | |
| var fs = require('fs'); | |
| //Tree params | 1. string o buffer, 2. mode Integer, 3 callback | |
| fs.mkdir('edifolder', 1, function(){ | |
| console.log('se creo un folder'); | |
| }); | |
| //Other form sync |