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/
https://snipt.net/raw/c736d144c2a86b43bf9e4695669ebd74/
c736d144c2a86b43bf9e4695669ebd74
bash
Bash
3
2016-09-25T15:03:04
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 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/
https://snipt.net/raw/9b75f62969c854fdb6333bb01480454a/
9b75f62969c854fdb6333bb01480454a
bash
Bash
3
2016-09-23T03:20:01
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 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

Bash

Fix Firefox @font-face cross-domain restriction in Nginx

1
2
3
4
5
6
7
8
server {
    ...
    # Fix @font-face cross-domain restriction in Firefox
	location ~* \.(eot|ttf|woff)$ {
	    add_header Access-Control-Allow-Origin *;
	}
    ...
}
https://snipt.net/embed/171fd3aa59385b7082eab9600721a24e/
https://snipt.net/raw/171fd3aa59385b7082eab9600721a24e/
171fd3aa59385b7082eab9600721a24e
bash
Bash
8
2016-09-26T06:01:58
True
False
False
/api/public/snipt/40414/
fix-firefox-font-face-cross-domain-restriction-in-nginx
<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 id="L-1"><a name="L-1"></a>server <span class="o">{</span> </span><span id="L-2"><a name="L-2"></a> ... </span><span id="L-3"><a name="L-3"></a> <span class="c"># Fix @font-face cross-domain restriction in Firefox</span> </span><span id="L-4"><a name="L-4"></a> location ~* <span class="se">\.</span><span class="o">(</span>eot<span class="p">|</span>ttf<span class="p">|</span>woff<span class="o">)</span><span class="nv">$ </span><span class="o">{</span> </span><span id="L-5"><a name="L-5"></a> add_header Access-Control-Allow-Origin *<span class="p">;</span> </span><span id="L-6"><a name="L-6"></a> <span class="o">}</span> </span><span id="L-7"><a name="L-7"></a> ... </span><span id="L-8"><a name="L-8"></a><span class="o">}</span> </span></pre></div> </td></tr></table>
@font-face, cross-domain, firefox, nginx

CSS

Disabilitare bordi dei link su firefox

a{outline:none;} 
https://snipt.net/embed/310b0e4f99a00440f5eac9b2f855c6b4/
https://snipt.net/raw/310b0e4f99a00440f5eac9b2f855c6b4/
310b0e4f99a00440f5eac9b2f855c6b4
css
CSS
1
2016-09-26T07:12:55
True
False
False
/api/public/snipt/33869/
disabilitare-bordi-dei-link-su-firefox
<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 id="L-1"><a name="L-1"></a><span class="nt">a</span><span class="p">{</span><span class="k">outline</span><span class="o">:</span><span class="k">none</span><span class="p">;}</span> </span></pre></div> </td></tr></table>
css, firefox, link

Batchfile

compress-firefox.bat

1
2
3
4
5
6
REM site: http://www.autohotkey.com/forum/topic10681.html
REM coloque o upx no path
REM
pushd "%ProgramFiles%\Mozilla Firefox"
for %%v in (*.exe *.dll components\*.dll plugins\*.dll) do upx "%ProgramFiles%\Mozilla Firefox\%%v"
popd
https://snipt.net/embed/da2a451e67ffceff6c50a62887182d5a/
https://snipt.net/raw/da2a451e67ffceff6c50a62887182d5a/
da2a451e67ffceff6c50a62887182d5a
bat
Batchfile
6
2016-09-22T09:01:24
True
False
False
/api/public/snipt/33707/
compress-firefoxbat
<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 id="L-1"><a name="L-1"></a><span class="c">REM site: http://www.autohotkey.com/forum/topic10681.html</span> </span><span id="L-2"><a name="L-2"></a><span class="c">REM coloque o upx no path</span> </span><span id="L-3"><a name="L-3"></a><span class="c">REM</span> </span><span id="L-4"><a name="L-4"></a><span class="c">pushd &quot;%ProgramFiles%\Mozilla Firefox&quot;</span> </span><span id="L-5"><a name="L-5"></a><span class="k">for</span> <span class="nv">%%v</span> in (*.exe *.dll components\*.dll plugins\*.dll) <span class="k">do</span> upx <span class="s2">&quot;%ProgramFiles%\Mozilla Firefox\%%v&quot;</span> </span><span id="L-6"><a name="L-6"></a>popd </span></pre></div> </td></tr></table>
bat, firefox, tools, windows

JavaScript

after AJAX redirect and back button not works input button in Firefox

1
2
3
// Firefox put a 'disabled' attribute on the input[type=button]
// so need to remove this
$('input').removeAttr('disabled');
https://snipt.net/embed/5d79499af3b4f94ab3942b4625547bdd/
https://snipt.net/raw/5d79499af3b4f94ab3942b4625547bdd/
5d79499af3b4f94ab3942b4625547bdd
js
JavaScript
3
2016-09-22T09:01:31
True
False
False
/api/public/snipt/24543/
after-ajax-redirect-and-back-button-not-works-input-button-in-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 id="L-1"><a name="L-1"></a><span class="c1">// Firefox put a &#39;disabled&#39; attribute on the input[type=button]</span> </span><span id="L-2"><a name="L-2"></a><span class="c1">// so need to remove this</span> </span><span id="L-3"><a name="L-3"></a><span class="nx">$</span><span class="p">(</span><span class="s1">&#39;input&#39;</span><span class="p">).</span><span class="nx">removeAttr</span><span class="p">(</span><span class="s1">&#39;disabled&#39;</span><span class="p">);</span> </span></pre></div> </td></tr></table>
ajax, firefox, redirect
Copyrighted, illegal, or inappropriate content? Email support@snipt.net.