(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| 'use strict'; | |
| // @deprecade | |
| const http = require('http'); | |
| const cpf = process.argv[2]; | |
| const parse = JSON.parse; | |
| const log = console.log; | |
| const url = `http://dabsistemas.saude.gov.br/sistemas/sadab/js/buscar_cpf_dbpessoa.json.php?cpf=${cpf}`; | |
| http.get(url, res => { |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Mirror Fashion</title> | |
| <meta charset="utf-8" /> | |
| <link rel="stylesheet" href="css/reset.css" /> | |
| <style> | |
| .menu-opcoes li { | |
| display: inline; |
| cat /usr/share/grafana/grafana-backup.sh | |
| #!/bin/bash | |
| DB="/var/lib/grafana/grafana.db" | |
| BACKUP="/data/backup/grafana/grafana.db-$(date +%Y%m%d).bck" | |
| SQLITE=/usr/bin/sqlite3 | |
| ZIP=/bin/gzip | |
| ${SQLITE} ${DB} ".backup ${BACKUP}" | |
| ${ZIP} ${BACKUP} |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.