snipt

Ctrl+h for KB shortcuts

Bash

osx > redis

1
2
3
4
5
6
7
8
# To have launchd start redis at login:
$ ln -sfv /usr/local/opt/redis/*.plist ~/Library/LaunchAgents

# Then to load redis now:
$ launchctl load ~/Library/LaunchAgents/homebrew.mxcl.redis.plist

# Or, if you don't want/need launchctl, you can just run:
$ redis-server /usr/local/etc/redis.conf
https://snipt.net/embed/a8a2f3df3c69d2d054ba66082a5f1b8c/
/raw/a8a2f3df3c69d2d054ba66082a5f1b8c/
a8a2f3df3c69d2d054ba66082a5f1b8c
bash
Bash
8
2019-06-25T10:17:36
True
False
False
Sep 03, 2013 at 07:31 PM
/api/public/snipt/78772/
osx-redis
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a> <a href="#L-4">4</a> <a href="#L-5">5</a> <a href="#L-6">6</a> <a href="#L-7">7</a> <a href="#L-8">8</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a><span class="c1"># To have launchd start redis at login:</span> </span><span id="L-2"><a name="L-2"></a>$ ln -sfv /usr/local/opt/redis/*.plist ~/Library/LaunchAgents </span><span id="L-3"><a name="L-3"></a> </span><span id="L-4"><a name="L-4"></a><span class="c1"># Then to load redis now:</span> </span><span id="L-5"><a name="L-5"></a>$ launchctl load ~/Library/LaunchAgents/homebrew.mxcl.redis.plist </span><span id="L-6"><a name="L-6"></a> </span><span id="L-7"><a name="L-7"></a><span class="c1"># Or, if you don&#39;t want/need launchctl, you can just run:</span> </span><span id="L-8"><a name="L-8"></a>$ redis-server /usr/local/etc/redis.conf </span></pre></div> </td></tr></table>
homebrew, osx, redis

Bash

Show me 30 brew home pages at a time.

for i in `brew search | sed -n 30,60p` ;do brew home $i; done
https://snipt.net/embed/ead4475ee1ad79bfc0637d376c8a18e0/
/raw/ead4475ee1ad79bfc0637d376c8a18e0/
ead4475ee1ad79bfc0637d376c8a18e0
bash
Bash
1
2019-06-19T02:48:19
True
False
False
/api/public/snipt/30550/
show-me-30-brew-home-pages-at-a-time
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a><span class="k">for</span> i in <span class="sb">`</span>brew search <span class="p">|</span> sed -n 30,60p<span class="sb">`</span> <span class="p">;</span><span class="k">do</span> brew home <span class="nv">$i</span><span class="p">;</span> <span class="k">done</span> </span></pre></div> </td></tr></table>
"browse formulae", brew, homebrew, osx, show

Bash

uninstall homebrew

1
2
3
4
5
6
7
8
cd `brew --prefix`
rm -rf Cellar
brew prune
rm -rf Library .git .gitignore bin/brew README.md share/man/man1/brew
rm -rf ~/Library/Caches/Homebrew

---
This should also revert your /usr/local folder to its pre-Homebrew days. See the Homebrew installation wiki (http://github.com/mxcl/homebrew/wiki/installation) for more information.
https://snipt.net/embed/aa127681f8fc01ce04f79700a93d81d4/
/raw/aa127681f8fc01ce04f79700a93d81d4/
aa127681f8fc01ce04f79700a93d81d4
bash
Bash
8
2019-06-24T16:43:47
True
False
False
/api/public/snipt/29855/
uninstall-homebrew
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a> <a href="#L-4">4</a> <a href="#L-5">5</a> <a href="#L-6">6</a> <a href="#L-7">7</a> <a href="#L-8">8</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a><span class="nb">cd</span> <span class="sb">`</span>brew --prefix<span class="sb">`</span> </span><span id="L-2"><a name="L-2"></a>rm -rf Cellar </span><span id="L-3"><a name="L-3"></a>brew prune </span><span id="L-4"><a name="L-4"></a>rm -rf Library .git .gitignore bin/brew README.md share/man/man1/brew </span><span id="L-5"><a name="L-5"></a>rm -rf ~/Library/Caches/Homebrew </span><span id="L-6"><a name="L-6"></a> </span><span id="L-7"><a name="L-7"></a>--- </span><span id="L-8"><a name="L-8"></a>This should also revert your /usr/local folder to its pre-Homebrew days. See the Homebrew installation wiki <span class="o">(</span>http://github.com/mxcl/homebrew/wiki/installation<span class="o">)</span> <span class="k">for</span> more information. </span></pre></div> </td></tr></table>
"os x", brew, homebrew, uninstall

Bash

install homebrew

1
2
3
4
5
6
# Take ownership of /usr/local so you don't have to sudo
sudo chown -R `whoami` /usr/local
# Fix the permissions on your mysql installation, if you have one
sudo chown -R mysql:mysql /usr/local/mysql*
# Download and install Homebrew from github
curl -L http://github.com/mxcl/homebrew/tarball/master | tar xz --strip 1 -C /usr/local
https://snipt.net/embed/0a4c9cc67ffb9739e6daad1f0debc0e2/
/raw/0a4c9cc67ffb9739e6daad1f0debc0e2/
0a4c9cc67ffb9739e6daad1f0debc0e2
bash
Bash
6
2019-06-24T13:29:13
True
False
False
/api/public/snipt/22296/
install-homebrew
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a> <a href="#L-4">4</a> <a href="#L-5">5</a> <a href="#L-6">6</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a><span class="c1"># Take ownership of /usr/local so you don&#39;t have to sudo</span> </span><span id="L-2"><a name="L-2"></a>sudo chown -R <span class="sb">`</span>whoami<span class="sb">`</span> /usr/local </span><span id="L-3"><a name="L-3"></a><span class="c1"># Fix the permissions on your mysql installation, if you have one</span> </span><span id="L-4"><a name="L-4"></a>sudo chown -R mysql:mysql /usr/local/mysql* </span><span id="L-5"><a name="L-5"></a><span class="c1"># Download and install Homebrew from github</span> </span><span id="L-6"><a name="L-6"></a>curl -L http://github.com/mxcl/homebrew/tarball/master <span class="p">|</span> tar xz --strip <span class="m">1</span> -C /usr/local </span></pre></div> </td></tr></table>
homebrew