Snipt.net is closing on December 31st, 2016

For more information, please visit this blog post.

snipt

Ctrl+h for KB shortcuts

PHP

Increase PHP memory limit from a Wordpress installation

1
2
3
4
5
<?php
// Add the following line to wp-config.php and change '128M' as yo need it
// Useful for hostings providers like godaddy, bluehost, dreamhost

define('WP_MEMORY_LIMIT', '128M');
https://snipt.net/embed/6b7605e3843153b31dcd798f6fa951e6/
https://snipt.net/raw/6b7605e3843153b31dcd798f6fa951e6/
6b7605e3843153b31dcd798f6fa951e6
php
PHP
6
2016-12-06T09:02:25
True
False
False
/api/public/snipt/108714/
increase-php-memory-limit-from-a-wordpress-installation
<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><span class="cp">&lt;?php</span> </span><span id="L-2"><a name="L-2"></a><span class="c1">// Add the following line to wp-config.php and change &#39;128M&#39; as yo need it</span> </span><span id="L-3"><a name="L-3"></a><span class="c1">// Useful for hostings providers like godaddy, bluehost, dreamhost</span> </span><span id="L-4"><a name="L-4"></a> </span><span id="L-5"><a name="L-5"></a><span class="nb">define</span><span class="p">(</span><span class="s1">&#39;WP_MEMORY_LIMIT&#39;</span><span class="p">,</span> <span class="s1">&#39;128M&#39;</span><span class="p">);</span> </span></pre></div> </td></tr></table>
bluehost, dreamhost, godaddy, memory, php, wordpress

PHP

Wordpress - Augmenter la mémoire

1
2
3
4
5
<?php

define('WP_MEMORY_LIMIT', '96M');

?>
https://snipt.net/embed/47d2689b95023fcf5c111855bc157614/
https://snipt.net/raw/47d2689b95023fcf5c111855bc157614/
47d2689b95023fcf5c111855bc157614
php
PHP
5
2016-12-02T12:18:46
True
False
False
/api/public/snipt/98434/
wordpress-augmenter-la-memoire
<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><span class="cp">&lt;?php</span> </span><span id="L-2"><a name="L-2"></a> </span><span id="L-3"><a name="L-3"></a><span class="nb">define</span><span class="p">(</span><span class="s1">&#39;WP_MEMORY_LIMIT&#39;</span><span class="p">,</span> <span class="s1">&#39;96M&#39;</span><span class="p">);</span> </span><span id="L-4"><a name="L-4"></a> </span><span id="L-5"><a name="L-5"></a><span class="cp">?&gt;</span><span class="x"></span> </span></pre></div> </td></tr></table>
memory, wordpress

Java

java clipboard access

this.clipboard = Toolkit.getDefaultToolkit().getSystemClipboard();
this.clipboard.addFlavorListener(new FlavorListener() {...});
https://snipt.net/embed/6e81f1621d8c050f4f581252876d2d8f/
https://snipt.net/raw/6e81f1621d8c050f4f581252876d2d8f/
6e81f1621d8c050f4f581252876d2d8f
java
Java
2
2016-12-07T09:19:35
True
False
False
/api/public/snipt/24128/
java-clipboard-access
<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><span class="k">this</span><span class="o">.</span><span class="na">clipboard</span> <span class="o">=</span> <span class="n">Toolkit</span><span class="o">.</span><span class="na">getDefaultToolkit</span><span class="o">().</span><span class="na">getSystemClipboard</span><span class="o">();</span> </span><span id="L-2"><a name="L-2"></a><span class="k">this</span><span class="o">.</span><span class="na">clipboard</span><span class="o">.</span><span class="na">addFlavorListener</span><span class="o">(</span><span class="k">new</span> <span class="n">FlavorListener</span><span class="o">()</span> <span class="o">{...});</span> </span></pre></div> </td></tr></table>
access, clipboard, java, listener, memory
Copyrighted, illegal, or inappropriate content? Email [email protected].