Collection of Bash and Python scripts I've made that may be generally useful
Python Shell
Switch branches/tags
Nothing to show
Latest commit 69d35bd Dec 19, 2017 @scivision scivision latest cmake
Permalink
Failed to load latest commit information.
archive_bash better output formatting Jul 18, 2016
calc-utils init Jun 30, 2016
pythonutils template Nov 13, 2017
tests selftest Feb 14, 2017
.codeclimate.yml travis template Nov 16, 2017
.gitattributes init [ci skip] Oct 16, 2017
.gitignore init Nov 27, 2017
.travis.yml template Dec 6, 2017
7zcp.sh correct typo Jul 21, 2015
DetectOS.py init Feb 15, 2017
LICENSE symbolic Apr 18, 2015
README.rst template Dec 6, 2017
bash_time_per_line.sh compare Jul 2, 2015
checkIP.sh doc [ci skip] Nov 12, 2017
count_bash_forks.sh compare Jul 2, 2015
cvpn bash not needed [ci skip] Jan 24, 2017
demo_windows_linux_detect.py py36 Apr 4, 2017
diffFN.sh init Oct 15, 2017
diffdir.py init Oct 15, 2017
diffdir.sh init Oct 15, 2017
dvpn init Jun 30, 2016
eps2pdf.sh init Oct 15, 2017
find_bad_characters.py init Oct 15, 2017
findbig fix sort order Mar 19, 2017
findtext.py init Oct 15, 2017
findvid.py init Oct 15, 2017
getIP.py doc [ci skip] Nov 12, 2017
getIP.sh doc [ci skip] Nov 12, 2017
h5tester.py init Oct 15, 2017
jpg2pdf.sh initial commit Jan 29, 2015
latexdiff_recursive.sh robustness Oct 14, 2015
mU path Nov 10, 2015
mX correct typo Jul 21, 2015
memfree.py init Oct 15, 2017
monDMC init Jun 30, 2016
pdf2png.sh upd Feb 26, 2015
pdfocr.sh initial commit Sep 30, 2014
png2pdf.sh initial commit Sep 30, 2014
pydeptree.py init Nov 27, 2017
pydeptree.sh tests, doc Nov 27, 2017
pyproject.toml travis template Nov 16, 2017
ren.sh doc Mar 25, 2016
setup.py setup.py template Nov 27, 2017
setup_cmake.sh latest cmake Dec 19, 2017
shredFind.sh initial commit Sep 30, 2014
spellcheck.py latest cmake Dec 19, 2017
tarcp.py doc [ci skip] Nov 12, 2017
uU initial commit Oct 2, 2014
uX initial Commit Oct 2, 2014
update-compilers.sh init May 9, 2016
whichos.py doc [ci skip] Nov 12, 2017
xrandr_force.sh init Jun 30, 2016

README.rst

https://travis-ci.org/scivision/pybashutils.svg?branch=master https://coveralls.io/repos/github/scivision/pybashutils/badge.svg?branch=master Maintainability

Python-bash-matlab-octave-utils

Collection of Bash/Python/Matlab/Octave scripts I've made that may be generally useful

Prereq

sudo apt-get install libcurl-dev sshfs

Installation:

This procedure assumes you're on a Linux device

  1. install the code:

    python -m pip install -e .
    
  2. add the scripts to your Path:

    nano ~/.bashrc
    

at the bottom of that file (use Page Down key to get there) type:

export PATH="$PATH:$HOME/pybashutils"

Examples

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