snipt

Ctrl+h for KB shortcuts

Text only

stop dock icons bouncing behavior

defaults write com.apple.dock no-bouncing -bool TRUE && killall Dock
https://snipt.net/embed/efc7b6a1df4064b633f62b633cd5dbb0/
/raw/efc7b6a1df4064b633f62b633cd5dbb0/
efc7b6a1df4064b633f62b633cd5dbb0
text
Text only
1
2016-12-13T11:04:30
True
False
True
Apr 15, 2014 at 09:40 AM
/api/public/snipt/130193/
stop-dock-icons-bouncing-behavior
<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>defaults write com.apple.dock no-bouncing -bool TRUE &amp;&amp; killall Dock </span></pre></div> </td></tr></table>
dock, mac

Text only

PHP show errors

ini_set('error_reporting', E_ALL);
https://snipt.net/embed/02e786ea58bc9677b2518c6307f58945/
/raw/02e786ea58bc9677b2518c6307f58945/
02e786ea58bc9677b2518c6307f58945
text
Text only
1
2019-08-17T08:33:42
True
False
False
Feb 25, 2014 at 04:34 AM
/api/public/snipt/116541/
php-show-errors
<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>ini_set(&#39;error_reporting&#39;, E_ALL); </span></pre></div> </td></tr></table>
apache, php

Text only

Load jQuery from Google CDN , or load from your site if it's not available!

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script><script>window.jQuery || document.write('<script src="http://website.com/js/jquery-1.8.2.min.js"><\/script>')</script>
https://snipt.net/embed/877a66c9a0c13e0799d70ddb40d7474e/
/raw/877a66c9a0c13e0799d70ddb40d7474e/
877a66c9a0c13e0799d70ddb40d7474e
text
Text only
1
2019-02-13T20:13:47
True
False
True
Feb 12, 2014 at 12:21 PM
/api/public/snipt/113085/
load-jquery-from-google-cdn-or-load-from-your-site-if-its-not-available
<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>&lt;script src=&quot;http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js&quot;&gt;&lt;/script&gt;&lt;script&gt;window.jQuery || document.write(&#39;&lt;script src=&quot;http://website.com/js/jquery-1.8.2.min.js&quot;&gt;&lt;\/script&gt;&#39;)&lt;/script&gt; </span></pre></div> </td></tr></table>
cdn, jquery

Text only

Increment php upload file size (add in htaccess)

php_value post_max_size 30M
php_value upload_max_filesize 30M
https://snipt.net/embed/23b1348ea164525fe04eb511ff37121d/
/raw/23b1348ea164525fe04eb511ff37121d/
23b1348ea164525fe04eb511ff37121d
text
Text only
2
2016-12-24T10:14:27
True
False
True
Jan 11, 2014 at 01:42 PM
/api/public/snipt/105048/
increment-php-upload-file-size-add-in-htaccess
<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>php_value post_max_size 30M </span><span id="L-2"><a name="L-2"></a>php_value upload_max_filesize 30M </span></pre></div> </td></tr></table>
htaccess, php, wordpress

PHP

Wordpress - get the theme URL

<?php echo get_template_directory_uri(); ?>
https://snipt.net/embed/ba0d1bb6e4d14bcf9c8c94a71693a2e8/
/raw/ba0d1bb6e4d14bcf9c8c94a71693a2e8/
ba0d1bb6e4d14bcf9c8c94a71693a2e8
php
PHP
1
2016-12-27T22:37:50
True
False
True
Jun 14, 2013 at 10:00 AM
/api/public/snipt/64220/
wordpress-get-the-theme-url
<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="cp">&lt;?php</span> <span class="k">echo</span> <span class="nx">get_template_directory_uri</span><span class="p">();</span> <span class="cp">?&gt;</span><span class="x"></span> </span></pre></div> </td></tr></table>
wordpress

Text only

Calculate MD5 off a string

from mac terminal:
md5 -q -s mypassword
https://snipt.net/embed/8d2cdaa4f0adaf7708045c2c4fb54674/
/raw/8d2cdaa4f0adaf7708045c2c4fb54674/
8d2cdaa4f0adaf7708045c2c4fb54674
text
Text only
2
2019-08-18T06:20:32
True
False
False
Dec 14, 2012 at 10:44 AM
/api/public/snipt/51852/
calculate-md5-off-a-string
<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>from mac terminal: </span><span id="L-2"><a name="L-2"></a>md5 -q -s mypassword </span></pre></div> </td></tr></table>
mac, md5

Text only

Show hidden files in mac os

1
2
3
4
5
in the terminal write
defaults write com.apple.Finder AppleShowAllFiles YES
relaunch finder with ctrl+alt+click on icon
defaults write com.apple.Finder AppleShowAllFiles NO
to keep back
https://snipt.net/embed/d71acc16695737340aeed36e5a22f9e3/
/raw/d71acc16695737340aeed36e5a22f9e3/
d71acc16695737340aeed36e5a22f9e3
text
Text only
5
2016-12-25T20:12:09
True
False
True
Dec 10, 2012 at 04:33 AM
/api/public/snipt/51517/
show-hidden-files-in-mac-os
<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>in the terminal write </span><span id="L-2"><a name="L-2"></a>defaults write com.apple.Finder AppleShowAllFiles YES </span><span id="L-3"><a name="L-3"></a>relaunch finder with ctrl+alt+click on icon </span><span id="L-4"><a name="L-4"></a>defaults write com.apple.Finder AppleShowAllFiles NO </span><span id="L-5"><a name="L-5"></a>to keep back </span></pre></div> </td></tr></table>
mac