Category: Uncategorized
associate ssh key with git remote host
I often run into to issues where I like to use different ssh keys for different sites, servers, and other things. It is a good practice not to use the same key for everything just in case you need to change it, or other various reasons. If you are like me and don’t want to manually enter the path to theses keys each time you can associate them with a url. So if you were connecting via ssh, or over git with ssh it works perfectly.
So first generate a key. In this example we will create one for Bit Bucket.
ssh-keygen -f ~/.ssh/bitbucket
Now inside the ~/.ssh folder edit the config file and add the text below.
Host bitbucket.org
IdentityFile ~/.ssh/bitbucket
IdentitiesOnly yes
At this point when you push to bitbucket it will use this key.. For example if you added the remote repo as origin
git push origin master
It should prompt you for your ssh unlock pass phrase.
Cooking Vegan and Wolf Dog
Hey just wanted to show you guys my wolf dog and an easy Vegan pizza recipe that tastes really good.
The ingredients are your standard dough low in oils of course. No milk, eggs, or any animal products of course and then basically beans, lentils, cashews, and tomato sauce. It is really a simple recipe and quick to make.
Any way have a look.
Net Neutrality
I kind of follow this little organization that is constnatly staying up on what is going on with the internet so I can focus on work and other things and just support when needed. Check them out.
Something funny & something useful
I was working on something and I noticed something really funny in the Qt documentation. Have a look…. or go to http://doc.qt.io/qt-5/qscrollarea.html If this isn’t prime material for a programmers meme I don’t know what is. I have no idea why they inserted this picture as the example other then to have a good time with the material they decided/or had to write. Very funny either way. Thanks for the unexpected laugh Qt document writers. I was reading the documentation because I needed to create my own version of a photo editing area. I even posted an adapted example on stackoverflow here : http://stackoverflow.com/a/28147336/1325621
If it is not completely obvious this little snippet helps you align your QImage inside a widget.
This isn’t the final version, but it definitely gives some one a good starting point. If anyone is interested in an updated version with more features let me know.