I am using fedora linux as my development environment OS, I love it but when you are working with azure that mainly believes you are using windows. Then you have to make some changes to your configuration files that windows (may do??) for you.
So, after I created my ssh key for the development, I keep on getting an issue to pull/push up my local git repo where the CLI would just hang or error out, so after doing the -v (verbose mode)
git pull -v
The issue highlighted itself with the following error message
Unable to negotiate with 18.104.22.168 port 22: no matching host key type found. Their offer: ssh-rsa
So, all I did was to update the ~/.ssh/config (your local username home directory .ssh config(uration) file. Please note the last bits, the HostkeyAlgorithms and PubkeyAcceptedKeyTypes
After that, there were no issues, I suppose it is the classic of reading the error message!
Since I was downloading a couple of files that needed to be joined together, I thought that I would write a bash script to do this for me.
The file that I was getting was from a friend whom had created a home movie of his son walking but could not send the whole thing but had to send in parts, he used a program called HJSplit, but I wanted to join them together using just linux command line commands. So after doing that I have done a small bash script that will do a similar task for me every-time without needing to type in a few commands.
# Ian Porter : http://www.codingfriends.com
# joining program, that will join files together similar to hjsplit.
# get the input values
# if input is equal to 2 parameters then
if [ $# -eq 2 ]
# ls all of the files that meet the requirements of the 1st parameter
for i in `ls $input*`;
echo "Adding file $i to $output"
cat $i >> $output
echo "input filename(s) | output filename"
echo "example arv arv.avi"
echo "Please input the searchable filename and the output filename"
If you save that as hj.sh and then change the execute writes on it
chmod 755 hj.sh
This will allow you to run the program without typing in sh , to use it for example just use
./hj.sh files_to_join big_file