Skip to main content

Cross-platform utilities for computer maintenance

Project description

Zenodo Travis-CI Coverage Maintainability pypi versions pypi format PyPi Download stats

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

  1. 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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pybashutils-0.6.2.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

pybashutils-0.6.2-py3-none-any.whl (9.9 kB view details)

Uploaded Python 3

File details

Details for the file pybashutils-0.6.2.tar.gz.

File metadata

File hashes

Hashes for pybashutils-0.6.2.tar.gz
Algorithm Hash digest
SHA256 f5aceda4ac78ec2259d3d48d264575e7365c114e456aeb22591c8a7c14a9cf63
MD5 e1b8cf91c8cd3970c9ae60aca2972214
BLAKE2b-256 24f0808f445424becb6fa5f72f58e3bc10caf2bbdc259301cb47a8ca80a7115e

See more details on using hashes here.

File details

Details for the file pybashutils-0.6.2-py3-none-any.whl.

File metadata

File hashes

Hashes for pybashutils-0.6.2-py3-none-any.whl
Algorithm Hash digest
SHA256 2da598703018de820d3ea5ccf20c5aa144742d68f3fb3ebf9b8c94efa6deb702
MD5 7efdb32da4c1d97467cf086bd4977a4b
BLAKE2b-256 2063ff793b7484b37b01ecd7224c19ee01a79de46418671eb4d210453300b0dd

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page