So I use BitBucket.org both for my day job, and also for managing my private Git repos. (Since BB is free for personal private repo use, whereas GitHub charges for that…)
However, when I go to push to BitBucket for my personal use, I need to make sure that my SSH keys for work aren’t loaded. This has resulted in me doing things like “ssh-add -D” to wipe out all the keys in my ssh agent, then manually loading my personal key for git use. Then when I start work again, I have to reload my other keys. Rather annoying.
I came across a solution here: git admin: An alias for running git commands as a privileged SSH identity
However, it didn’t work for me. Took a bit to figure out why, but it came full circle back to the use of ssh-agent– even though I was properly specifying my SSH identity file, the keys from my ssh-agent were being seen first. All I had to do was to disable the use of ssh-agent inside of the ssh-as.sh script, like so:
ssh -i $SSH_KEYFILE [email protected]
That did the trick for me. Hope that helps someone else out there as well!
I’ve been futzing with htop-osx in my spare time to add support for CPU temperature monitoring and fan speed… these are things I like to know when I’m using a laptop, and I figured other folks here might as well. If you use homebrew, just do: brew edit htop-osx and paste in the values from https://gist.github.com/stormerider/5804653 and then brew install htop-osx (or if you already have it installed, brew upgrade htop-osx).
Otherwise, you can clone the fork from https://github.com/stormerider/htop-osx.git and build it manually. Once you’ve done so, run htop and hit F2 to enter setup, navigate over to Available Meters, and add them to whichever column you want (left or right). I normally make htop suid anyways to be able to get full process details, so I’m not sure if that’s required to probe the SMC keys for temperature/fan speed, but it’s possible.
(Most folks will only have one fan; the newer MacBook Pros and the 27″ iMacs only do, I believe the Airs as well. Older MBPs have two, like the loaner I used when getting my MBP repaired. Some Mac Pros– the desktops pre-iMac integration– have up to 4 fans. The code currently only displays 3 of them, the 4th being the PSU fan.)