Sign in

Bash scripting is an art form

Bash scripting with Shellcheck VS Code extension

1. Error-Proof Your Variables

export somedir="/home/user/somedir"



#!/bin/bashuser="vincentvega"
password="royalewithcheese"
lftp sftp://$user:$password@sftp.host.com -e "put file1;bye"

vsftpd



  • setup Elasticsearch stack (ELK stack) on a server,
  • install Metricbeat, Filebeat and Auditbeat agents on an endpoint
  • install Elastalert plugin that will alert you on events


  • netcat — great tool that can do basic telnet test and open…

Portela samba school, RJ Brasil
while true ; do nc -l -p 8300 -c 'echo -e "HTTP/1.1 200 OK\n\ $(date)"' ; done
python -m SimpleHTTPServer 8330
python  -c 'import BaseHTTPServer as bhs, SimpleHTTPServer as shs;  bhs.HTTPServer(("192.168.20.10", …

Full guide here:


  1. create an internal corporate CA
  2. deploy CA certificate to employee’s desktops and browsers
  3. generate new certificate and keys for internal websites
  4. configure a website (Apache) to use these internal certs and keys

Mike R

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store