- myip.cin.sh: Show current internet IPv4 and IPv6 by using the API from: www.geojs.io
- dot_countdown.cin.sh: Countdown function with dots.
- ssh.cin.sh: Presents hosts from ssh config file in a handy menu.
- spinner.sh: An infinite spinner function.
- run_scripts: Executes all executables in a directory and skips non executables.
- get_user.sh: Different methods to get the current users name in a script.
- Also check out my Gist: https://gist.github.com/adcin
git clone https://github.com/adcin/cinscripts.git && \
chmod 750 *.cin.shUse the ~/bin folder for your private scripts, so you can execute them from everywhere.
1. Check .profile, if PATH to ~/bin is set
nano ~/.profileIsert or uncomment the following code if neccesary:
# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/bin" ] ; then
PATH="$HOME/bin:$PATH"
fiTo activate the changes in PATH, you should relog.
2. Clone the repository
git clone https://github.com/adcin/cinscripts.git ~/git/cinscripts3. Make scripts executable
chmod 750 ~/git/cinscripts/*.cin.sh4. Copy the scripts to ~/bin
cp ~/git/cinscripts/*.cin.sh ~/bin5. Optional - Remove the ~/git/cinscripts directory
rm -r ~/git/cinscriptsSteps 2-5 in one command:
git clone https://github.com/adcin/cinscripts.git ~/git/cinscripts && \
chmod 750 ~/git/cinscripts/*.cin.sh && \
cp ~/git/cinscripts/*.cin.sh ~/bin && \
rm -r ~/git/cinscripts