snipt

Ctrl+h for KB shortcuts

Bash

URL handler for thunderbird

gconftool-2 --type string -s /desktop/gnome/url-handlers/http/command "google-chrome %s"
gconftool-2 --type string -s /desktop/gnome/url-handlers/https/command "google-chrome %s"
https://snipt.net/embed/bef4929c8dff1053e21fd76fadd45e08/
/raw/bef4929c8dff1053e21fd76fadd45e08/
bef4929c8dff1053e21fd76fadd45e08
bash
Bash
2
2019-08-25T16:58:27
True
False
False
/api/public/snipt/35602/
url-handler-for-thunderbird
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>gconftool-2 --type string -s /desktop/gnome/url-handlers/http/command <span class="s2">&quot;google-chrome %s&quot;</span> </span><span id="L-2"><a name="L-2"></a>gconftool-2 --type string -s /desktop/gnome/url-handlers/https/command <span class="s2">&quot;google-chrome %s&quot;</span> </span></pre></div> </td></tr></table>
google-chrome, thunderbird

Bash

thunderbird edit_in_macvim.sh

1
2
3
4
5
6
#!/bin/sh
# wrapper around macvim for use with Thunderbird External Editor Extension
# http://globs.org/articles.php?lng=en&pg=8
# from http://tr.im/wI7n
# Put this in ~/Library/Thunderbird/
exec open -W -a macvim "[email protected]"
https://snipt.net/embed/906dd3ae1768c6adeb03e60c062dcb7a/
/raw/906dd3ae1768c6adeb03e60c062dcb7a/
906dd3ae1768c6adeb03e60c062dcb7a
bash
Bash
6
2019-08-22T01:04:28
True
False
False
/api/public/snipt/7759/
thunderbird-edit_in_macvimsh
<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="ch">#!/bin/sh</span> </span><span id="L-2"><a name="L-2"></a><span class="c1"># wrapper around macvim for use with Thunderbird External Editor Extension</span> </span><span id="L-3"><a name="L-3"></a><span class="c1"># http://globs.org/articles.php?lng=en&amp;pg=8</span> </span><span id="L-4"><a name="L-4"></a><span class="c1"># from http://tr.im/wI7n</span> </span><span id="L-5"><a name="L-5"></a><span class="c1"># Put this in ~/Library/Thunderbird/</span> </span><span id="L-6"><a name="L-6"></a><span class="nb">exec</span> open -W -a macvim <span class="s2">&quot;</span><span class="nv">[email protected]</span><span class="s2">&quot;</span> </span></pre></div> </td></tr></table>
macvim, thunderbird

Bash

compact Firefox (and other Mozilla product) databases

1
2
3
4
# make sure sqlite is installed
sudo apt-get install sqlite3
# vacuum'em-all
find ~/.mozilla -name "*.sqlite" -exec sqlite3 {} "VACUUM;" \;
https://snipt.net/embed/31bfb236664390862401f1f43f3970ba/
/raw/31bfb236664390862401f1f43f3970ba/
31bfb236664390862401f1f43f3970ba
bash
Bash
4
2019-08-25T05:07:58
True
False
False
/api/public/snipt/5721/
compact-firefox-and-other-mozilla-product-databases
<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></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a><span class="c1"># make sure sqlite is installed</span> </span><span id="L-2"><a name="L-2"></a>sudo apt-get install sqlite3 </span><span id="L-3"><a name="L-3"></a><span class="c1"># vacuum&#39;em-all</span> </span><span id="L-4"><a name="L-4"></a>find ~/.mozilla -name <span class="s2">&quot;*.sqlite&quot;</span> -exec sqlite3 <span class="o">{}</span> <span class="s2">&quot;VACUUM;&quot;</span> <span class="se">\;</span> </span></pre></div> </td></tr></table>
compact, database, firefox, mozilla, sqlite, thunderbird, vacuum