Skip to content
FELIPE FERREIRA

FELIPE FERREIRA

System Administrator

  • Home
    • ME
    • Hobby
      • Motogp
  • Linux
    • Amazon-AWS
    • bash
    • LinuxCommands
    • Varnish
    • Centos
    • BashScripts
    • tomcat
  • Exchange
  • ESX
  • Varnish
  • Security
  • Centreon

Tag: script

By : Felipe Ferreira06/03/201823/05/2019
HowTo, Python, script Leave a Comment on BeautifulSoup how to

BeautifulSoup how to


#get forecast for genova and rapallo for the next 3 days to http://felipeferreira.net/forecast/forecast-rapallo.html
0 */6 * * * /var/www/wordpress/forecast/forecast.py genova
0 */6 * * * /var/www/wordpress/forecast/forecast.py rapallo

There is a …

View the post
Tags: beautifulsoup, pytho, scraping, script, web
By : Felipe Ferreira21/02/201823/05/2019
bash, BashScripts, HowTo, Linux Leave a Comment on chroot mount bind

chroot mount bind


mkdir -v -p /sftp/root/${USER}/home
chown root.root /sftp/root/${USER}
mount –bind //${DIR} /sftp/root/${USER}/home
useradd -g tomcat -s /sbin/nologin ${USER}

sshd_config

Match Group tomcat
AllowTcpForwarding no
ForceCommand internal-sftp -u 0002 -d home
…

View the post
Tags: bind, chroot, Linux, mount, script
By : Felipe Ferreira08/11/201723/05/2019
HowTo, Python Leave a Comment on Deploy Weblogic bash script

Deploy Weblogic bash script

To deploy a simple ear I did:
${JAVA_BIN} -cp ${WL_JAR} weblogic.Deployer -adminurl t3://${HOST_NAME}:${HOST_PORT} -user ${HOST_USER} -password ${HOST_PASS} -targets ${SERVER} -deploy -upload ${TMP_DIR}${DEPLOYEAR} -name ${APPNAME}
But on the second script I …

View the post
Tags: bash, deploy, script, start, stop, weblogic, wlst
By : Felipe Ferreira30/03/201723/05/2019
HowTo, Linux, Security Leave a Comment on Block IP bash script

Block IP bash script

Still working hard to keep my server security locked down from attacks.

This script checks lighttpd logfile for unusual behaviour

Script to monitor and block IPs spaming in varios ways …

View the post
Tags: bash, block IPs, lighttpd, Linux, script, Server, spaming, wordpress, wp
By : Felipe Ferreira01/03/201710/07/2019
BashScripts, Centreon 2 Comments on Centreon reporting email

Centreon reporting email

I had created a Nagios Script for auto e-mailing reports.

 

There are two versions available one that just gets the current “Reporting” csv and e-mail it and another one I …

View the post
Tags: auto, bash, centreon, email, Reporting, script
By : Felipe Ferreira04/01/201713/09/2019
bash, Linux, LinuxCommands Leave a Comment on centos 7 disable useless services

centos 7 disable useless services

This some of the tuning I do on a centos 7 install REMOVE USLESS NETWORK INTERFACE brctl delbr virbr0 systemctl get-default systemctl set-default multi-user.target DISABLE USELESS SERVICESON GUI INSTALLS:…

View the post
Tags: 7, centos, disable, script, services, useless
By : Felipe Ferreira22/12/201623/05/2019
Python Leave a Comment on python nagios scrape

python nagios scrape

Wrote a script in python using beautiful soap to scrub a web page.

View the post
Tags: Nagios, pyhton, script, web

Posts navigation

1 2 … 10 Next

Recent Posts

  • AWS Solution Architect Study Guide
  • check_vmware_esx slow
  • Linux End of Life table

Categories

SEARCH

https://www.buymeacoffee.com/felipeferreira
All Right Reserve. Theme: Franchise by Moral Themes.