Browsed by
Category: Mac OS X

Homebrew: fatal: Needed a single revision

Homebrew: fatal: Needed a single revision

$ brew update Checking out v1.0.1 in /usr/local/Homebrew… To checkout master in /usr/local/Homebrew run: ‘cd /usr/local/Homebrew && git checkout master Checking out v1.0.1 in /usr/local/Homebrew/Library/Taps/caskroom/homebrew-cask… To checkout master in /usr/local/Homebrew/Library/Taps/caskroom/homebrew-cask run: ‘cd /usr/local/Homebrew/Library/Taps/caskroom/homebrew-cask && git checkout master fatal: Cannot update paths and switch to branch ‘v1.0.1’ at the same time. Did you intend to checkout ‘refs/tags/1.0.1’ which can not be resolved as commit? fatal: Needed a single revision invalid upstream refs/tags/1.0.1 Checking out v1.0.1 in /usr/local/Homebrew/Library/Taps/caskroom/homebrew-versions… To checkout master in…

Read More Read More

.ssh/config: line 7: Bad configuration option: useroaming on macOS 10.12 Sierra

.ssh/config: line 7: Bad configuration option: useroaming on macOS 10.12 Sierra

ssh servername /Users/steven/.ssh/config: line 7: Bad configuration option: useroaming /Users/steven/.ssh/config: terminating, 1 bad configuration options Line 7 is UseRoaming no which I because of CVE-2016-0777 $ ssh -V OpenSSH_7.2p2, LibreSSL 2.4.1 Solution: Comment out that line as the version of OpenSSH that ships with macOS 10.12 no longer had that insecure feature.

Remove “Lookup” Contextual Menu Item from Mac OS X

Remove “Lookup” Contextual Menu Item from Mac OS X

System Preferences -> Keyboard and look under services then uncheck it. However this didn’t work for me, in Chrome it still appears. /Library/Contextual Menu Items/ is empty for me too. ~/Library/Contextual Menu Items/ doesn’t exist. Oh crap, turns out you can’t turn it off: https://apple.stackexchange.com/questions/37566/is-the-lookup-in-dictionary-context-menu-option-hardcoded-in-google-chrome-for See this issue in my opinion it seems to be now Google’s mo to remove control from the user. Too bad Firefox has really sucked of late.

Search for a command in Homebrew

Search for a command in Homebrew

Two ways: brew search forumla Which is in built however won’t work if you are looking for if it’s not the name of the formula. This is my script called brew-search #!/usr/bin/env bash curl –silent –compressed https://raw.githubusercontent.com/Homebrew/homebrew-command-not-found/master/executables.txt | grep -P “^$1:|[: ]$1( |$)” | grep -Po ‘^.+(?=:)’ Which can be called by brew-search command My script works for xxd. $ brew search xxd $ brew-search xxd vim