snipt

Ctrl+h for KB shortcuts

Text only

CSS

1
2
3
4
   // calc
   width: -moz-calc(100% - 100px);
    width: -webkit-calc(100% - 100px);
    width: calc(100% - 100px);
https://snipt.net/embed/9da7c0d5da69937f316923d29385def9/
/raw/9da7c0d5da69937f316923d29385def9/
9da7c0d5da69937f316923d29385def9
text
Text only
4
2019-06-23T08:50:10
True
False
False
Oct 14, 2016 at 03:44 AM
/api/public/snipt/148000/
css-05e238b1
<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> // calc </span><span id="L-2"><a name="L-2"></a> width: -moz-calc(100% - 100px); </span><span id="L-3"><a name="L-3"></a> width: -webkit-calc(100% - 100px); </span><span id="L-4"><a name="L-4"></a> width: calc(100% - 100px); </span></pre></div> </td></tr></table>
css

Text only

Percona 5.6

1
2
3
4
// stop cluster
service mysql bootstrap-stop
// start cluster
service mysql bootstrap-pxc
https://snipt.net/embed/9386cdb21632e037d663cb04f37826f6/
/raw/9386cdb21632e037d663cb04f37826f6/
9386cdb21632e037d663cb04f37826f6
text
Text only
6
2019-06-19T01:12:21
True
False
False
/api/public/snipt/147418/
percona-56
<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>// stop cluster </span><span id="L-2"><a name="L-2"></a>service mysql bootstrap-stop </span><span id="L-3"><a name="L-3"></a>// start cluster </span><span id="L-4"><a name="L-4"></a>service mysql bootstrap-pxc </span></pre></div> </td></tr></table>
mysql, percona

Text only

csf firewall

nano -w /etc/csf/csf.allow
https://www.howtoforge.com/tutorial/install-and-configure-csf-config-server-firewall-on-centos-7/
https://snipt.net/embed/73c23159e21f9e7e733cabd928a764d5/
/raw/73c23159e21f9e7e733cabd928a764d5/
73c23159e21f9e7e733cabd928a764d5
text
Text only
2
2019-06-21T18:01:51
True
False
False
Jun 03, 2016 at 01:18 AM
/api/public/snipt/147102/
csf-firewall
<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>nano -w /etc/csf/csf.allow </span><span id="L-2"><a name="L-2"></a>https://www.howtoforge.com/tutorial/install-and-configure-csf-config-server-firewall-on-centos-7/ </span></pre></div> </td></tr></table>
network

Text only

node-sass

node-sass --style compressed --sourcemap='none' /var/www/public_html/upload/sass/base.scss > /var/www/public_html/upload/styles/HC/style.css
https://snipt.net/embed/d62dddc27147ebc446321bedc4ffae36/
/raw/d62dddc27147ebc446321bedc4ffae36/
d62dddc27147ebc446321bedc4ffae36
text
Text only
2
2019-06-23T07:55:49
True
False
False
May 10, 2016 at 11:06 PM
/api/public/snipt/146888/
node-sass
<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>node-sass --style compressed --sourcemap=&#39;none&#39; /var/www/public_html/upload/sass/base.scss &gt; /var/www/public_html/upload/styles/HC/style.css </span></pre></div> </td></tr></table>
linux

Text only

Windows CMD etc

1
2
3
4
5
// use pscp to copy a file from remote server
pscp -pw password -v [email protected]:/root/filename.sql.gz ./

// pscp copy from windows to remote
pscp -v c:\... [email protected]:\tmp
https://snipt.net/embed/db59933462750b1bdcd607539e5faa68/
/raw/db59933462750b1bdcd607539e5faa68/
db59933462750b1bdcd607539e5faa68
text
Text only
5
2019-06-22T10:49:07
True
False
False
/api/public/snipt/145419/
windows-cmd-etc
<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></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>// use pscp to copy a file from remote server </span><span id="L-2"><a name="L-2"></a>pscp -pw password -v [email protected]:/root/filename.sql.gz ./ </span><span id="L-3"><a name="L-3"></a> </span><span id="L-4"><a name="L-4"></a>// pscp copy from windows to remote </span><span id="L-5"><a name="L-5"></a>pscp -v c:\... [email protected]:\tmp </span></pre></div> </td></tr></table>
windows