Collection of Bash and Python scripts I've made that may be generally useful
Python Shell
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
archive_bash
calc-utils
pythonutils
tests
.gitignore
.travis.yml
7zcp.sh
DetectOS.py
LICENSE
README.rst
YouTubeLive-screenshare.py
bash_time_per_line.sh
checkIP.sh
count_bash_forks.sh
cvpn
demo_windows_linux_detect.py
diffFN
diffdir
dvpn
eps2pdf
find_bad_characters.py
findbig
findtext
findvid
getIP
h5tester.py
jpg2pdf.sh
latexdiff_recursive.sh
mU
mX
memfree
monDMC
pdf2png.sh
pdfocr.sh
png2pdf.sh
ren.sh
setup.py
setup_cmake.sh
shredFind.sh
spellcheck
tarcp
uU
uX
update-compilers.sh
whichos
xrandr_force.sh

README.rst

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

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. download the code:

    cd ~
    git clone --depth 1 https://github.com/scienceopen/pybashutils.git
    
  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).