Collection of Bash and Python scripts I've made that may be generally useful
Python Shell
Permalink
Failed to load latest commit information.
archive_bash better output formatting Jul 18, 2016
calc-utils
pythonutils
tests
.gitignore
.travis.yml
7zcp.sh
LICENSE
README.rst
bash_time_per_line.sh
checkIP.sh
count_bash_forks.sh
cvpn
demo_windows_linux_detect.py
diffdir
dvpn
eps2pdf
findbig simplify Aug 17, 2016
findtext
findvid find all connected drive-google, use stdlib cwd run() Jul 7, 2016
getIP
h5tester.py
jpg2pdf.sh
latexdiff_recursive.sh
mU
mX
memfree move Jul 21, 2016
monDMC
pdf2png.sh
pdfocr.sh
png2pdf.sh
ren.sh
requirements.txt
setup.py
setup_cmake.sh
shredFind.sh
spellcheck init Dec 11, 2016
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).