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


h5tester.py test HDF5 files for corruption--if the variable(s) have Fletcher 32 enabled cupd update conda packages (well, the ones I use) checkIP Sends you an email automatically if your IP address changes getIP.py 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.m Estimates available RAM for Matlab/Octave under Windows, Mac, Linux checkRAM.m check if a proposed N-D array with fit in available RAM (w/o swap) 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.py

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.1.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

pybashutils-0.6.1-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pybashutils-0.6.1.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pybashutils-0.6.1.tar.gz
Algorithm Hash digest
SHA256 6674823c46955f2032144b5dd9730d1a5f33fbc2b8e5856c7efc456367130fab
MD5 c379bb275ebcdd11e885669af9b1e9f3
BLAKE2b-256 de9ad2444acb6b23d34c02e8586515e710a54d7bde86a165389254b0d2048856

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pybashutils-0.6.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ab1e66a19ed46db0f08cb8df0f81d4b3c799d5833a21d7fe8a8056b930eff796
MD5 b3447b7ad5b311b5df097b7117ef3515
BLAKE2b-256 4b3bac72f1f9380e68474e3ae99eb24b6facfd96117e0ce3381abf11bfa65b77

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