Archivo del Autor: carlosap

fail2ban Centos 7 with firewalld

How to install Fail2Ban on CentOS 7 On this page Installing Fail2Ban Configure settings for Fail2Ban Add a jail file to protect SSH. Running Fail2Ban service Tracking Failed login entries Checking the banned IPs by Fail2Ban Check the Fal2Ban Status Unbanning an IP address Most Linux servers offer an SSH login via Port 22 for… Leer más »

firewalld centos 7 firewall

firewall-cmd –get-default-zone firewall-cmd –get-services sudo firewall-cmd –zone=public –permanent –add-service=http sudo firewall-cmd –zone=public –permanent –add-service=https sudo firewall-cmd –zone=public –permanent –add-service=samba sudo firewall-cmd –permanent –zone=public –add-port=3838/tcp sudo firewall-cmd –permanent –zone=public –add-port=8787/tcp sudo firewall-cmd –reload

How to Set Up Shiny Server nginx

An older version of this article was written by Dean Attali. Introduction While many people primarily turn to the open-source programming language R for statistical and graphics applications, Shiny is an R package that allows you to convert your R code into interactive webpages. And when combined with Shiny Server — available in both a… Leer más »

How to Install Shiny Server on CentOS 7

Shiny Server is a web server program specifically designed to host R-powered Shiny apps. With Shiny Server, you can easily host various R-powered apps without getting HTML, CSS, JavaScript or other stuff involved. This article will guide you through the process of installing Shiny Server on a CentOS 7. Prerequisites A VM Running CentOS 7… Leer más »

Python script to convert DBF database file to CSV

First download dbfpy: http://sourceforge.net/projects/dbfpy/files/latest/download?source=files Then install: sudo python setup.py install To convert DBF file to CSV: ./dbf2csv database.dbf #!/usr/bin/python import csv from dbfpy import dbf import os import sys filename = sys.argv[1] if filename.endswith(‘.dbf’): print «Converting %s to csv» % filename csv_fn = filename[:-4]+ «.csv» with open(csv_fn,’wb’) as csvfile: in_db = dbf.Dbf(filename) out_csv = csv.writer(csvfile)… Leer más »

csvkit 0.9.0 (beta)

https://csvkit.readthedocs.io/en/0.9.0/   About csvkit is a suite of utilities for converting to and working with CSV, the king of tabular file formats. It is inspired by pdftk, gdal and the original csvcut utility by Joe Germuska and Aaron Bycoffe.   Input in2csv sql2csv Processing csvclean csvcut csvgrep csvjoin csvsort csvstack Output (and Analysis) csvformat csvjson… Leer más »

How To Back Up, Restore, and Migrate a MongoDB Database

PostedApril 15, 2016 91.2k views MongoDB Backups Ubuntu MongoDB is one of the most popular NoSQL database engines. It is famous for being scalable, powerful, reliable and easy to use. In this article we’ll show you how to back up, restore, and migrate your MongoDB databases. Importing and exporting a database means dealing with data… Leer más »