Cross-platform utilities for computer maintenance
Project description
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 |
cmake_setup.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
-
Mounting the "U" network drive at Boston University over SSHFS (slight modifications to the script allow using this anywhere)
one time setup:
mkdir ~/U
-
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
-
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file pybashutils-0.6.3.tar.gz
.
File metadata
- Download URL: pybashutils-0.6.3.tar.gz
- Upload date:
- Size: 5.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 44ba9df120b61124bdb82931498323aca1a5080f7a348f6dce6680ef33dc88eb |
|
MD5 | 5a359b1e134bb5eb171063551d47a5e5 |
|
BLAKE2b-256 | 2df56555a451483c0f7f3a6f987a5f793e066d78453bcf828a9f6a25b52886fe |