snipt

Ctrl+h for KB shortcuts

CSS

Remove the select arrow in Firefox

1
2
3
4
5
6
7
8
select {
    -webkit-appearance: none;
    -moz-appearance: none;
    text-indent: 1px;
    text-overflow: '';
}

/* Source: https://bugzilla.mozilla.org/show_bug.cgi?id=649849#c84 */
https://snipt.net/embed/3f1d8434b14fc33e8e7e254d30f35379/
/raw/3f1d8434b14fc33e8e7e254d30f35379/
3f1d8434b14fc33e8e7e254d30f35379
css
CSS
8
2019-05-30T01:44:12
True
False
False
Feb 18, 2014 at 12:28 PM
/api/public/snipt/114816/
remove-the-select-arrow-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> <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="nt">select</span> <span class="p">{</span> </span><span id="L-2"><a name="L-2"></a> <span class="o">-</span><span class="n">webkit</span><span class="o">-</span><span class="n">appearance</span><span class="o">:</span> <span class="nb">none</span><span class="p">;</span> </span><span id="L-3"><a name="L-3"></a> <span class="o">-</span><span class="n">moz</span><span class="o">-</span><span class="n">appearance</span><span class="o">:</span> <span class="nb">none</span><span class="p">;</span> </span><span id="L-4"><a name="L-4"></a> <span class="nb">text-indent</span><span class="o">:</span> <span class="m">1px</span><span class="p">;</span> </span><span id="L-5"><a name="L-5"></a> <span class="nb">text</span><span class="o">-</span><span class="nb">overflow</span><span class="o">:</span> <span class="s1">&#39;&#39;</span><span class="p">;</span> </span><span id="L-6"><a name="L-6"></a><span class="p">}</span> </span><span id="L-7"><a name="L-7"></a> </span><span id="L-8"><a name="L-8"></a><span class="c">/* Source: https://bugzilla.mozilla.org/show_bug.cgi?id=649849#c84 */</span> </span></pre></div> </td></tr></table>

Bash Session

Import sql file to MySQL database using SSH

mysql -p -u DB_USERNAME DB_NAME < PATH/TO/FILE.sql
https://snipt.net/embed/2889d808e26a0fbea9ed3b8e1bfeeecf/
/raw/2889d808e26a0fbea9ed3b8e1bfeeecf/
2889d808e26a0fbea9ed3b8e1bfeeecf
shell-session
Bash Session
1
2019-06-15T09:33:18
True
False
False
Feb 17, 2014 at 05:03 PM
/api/public/snipt/114552/
import-sql-file-to-mysql-database-using-ssh
<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="go">mysql -p -u DB_USERNAME DB_NAME &lt; PATH/TO/FILE.sql</span> </span></pre></div> </td></tr></table>
database, mysql, sql, ssh, terminal

Bash Session

Mount remote server drive with OSXFUSE and ssh

sshfs [-p PORT-NUMBER] [email protected]:/remote/path /Local/Path/to/an/existing/folder
https://snipt.net/embed/178080a463bae7bdfcf47a9de1f1fd0b/
/raw/178080a463bae7bdfcf47a9de1f1fd0b/
178080a463bae7bdfcf47a9de1f1fd0b
shell-session
Bash Session
1
2019-06-13T11:20:23
True
False
False
Feb 05, 2014 at 09:52 AM
/api/public/snipt/111141/
mount-remote-server-drive-with-osxfuse-and-ssh
<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="go">sshfs [-p PORT-NUMBER] [email protected]:/remote/path /Local/Path/to/an/existing/folder</span> </span></pre></div> </td></tr></table>
commandline, mac, server, ssh, terminal

Bash Session

Show hidden folders in mac OSX

Defaults write com.apple.finder AppleShowAllFiles TRUE
Killall FInder
https://snipt.net/embed/21e8099ab0ff222e01be15e4cb6f1f82/
/raw/21e8099ab0ff222e01be15e4cb6f1f82/
21e8099ab0ff222e01be15e4cb6f1f82
shell-session
Bash Session
2
2019-06-13T11:33:37
True
False
False
Jan 31, 2014 at 12:28 PM
/api/public/snipt/109941/
show-hidden-folders-in-mac-osx
<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><span class="go">Defaults write com.apple.finder AppleShowAllFiles TRUE</span> </span><span id="L-2"><a name="L-2"></a><span class="go">Killall FInder</span> </span></pre></div> </td></tr></table>
console, mac, terminal