Github Website with utilities, codes and more developed by Nicolas Celli. Work in progress.
A repository of (hopefully) useful codes and programming lectures that I developed organically during my academic career.
NOTE: all codes provided have been written on mac OSX and tested on mac OSX and Ubuntu.
Microsoft users may encounter “ghost characters” problems due to the different encoding in the form of weird character appearing in the text as well as problems with the shebang at the beginning of the code.
To check whether you have encoding issues, you can display the code with
cat -v filename.sh
; you should see weird characters appearing at, e.g. line ends. To fix the issue, you can remove all these characters by runningsed -e "s/\r//g" filename.sh > newfile
andmv newfile filename.sh
.To fix the shebang issue, using
#!/bin/bash
works in my experience. If in doubt, you can find the path to your bash by typingecho $0
.
A beginner’s bash course for researchers that I gave at DIAS. Targeted to teach how to understand and harness the power of interconnected computer infrastructure.
A set of codes I developed to ease the accessibility and communication in between computers. They can all be seen on my github, in the “Utilities” section.
Highlight codes:
The main purpose is to be able to execute command remotely, often over an ssh tunnel to jump a proxy. While each code serves a different purpose, in this page I break down one of the codes to explain the core components of this kind of BASH programming.
In addition to connectivity codes, I added several codes that perform useful actions, such as: