snipt

Ctrl+h for KB shortcuts

Bash

Show user certificates stored in Mozilla Firefox

1
2
3
certutil -K -d <PROFILE_DIRECTORY>
modutil -list -dbdir <PROFILE_DIRECTORY>
modutil -rawlist -dbdir <PROFILE_DIRECTORY>
https://snipt.net/embed/c736d144c2a86b43bf9e4695669ebd74/
/raw/c736d144c2a86b43bf9e4695669ebd74/
c736d144c2a86b43bf9e4695669ebd74
bash
Bash
3
2019-08-22T00:52:01
True
False
False
Oct 18, 2013 at 03:09 AM
/api/public/snipt/88441/
show-user-certificates-stored-in-mozilla-firefox
<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></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>certutil -K -d &lt;PROFILE_DIRECTORY&gt; </span><span id="L-2"><a name="L-2"></a>modutil -list -dbdir &lt;PROFILE_DIRECTORY&gt; </span><span id="L-3"><a name="L-3"></a>modutil -rawlist -dbdir &lt;PROFILE_DIRECTORY&gt; </span></pre></div> </td></tr></table>
bash, certificates, certutil, firefox, modutil, mozilla

Bash

Show and export user certificates from Mozilla Firefox

1
2
3
certutil -K -d <PROFILE_DIRECTORY>
modutil -list -dbdir <PROFILE_DIRECTORY>
modutil -rawlist -dbdir <PROFILE_DIRECTORY>
https://snipt.net/embed/9b75f62969c854fdb6333bb01480454a/
/raw/9b75f62969c854fdb6333bb01480454a/
9b75f62969c854fdb6333bb01480454a
bash
Bash
3
2019-08-19T14:25:43
True
False
False
Apr 09, 2013 at 06:17 AM
/api/public/snipt/58999/
show-and-export-user-certificates-from-mozilla-firefox
<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></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>certutil -K -d &lt;PROFILE_DIRECTORY&gt; </span><span id="L-2"><a name="L-2"></a>modutil -list -dbdir &lt;PROFILE_DIRECTORY&gt; </span><span id="L-3"><a name="L-3"></a>modutil -rawlist -dbdir &lt;PROFILE_DIRECTORY&gt; </span></pre></div> </td></tr></table>
certificate, certificates, certutil, firefox, modutil, mozilla

HTML

Browser/Engine specific styles

1
2
3
4
-moz-border-top: 5px
-webkit-border-top: 5px
-k8-border-top: 5px
-khtml-border-top: 5px
https://snipt.net/embed/a3c3510b5aa8d4392aa3eb84fc69fc2d/
/raw/a3c3510b5aa8d4392aa3eb84fc69fc2d/
a3c3510b5aa8d4392aa3eb84fc69fc2d
html
HTML
4
2019-08-22T15:25:18
True
False
False
/api/public/snipt/10009/
browserengine-specific-styles
<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>-moz-border-top: 5px </span><span id="L-2"><a name="L-2"></a>-webkit-border-top: 5px </span><span id="L-3"><a name="L-3"></a>-k8-border-top: 5px </span><span id="L-4"><a name="L-4"></a>-khtml-border-top: 5px </span></pre></div> </td></tr></table>
browsers, hacks, ie, mozilla, safari, tricks

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-19T18:00:13
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

Bash

Optimize Mozilla Firefox *.sqlite files

for f in ~/.mozilla/firefox/*/*.sqlite; do sqlite3 $f ‘VACUUM;; done
https://snipt.net/embed/086ae512d5e11e34a428df615c9a7963/
/raw/086ae512d5e11e34a428df615c9a7963/
086ae512d5e11e34a428df615c9a7963
bash
Bash
1
2019-08-19T16:52:32
True
False
False
/api/public/snipt/5087/
optimize-mozilla-firefox-sqlite-files
<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> f in ~/.mozilla/firefox/*/*.sqlite<span class="p">;</span> <span class="k">do</span> sqlite3 <span class="nv">$f</span> ‘VACUUM<span class="p">;</span>’<span class="p">;</span> <span class="k">done</span> </span></pre></div> </td></tr></table>
bash, firefox, mozilla, speed, sqlite, tweaks