by
531 10
0
3
988
0
Top 1% !
Popular
Specified
Popularity: 31386th place
Created
Modified Sep 13, 2016

Published on:

No tags for this snippet yet.
LanguageRuby
SourceGitHub

HomeBrew Fix

HomeBrew Fix : 
gistfile1.rb
Copy Embed Code
<iframe id="embedFrame" style="width:600px; height:300px;"
src="https://www.snip2code.com/Embed/1437869/HomeBrew-Fix?startLine=0"></iframe>
Click on the embed code to copy it into your clipboard Width Height
Leave empty to retrieve all the content Start End
sudo brew doctor # Update HomeBrew cd /usr/local && \ sudo git add . && \ sudo git reset --hard HEAD && \ sudo git pull --rebase #!/usr/bin/env ruby class CleaningHomeBrew BINARIES = ['cmake', 'imagemagick', 'jasper', 'jpeg', 'libevent', 'libtiff', 'little-cms','memcached','mysql','ossp-uuid','pidof','postgresql','redis','sphinx','wget'] class << self def clean BINARIES.each { |binary| system "sudo brew cleanup && sudo brew link #{binary} && sudo brew uninstall #{binary} && sudo brew install #{binary}" } end end end begin CleaningHomeBrew.clean end
If you want to be updated about similar snippets, Sign in and follow our Channels

blog comments powered by Disqus