This file is part of eRCaGuy_dotfiles: https://github.com/ElectricRCAircraftGuy/eRCaGuy_dotfiles
- ../useful_startup_programs.md
- power_supply_README.md - Remote-controllable power supplies, and commands and scripts to control them
- README_git-diffn.md -
git diffn
- README_git-sync_repo_from_pc1_to_pc2.md -
sync_git_repo_from_pc1_to_pc2.sh
- sync_git_repo_from_pc1_to_pc2--notes.md - my scratch notes
- README_ros_readbagfile.md -
ros_readbagfile
Each script herein has detailed installation and usage information commented in the top of it. So, look inside each file for details. For any script which I'd really like to highlight or explain, however, I've provided additional details below.
- git-diffn.sh
- README_git-diffn.md
git diff
with line numbers
- git-blametool.sh
- See my answer and demo about
git blametool
here: StackOverflow: Is there git blame gui similar to bzr qannotate?.
- See my answer and demo about
- PC-to-PC Git-based Folder/Project Sync Script
- README_git-sync_repo_from_pc1_to_pc2.md
- git-based sync script to re-sync gigabytes of data over a cell phone hot spot in 1 minute and with 50 MB data usage
- ros_readbagfile.py
- README_ros_readbagfile.md
- Read ROS (Robot Operating System) messages on certain topics from within a pre-recorded ROS bag file.
- Tutorial I wrote: Reading messages from a bag file
- rgf.sh
- Ripgrep fuzzy finder: this ('rgf') is a RipGrep interactive fuzzy finder of content in files! It is a simple wrapper script around Ripgrep and the fzf fuzzy finder that turns RipGrep ('rg') into an easy-to-use interactive fuzzy finder to find content in any files. VERY USEFUL AND EASY TO USE!
- rg_replace.sh (
rgr
)- Ripgrep Replace: this is a wrapper around Ripgrep which allows you to do full find-and-replace on your disk. See rg_replace.sh. Installation instructions are in the top of the file. Sample help menu from it (
rgr -h
): BurntSushi/ripgrep#74 (comment)
- Ripgrep Replace: this is a wrapper around Ripgrep which allows you to do full find-and-replace on your disk. See rg_replace.sh. Installation instructions are in the top of the file. Sample help menu from it (
Generic Linux Ubuntu "installation" instructions for literally any executable or script in the world
- Create a symlink in
~/bin
to this script so you can run it from anywhere.cd /path/to/myscript_dir mkdir -p ~/bin # Required ln -si "${PWD}/myscript.sh" ~/bin/myscript # Optional: prefix the script with your initials; replace `gs` with your # initials ln -si "${PWD}/myscript.sh" ~/bin/gs_myscript
- Log out and log back in if using Ubuntu with a default
~/.profile
file which automatically adds~/bin
to yourPATH
variable. This will cause~/bin
to be automatically added to your path. If you're missing Ubuntu's default~/.profile
file, you can copy it from the/etc/skel
directory like this:You can alternatively manually add thecp -i /etc/skel/.profile ~
~/bin
dir to yourPATH
with this code. Add this to the bottom of your~/.bashrc
file if you don't have the~/.profile
file mentioned above:Now log out and log back in again if you just added the# set PATH so it includes user's private bin if it exists if [ -d "$HOME/bin" ] ; then PATH="$HOME/bin:$PATH" fi
~/bin
dir to yourPATH
as described above. - OR, re-source your
~/.bashrc
file if the~/bin
dir did already exist and was already in yourPATH
:# Same as running `source ~/.bashrc` . ~/.bashrc
- Now you can use this command/executable directly anywhere you like, like
this:
myscript # OR gs_myscript