Skip to content
Collection of Bash and Python scripts I've made that may be generally useful
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
archive_bash
calc-utils
pybashutils
tests
.appveyor.yml
.codeclimate.yml
.coveragerc
.gitattributes
.gitignore
.travis.yml
7zcp.sh
LICENSE
OSdetect.py
README.md
absolute_path_of_bash_script.sh
bash_time_per_line.sh
checkIP.sh
cmake_setup.sh
compare_binary.py
count_bash_forks.sh
cvpn
diffFN.sh
diffdir.py
diffdir.sh
diskfree_sigterm.py
dvpn
eps2pdf.sh
findbig
findtext.py
findvid.py
getIP.py
getIP.sh
id2email.py
jpg2pdf.sh
mU
mX
meld_all.py
memfree.py
monDMC
pdf2png.sh
pdfocr.sh
png2pdf.sh
pydeptree.sh
ren.sh
setup.cfg
setup.py
shredFind.sh
tarcp.py
uU
uX
ulimit_nofile.py
update-compilers.sh
xrandr_force.sh

README.md

Zenodo Travis-CI Coverage Build status Maintainability pypi versions 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
doc2pdf convert .doc, .docx, .rtf to PDF using LibreOffice

SpellCheck has moved.

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
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.