snipt

Ctrl+h for KB shortcuts

Bash

Drupal - fgrep - search for what is executed by functions

fgrep -R "theme('terms" *
https://snipt.net/embed/f57e3a1d5454ef4312f2f8fe7026c3c1/
/raw/f57e3a1d5454ef4312f2f8fe7026c3c1/
f57e3a1d5454ef4312f2f8fe7026c3c1
bash
Bash
1
2019-08-20T16:30:11
True
False
False
/api/public/snipt/572/
drupal-fgrep-search-for-what-is-executed-by-functions
<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>fgrep -R <span class="s2">&quot;theme(&#39;terms&quot;</span> * </span></pre></div> </td></tr></table>
bash, drupal, server

Bash

Reconfigure vhosts (Plesk)

/usr/local/psa/admin/sbin/websrvmng --reconfigure-vhost --vhost-name=DOMAINNAMEHERE.com
https://snipt.net/embed/698fa6f54022926b02d8d38aa8cfe052/
/raw/698fa6f54022926b02d8d38aa8cfe052/
698fa6f54022926b02d8d38aa8cfe052
bash
Bash
1
2019-08-20T16:30:57
True
False
False
/api/public/snipt/568/
reconfigure-vhosts-plesk
<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>/usr/local/psa/admin/sbin/websrvmng --reconfigure-vhost --vhost-name<span class="o">=</span>DOMAINNAMEHERE.com </span></pre></div> </td></tr></table>
bash, plesk, server

Bash

block IP addresses for CSF

csf -d <ipaddress>
https://snipt.net/embed/ed3ca246c6b83c79d331ea4121a3347c/
/raw/ed3ca246c6b83c79d331ea4121a3347c/
ed3ca246c6b83c79d331ea4121a3347c
bash
Bash
1
2019-08-20T16:31:14
True
False
False
/api/public/snipt/567/
block-ip-addresses-for-csf
<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>csf -d &lt;ipaddress&gt; </span></pre></div> </td></tr></table>
bash

Text only

guarantee failure

A now 'token' response to bunk management decisions: "I can think of cheaper ways to guarantee failure."
https://snipt.net/embed/fca9471142a26d31c5b96a6941783199/
/raw/fca9471142a26d31c5b96a6941783199/
fca9471142a26d31c5b96a6941783199
text
Text only
1
2019-08-25T11:28:05
True
False
False
/api/public/snipt/549/
guarantee-failure
<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>A now &#39;token&#39; response to bunk management decisions: &quot;I can think of cheaper ways to guarantee failure.&quot; </span></pre></div> </td></tr></table>
auto-response