Skip to content

Instantly share code, notes, and snippets.

View cviniciussn's full-sized avatar
🏠
Working from home

Vinicius cviniciussn

🏠
Working from home
  • Buzzmonitor
  • Salvador, Bahia, Brasil
  • 10:49 (UTC -03:00)
View GitHub Profile

Oh my zsh.

Oh My Zsh

Install ZSH.

sudo apt install zsh-autosuggestions zsh-syntax-highlighting zsh

Install Oh my ZSH.

{
"requests": [
{
"image": {
"content": "/9j/4AAQSkZJRgABAQAASABIAAD/2wBDAAQEBAQEBAcEBAcKBwcHCg0KCgoKDRANDQ0NDRAUEBAQEBAQFBQUFBQUFBQYGBgYGBgcHBwcHB8fHx8fHx8fHx//2wBDAQUFBQgHCA4HBw4gFhIWICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICD/wgARCAM0A14DASIAAhEBAxEB/8QAHAAAAgMBAQEBAAAAAAAAAAAAAAIBAwQFBgcI/8QAGQEBAQEBAQEAAAAAAAAAAAAAAAECAwQF/9oADAMBAAIQAxAAAAH5kBIEgPXI9bQQAAAAAAAAWV2AAAAAAAAAABEwTMSQBaASAAAAAExJIFoAESAs2FT2LJDqwAAAAAAAAAAAACDzBnSsrayAAAAAAAACspYrKS8TmjgIOpACitWIQZizVGgBqTBJEkDREkAUTExBMBMSA4I4AAAAAAAAAABEwzMzDUAKAWAAAAAEwDAKEgSPIjgAFAAAQAKAXACTTitkATIBsAXQBAAoAgAAFAAAQKwPTZXk9lAupc8lxnU0rkC9MwWLnrk0RRFu8DcJiZWUgAACSJHRBwQlgAAAAAAIFBhQaUcAAAzkAaCZVSwSssCsdAJgAkcBZBhRhQDRWDICVRgQAQAVxXWCRFGBGkIVwrHTUAsSsmAFglkMpICWQWWrEmspV0WtLloFtVKywyoakrQuKQeFhOzMTqgQhMATASQFhEgARIAAoAgAAAAAABEgSEK7ZIzCxIAAgAojiQlgI4QEsyS8OiSxag6kDrETM5KSERYFcutkyjVJASQtNKNmyQai1gD0DNsUOWJWkXxRFXrULaVKXGaIuXPNW1VwlsVot9aBCkDRBIAboCncGM1RlUCIJAICyxINZeYFkBAAAAAAAAAAB5kWZKgCAHz
import { Dbf } from 'dbf-reader';
import { Column, DataTable } from 'dbf-reader/models/dbf-file';
import * as fs from 'fs';
let buffer:Buffer = fs.readFileSync('/home/vini-ubnt/Documentos/HNSA/FUSMA.dbf')
let datatable:DataTable = Dbf.read(buffer)
if(datatable){
datatable.rows.forEach((row: any) => {
datatable.columns.forEach((collum: Column) => {
console.log(row[collum.name])