Metadata-Version: 2.1
Name: pybashutils
Version: 0.6.2
Summary: Cross-platform utilities for computer maintenance
Home-page: https://github.com/scivison/pybashutils
Author: Michael Hirsch, Ph.D.
License: UNKNOWN
Keywords: bash,networking,cmake
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: Console
Classifier: Intended Audience :: Information Technology
Classifier: Intended Audience :: System Administrators
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Topic :: System :: Networking
Classifier: Topic :: Utilities
Requires-Python: >= 3.6
Description-Content-Type: text/markdown
Provides-Extra: io
Provides-Extra: tests
Requires-Dist: colorama
Requires-Dist: binaryornot
Provides-Extra: io
Requires-Dist: pycurl; extra == 'io'
Provides-Extra: tests
Requires-Dist: pytest; extra == 'tests'
Requires-Dist: pytest-cov; extra == 'tests'
Requires-Dist: coveralls; extra == 'tests'
Requires-Dist: flake8; extra == 'tests'
Requires-Dist: mypy; extra == 'tests'

[![Zenodo](https://zenodo.org/badge/DOI/10.5281/zenodo.1252220.svg)](https://zenodo.org/record/1252220)
[![Travis-CI](https://travis-ci.org/scivision/pybashutils.svg?branch=master)](https://travis-ci.org/scivision/pybashutils)
[![Coverage](https://coveralls.io/repos/github/scivision/pybashutils/badge.svg?branch=master)](https://coveralls.io/github/scivision/pybashutils?branch=master)
[![Maintainability](https://api.codeclimate.com/v1/badges/530575d7d1a47e7f3fa1/maintainability)](https://codeclimate.com/github/scivision/pybashutils/maintainability)
[![pypi versions](https://img.shields.io/pypi/pyversions/pybashutils.svg)](https://pypi.python.org/pypi/pybashutils)
[![pypi format](https://img.shields.io/pypi/format/pybashutils.svg)](https://pypi.python.org/pypi/pybashutils)
[![PyPi Download stats](http://pepy.tech/badge/pybashutils)](http://pepy.tech/project/pybashutils)


# Python-bash-matlab-octave-utils

Collection of Bash and Python scripts I've made that may be generally
useful

  function       |   description
-----------------|-------------------------------------------------------------
  checkIP        |  Sends you an email automatically if your IP address changes
  getIP          |  gets your public IP address (not the internal NAT address)
  findtext       |  find text inside files matching pattern.
  mx             |  mount network share example using SSHFS
  memfree        |  Estimates available RAM 
  setup_cmake.sh |  setup latest CMake from source (without sudo)


## Prereq

    apt install sshfs g++ libncurses-dev make

## Install

    python -m pip install -e .


## Usage

### SSHFS mount/unmount

1.  Mounting the "U" network drive at Boston University over SSHFS
    (slight modifications to the script allow using this anywhere)

    one time setup:

        mkdir ~/U

2.  mount U drive to your PC, like "mounting a network drive" in
    Windows, here we assume the BU username is `jdoe`:

        mU jdoe

and your network drive is available as ~/U

3.  Unmounting the "U" drive. When done for the day, suggest unmounting
    in case to help mitigate security risks:

        uU

Note: if you have any files open (like say a spreadsheet on the `~/U`
drive), `~/U` will stay connected until you close that file(s).

### Get Public IP address

    getIP


