| var content = tinyMCE.get('contentid').getContent()
|
https://snipt.net/embed/f9c270dcfc1cff7fa984bbb674462d8a/
/raw/f9c270dcfc1cff7fa984bbb674462d8a/
f9c270dcfc1cff7fa984bbb674462d8a
text
Text only
2
2025-04-03T15:52:28
True
False
False
Apr 09, 2019 at 09:27 PM
/api/public/snipt/70/
get-content-of-tinymce-editor
<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>var content = tinyMCE.get('contentid').getContent()
</span></pre></div>
</td></tr></table>
| Yii::$app->user->identity->id
|
https://snipt.net/embed/e374733961277db61caf6e0de4fb79c0/
/raw/e374733961277db61caf6e0de4fb79c0/
e374733961277db61caf6e0de4fb79c0
text
Text only
1
2025-04-03T15:26:40
True
False
False
Jan 16, 2019 at 12:45 AM
/api/public/snipt/69/
current-user-id
<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>Yii::$app->user->identity->id
</span></pre></div>
</td></tr></table>
yii
https://snipt.net/embed/1001c6aeab331cdeed04c5265604ab52/
/raw/1001c6aeab331cdeed04c5265604ab52/
1001c6aeab331cdeed04c5265604ab52
text
Text only
1
2025-04-03T15:40:51
True
False
False
Feb 17, 2019 at 10:24 PM
/api/public/snipt/68/
compress-tar-gz-file
<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>tar -xzf file.tar.gz
</span></pre></div>
</td></tr></table>
linux
| du -h --max-depth=1 | sort -hr
df -h
|
https://snipt.net/embed/2515d7ab0c9f9dd73608279f4243a53f/
/raw/2515d7ab0c9f9dd73608279f4243a53f/
2515d7ab0c9f9dd73608279f4243a53f
text
Text only
4
2025-04-03T15:35:26
True
False
False
/api/public/snipt/67/
linux-directory-by-size
<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>du -h --max-depth=1 | sort -hr
</span><span id="L-2"><a name="L-2"></a>
</span><span id="L-3"><a name="L-3"></a>
</span><span id="L-4"><a name="L-4"></a>df -h
</span></pre></div>
</td></tr></table>
linux
https://snipt.net/embed/431b667c80e51640b17816784f10b868/
/raw/431b667c80e51640b17816784f10b868/
431b667c80e51640b17816784f10b868
text
Text only
1
2025-04-03T15:32:52
True
False
False
Aug 04, 2018 at 11:52 PM
/api/public/snipt/66/
list-running-php-scripts
<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>ps xuww | grep php
</span></pre></div>
</td></tr></table>
linux, php
| SELECT
table_schema as `Database`,
table_name AS `Table`,
round(((data_length + index_length) / 1024 / 1024), 2) `Size in MB`
FROM information_schema.TABLES
ORDER BY (data_length + index_length) DESC;
|
https://snipt.net/embed/43bf75d0b92ac72e6b762eb8579e0c57/
/raw/43bf75d0b92ac72e6b762eb8579e0c57/
43bf75d0b92ac72e6b762eb8579e0c57
text
Text only
6
2025-04-03T15:29:46
True
False
False
/api/public/snipt/65/
get-table-size
<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></span><span id="L-1"><a name="L-1"></a>SELECT
</span><span id="L-2"><a name="L-2"></a> table_schema as `Database`,
</span><span id="L-3"><a name="L-3"></a> table_name AS `Table`,
</span><span id="L-4"><a name="L-4"></a> round(((data_length + index_length) / 1024 / 1024), 2) `Size in MB`
</span><span id="L-5"><a name="L-5"></a>FROM information_schema.TABLES
</span><span id="L-6"><a name="L-6"></a>ORDER BY (data_length + index_length) DESC;
</span></pre></div>
</td></tr></table>
mysql, mysqli, sql
https://snipt.net/embed/57a3e35b5b01579ba5e606d2899e923b/
/raw/57a3e35b5b01579ba5e606d2899e923b/
57a3e35b5b01579ba5e606d2899e923b
text
Text only
1
2025-04-03T15:31:03
True
False
False
Dec 25, 2019 at 02:13 AM
/api/public/snipt/64/
letsencyrpt
<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>certbot --apache
</span></pre></div>
</td></tr></table>
Letsencrypt, apache, linux
| return new WP_Error("filesystem_error", "Cannot initialize filesystem");
|
https://snipt.net/embed/c4d5e3856910e0a9ed65d7eed43dc5b6/
/raw/c4d5e3856910e0a9ed65d7eed43dc5b6/
c4d5e3856910e0a9ed65d7eed43dc5b6
text
Text only
2
2025-04-03T15:34:40
True
False
False
Jun 10, 2018 at 05:29 PM
/api/public/snipt/63/
wordpress-throw-error
<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>return new WP_Error("filesystem_error", "Cannot initialize filesystem");
</span></pre></div>
</td></tr></table>
| grep -i -R "Streapage" /home
|
https://snipt.net/embed/8594be5741f86470e2b1fa7903292e65/
/raw/8594be5741f86470e2b1fa7903292e65/
8594be5741f86470e2b1fa7903292e65
text
Text only
1
2025-04-03T15:31:34
True
False
False
Jun 07, 2018 at 05:53 PM
/api/public/snipt/62/
grep-example
<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>grep -i -R "Streapage" /home
</span></pre></div>
</td></tr></table>
grep, linux
| <label for="cc_month">Expiration Month:</label>
<select name="cc_month" id="cc_month">
<option value="0">--select--</option>
<option value="1">1 - January</option>
<option value="2">2 - February</option>
<option value="3">3 - March</option>
<option value="4">4 - April</option>
<option value="5">5 - May</option>
<option value="6">6 - June</option>
<option value="7">7 - July</option>
<option value="8">8 - August</option>
<option value="9">9 - September</option>
<option value="10">10 - October</option>
<option value="11">11 - November</option>
<option value="12">12 - December</option>
</select>
|
Expand
Collapse
(17 lines)
https://snipt.net/embed/f493ab9eb340be73fad44801f1cb1b4b/
/raw/f493ab9eb340be73fad44801f1cb1b4b/
f493ab9eb340be73fad44801f1cb1b4b
text
Text only
17
2025-03-28T13:58:07
True
False
False
May 25, 2018 at 05:46 PM
/api/public/snipt/61/
months-dropdown
<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>
<a href="#L-9"> 9</a>
<a href="#L-10">10</a>
<a href="#L-11">11</a>
<a href="#L-12">12</a>
<a href="#L-13">13</a>
<a href="#L-14">14</a>
<a href="#L-15">15</a>
<a href="#L-16">16</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a><label for="cc_month">Expiration Month:</label>
</span><span id="L-2"><a name="L-2"></a><select name="cc_month" id="cc_month">
</span><span id="L-3"><a name="L-3"></a> <option value="0">--select--</option>
</span><span id="L-4"><a name="L-4"></a> <option value="1">1 - January</option>
</span><span id="L-5"><a name="L-5"></a> <option value="2">2 - February</option>
</span><span id="L-6"><a name="L-6"></a> <option value="3">3 - March</option>
</span><span id="L-7"><a name="L-7"></a> <option value="4">4 - April</option>
</span><span id="L-8"><a name="L-8"></a> <option value="5">5 - May</option>
</span><span id="L-9"><a name="L-9"></a> <option value="6">6 - June</option>
</span><span id="L-10"><a name="L-10"></a> <option value="7">7 - July</option>
</span><span id="L-11"><a name="L-11"></a> <option value="8">8 - August</option>
</span><span id="L-12"><a name="L-12"></a> <option value="9">9 - September</option>
</span><span id="L-13"><a name="L-13"></a> <option value="10">10 - October</option>
</span><span id="L-14"><a name="L-14"></a> <option value="11">11 - November</option>
</span><span id="L-15"><a name="L-15"></a> <option value="12">12 - December</option>
</span><span id="L-16"><a name="L-16"></a></select>
</span></pre></div>
</td></tr></table>