| git log origin/master..hotfix57981
git fetch origin
git merge origin/master
git diff origin/master..hotfxi57981
|
https://snipt.net/embed/3ca7979752696c6264ebb3ce025b65c2/
/raw/3ca7979752696c6264ebb3ce025b65c2/
3ca7979752696c6264ebb3ce025b65c2
text
Text only
7
2025-03-28T14:02:44
True
False
False
Nov 06, 2020 at 07:14 PM
/api/public/snipt/112/
git-compare-to-master
<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>git log origin/master..hotfix57981
</span><span id="L-2"><a name="L-2"></a>
</span><span id="L-3"><a name="L-3"></a>git fetch origin
</span><span id="L-4"><a name="L-4"></a>git merge origin/master
</span><span id="L-5"><a name="L-5"></a>
</span><span id="L-6"><a name="L-6"></a>git diff origin/master..hotfxi57981
</span></pre></div>
</td></tr></table>
git
| <Files "xmlrpc.php">
Require all denied
</Files>
|
https://snipt.net/embed/4b1dd1b574688a808a589c81607ebefa/
/raw/4b1dd1b574688a808a589c81607ebefa/
4b1dd1b574688a808a589c81607ebefa
text
Text only
4
2025-04-02T16:26:59
True
False
False
/api/public/snipt/111/
deny-xmlrpc
<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></span><span id="L-1"><a name="L-1"></a><Files "xmlrpc.php">
</span><span id="L-2"><a name="L-2"></a> Require all denied
</span><span id="L-3"><a name="L-3"></a></Files>
</span></pre></div>
</td></tr></table>
apache
| git checkout -b [name_of_your_new_branch]
git push -u ascend [name_of_your_new_branch]
No Need: git branch --set-upstream-to=origin/[name_of_your_new_branch] [name_of_your_new_branch]
|
https://snipt.net/embed/0c2c73ce066fea216bf19f062b6b8433/
/raw/0c2c73ce066fea216bf19f062b6b8433/
0c2c73ce066fea216bf19f062b6b8433
text
Text only
3
2025-04-03T18:12:12
True
False
False
Oct 06, 2022 at 07:42 PM
/api/public/snipt/110/
create-branch
<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></span><span id="L-1"><a name="L-1"></a>git checkout -b [name_of_your_new_branch]
</span><span id="L-2"><a name="L-2"></a>git push -u ascend [name_of_your_new_branch]
</span><span id="L-3"><a name="L-3"></a>No Need: git branch --set-upstream-to=origin/[name_of_your_new_branch] [name_of_your_new_branch]
</span></pre></div>
</td></tr></table>
git
| docker rm $(docker ps -a -q)
|
https://snipt.net/embed/329f12f12ec9c27a47e6a30384ff17a9/
/raw/329f12f12ec9c27a47e6a30384ff17a9/
329f12f12ec9c27a47e6a30384ff17a9
text
Text only
1
2025-04-03T15:47:03
True
False
False
Dec 03, 2019 at 10:50 PM
/api/public/snipt/109/
remove-all-stopped-containers
<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>docker rm $(docker ps -a -q)
</span></pre></div>
</td></tr></table>
docker
| select count(*) from members as m where date(CONVERT_TZ(m.created_at,'GMT','America/Los_Angeles')) = date(CONVERT_TZ(now(),'GMT','America/Los_Angeles'))
|
https://snipt.net/embed/941235bcc8e346718e4aa614b692402e/
/raw/941235bcc8e346718e4aa614b692402e/
941235bcc8e346718e4aa614b692402e
text
Text only
1
2025-04-03T15:50:09
True
False
False
Sep 02, 2019 at 06:16 AM
/api/public/snipt/108/
timezone-adjusted-span-query
<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>select count(*) from members as m where date(CONVERT_TZ(m.created_at,'GMT','America/Los_Angeles')) = date(CONVERT_TZ(now(),'GMT','America/Los_Angeles'))
</span></pre></div>
</td></tr></table>
mysql
| function tl_save_error() {
update_option( 'plugin_error', ob_get_contents() );
}
add_action( 'activated_plugin', 'tl_save_error' );
/* Then to display the error message: */
echo get_option( 'plugin_error' );
|
https://snipt.net/embed/b295acb7b1a32b379d7f56134267265c/
/raw/b295acb7b1a32b379d7f56134267265c/
b295acb7b1a32b379d7f56134267265c
text
Text only
6
2025-04-03T15:52:12
True
False
False
Jul 29, 2019 at 03:45 PM
/api/public/snipt/107/
wordpress-plugin-activation-error-capture
<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>function tl_save_error() {
</span><span id="L-2"><a name="L-2"></a> update_option( 'plugin_error', ob_get_contents() );
</span><span id="L-3"><a name="L-3"></a>}
</span><span id="L-4"><a name="L-4"></a>add_action( 'activated_plugin', 'tl_save_error' );
</span><span id="L-5"><a name="L-5"></a>/* Then to display the error message: */
</span><span id="L-6"><a name="L-6"></a>echo get_option( 'plugin_error' );
</span></pre></div>
</td></tr></table>
wordpress
| 2>&1
echo exec("ping -c 1 $domain_bad 2>&1", $output, $return_var);
|
https://snipt.net/embed/a1c173baa3da0cc5c6cd955c78df00c0/
/raw/a1c173baa3da0cc5c6cd955c78df00c0/
a1c173baa3da0cc5c6cd955c78df00c0
text
Text only
3
2025-04-03T15:35:11
True
False
False
/api/public/snipt/106/
output-from-exec-in-php
<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></span><span id="L-1"><a name="L-1"></a>2>&1
</span><span id="L-2"><a name="L-2"></a>
</span><span id="L-3"><a name="L-3"></a>echo exec("ping -c 1 $domain_bad 2>&1", $output, $return_var);
</span></pre></div>
</td></tr></table>
php
| error_reporting(E_ALL);
ini_set('display_errors', 1);
|
https://snipt.net/embed/f26cc04a358cc409ad6718a045db6275/
/raw/f26cc04a358cc409ad6718a045db6275/
f26cc04a358cc409ad6718a045db6275
text
Text only
2
2025-04-03T15:21:30
True
False
False
Jul 15, 2019 at 03:20 PM
/api/public/snipt/105/
display-errors
<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>error_reporting(E_ALL);
</span><span id="L-2"><a name="L-2"></a>ini_set('display_errors', 1);
</span></pre></div>
</td></tr></table>
error, php
| mysql -u root -D db_name -e "show tables" -s |
egrep "^wp_2_" |
xargs -I "@@" echo mysql -u root -D db_name -e "DROP TABLE @@"
|
https://snipt.net/embed/e5a728f8eb841e563749391bd636044e/
/raw/e5a728f8eb841e563749391bd636044e/
e5a728f8eb841e563749391bd636044e
text
Text only
3
2025-04-03T15:40:20
True
False
False
Jun 24, 2019 at 02:30 PM
/api/public/snipt/72/
drop-multiple-tables-wildcard
<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></span><span id="L-1"><a name="L-1"></a>mysql -u root -D db_name -e "show tables" -s |
</span><span id="L-2"><a name="L-2"></a> egrep "^wp_2_" |
</span><span id="L-3"><a name="L-3"></a> xargs -I "@@" echo mysql -u root -D db_name -e "DROP TABLE @@"
</span></pre></div>
</td></tr></table>
| sprintf('%04X%04X-%04X-%04X-%04X-%04X%04X%04X', mt_rand(0, 65535), mt_rand(0, 65535), mt_rand(0, 65535), mt_rand(16384, 20479), mt_rand(32768, 49151), mt_rand(0, 65535), mt_rand(0, 65535), mt_rand(0, 65535));
|
https://snipt.net/embed/c87ac7b6d29bb26f7a38ecff5a4c898a/
/raw/c87ac7b6d29bb26f7a38ecff5a4c898a/
c87ac7b6d29bb26f7a38ecff5a4c898a
text
Text only
1
2025-04-03T15:29:30
True
False
False
Jun 04, 2019 at 04:23 PM
/api/public/snipt/71/
php-generate-guid
<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>sprintf('%04X%04X-%04X-%04X-%04X-%04X%04X%04X', mt_rand(0, 65535), mt_rand(0, 65535), mt_rand(0, 65535), mt_rand(16384, 20479), mt_rand(32768, 49151), mt_rand(0, 65535), mt_rand(0, 65535), mt_rand(0, 65535));
</span></pre></div>
</td></tr></table>
guid, php