Monday, May 1, 2017

GitKraken....Linux/Windows/MAC GUI interface for your git needs. Very cool!

So after fighting git on the command line for a solid two weeks, the idiot I am never thought to search for a gui to this madness.  Google respectfully greeted me with a top spot: GitKraken.

Man it's neat, and VERY attractive to the eyeball. Granted I've been using it for all of 10 minutes but I already resolved my merge conflict!  Yeah!

Ok so being truthful, I'm positive anyone experienced enough with git could have not had the issues I did.. but trying to visualize all that is my git branches in my head did become tough.  Yeah purists will call me a wiener but I really don't care.  I'm loving me some GitKraken and I recommend it to all.. experienced or not this is a great tool for helping you work with your repo.

Thursday, April 6, 2017

Fedora 26 Alpha released!

(Taken from

The Fedora Project is pleased to announce the immediate availability of Fedora 26 Alpha. The Alpha release is an important milestone towards the Fedora 26 release later this year.
You can download the Alpha versions of Fedora 26 Workstation and Fedora 26 Server from the pre-release pages of the Get Fedora website. Pre-release versions of the Fedora SpinsFedora Labs, and Fedora for ARM are also available.

Fedora Alpha releases are provided for Fedora users to try out the upcoming release. More importantly, Fedora engineers want you to file bugs against the upcoming release. The Fedora 26 Changeset page on the Fedora wiki provides a list of new features provided in Fedora 26.

Judging from what I've read on the changenotes.. the team has resolved quite a few issues and introduced new things that I think folks will like.

Fedora.. the Fedora community and arguably the best Linux distro out there.

So recently, (3 weeks back) I decided to volunteer my time and limited knowledge to the Fedora Infrastructure group.  The IF group is what keeps the many official Fedora websites going, as well as EPEL repos, Bugzilla reports, Fedora ISO/etc downloads and a host of other systems running in top shape.

I've learned to love Fedora, much like an ancient simian loves picking at grubs and berries.*

(Sorry I've been re-watching Deadwood, and I find myself talking in that fashion)

Anyways, So yeah at work I finally made the switch totally and I felt the need to give back.. what little I can.  Luckily for me the community and the IF group have no qualms taking on those with little experience, giving them tasks for perform while at the same time learning as they go.  Which is definitely my forte since whatever I learn from them can only help me at work and vice-versa.

Anyway I have been working on SOPs or Standard Operating Procedures for a couple sites with the group and hopefully my tasks will rise in both complexity and awesomeness.

Thursday, March 30, 2017

Pianobar.. Pandora for the Command-Line

First off I love this package!!  Not only is it cli -based, which is my 'deal' these days.  But it lets me skip songs, shelve them for a month, choose and create new stations... plus it does not time out asking if I'm still there.  clone this guy down locally and get to listening to your favorite music!

Friday, March 10, 2017

BASH: change ownership of subfolders based on parent folder name

Sounds convoluted, and honestly I felt overwhelmed trying to figure out how to handle this programmatically.

So for the past few days I've been working on a new Cent7 server to replace an aged 6.6 vm.  This box sits in the DMZ and is used by various entities around the state to sftp certain txt files to.  So there are roughly 50 home directories.. each with sub folders and an ssh key.  So in an effort to *not* for the users to create new ssh keys I rsync'd the entire parent folder over.  First time I lacked the proper permissions and wound up creating the home folders but nothing underneath.

So long story short, I eventually was able to get the correct syntax down to rsync the /chroot/parent and all the individual home sub-folders to the new server WITH the two sub folders and the .ssh(which houses the authorized_key file).  EUREKA!

However now all the permissions were borked up.  My own local ssh user had taken ownership of the parents, and children in both user and group. DOH!  I was able to clean up teh group side of things easily enough via: 'chown -R :group /*'  However the user side was trickier because the user side on the two sub folders needed to be owned by the user in question.  (Obviously) but luckily enough for me the home folder's names was teh username entirely.  Lucked into this absolute gem:

Fix the path in Line 1, and you are golden!

for dir in /home/*/; do
    # strip trailing slash
    # strip all chars up to and including the last slash

    case $username in
    *.*) continue ;; # skip name with a dot in it

    chown -R "$username" "$dir"