Snipt.net is closing on December 31st, 2016

For more information, please visit this blog post.

snipt

Ctrl+h for KB shortcuts

Elixir

elixir > list of all loaded module names

:code.all_loaded |> Enum.map(fn(t) -> IO.puts elem(t,0) end)
https://snipt.net/embed/d57f6b47a604e58c63d3fefeecf1bb4c/
https://snipt.net/raw/d57f6b47a604e58c63d3fefeecf1bb4c/
d57f6b47a604e58c63d3fefeecf1bb4c
elixir
Elixir
1
2016-12-10T07:46:48
True
False
False
Jan 16, 2016 at 12:43 AM
/api/public/snipt/143607/
elixir-list-of-all-loaded-module-names
<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="ss">:code</span><span class="o">.</span><span class="n">all_loaded</span> <span class="o">|&gt;</span> <span class="nc">Enum</span><span class="o">.</span><span class="n">map</span><span class="p">(</span><span class="k">fn</span><span class="p">(</span><span class="n">t</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="nc">IO</span><span class="o">.</span><span class="n">puts</span> <span class="n">elem</span><span class="p">(</span><span class="n">t</span><span class="p">,</span><span class="mi">0</span><span class="p">)</span> <span class="k">end</span><span class="p">)</span> </span></pre></div> </td></tr></table>
elixir, erlang, iex, mix, modules

BBCode

Prestashop Events Manager

1
2
3
The events manage allows merchants to manage events with advance dynamic features offered by this Prestashop modules. The customers can buy ticket for the upcoming events.

For More - http://www.fmemodules.com/
https://snipt.net/embed/f58a5ec43b8323fe8ad4826c596fe126/
https://snipt.net/raw/f58a5ec43b8323fe8ad4826c596fe126/
f58a5ec43b8323fe8ad4826c596fe126
bbcode
BBCode
3
2016-12-04T08:19:49
True
False
False
/api/public/snipt/67722/
prestashop-events-manager
<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>The events manage allows merchants to manage events with advance dynamic features offered by this Prestashop modules. The customers can buy ticket for the upcoming events. </span><span id="L-2"><a name="L-2"></a> </span><span id="L-3"><a name="L-3"></a>For More - http://www.fmemodules.com/ </span></pre></div> </td></tr></table>
Prestashop, modules

Tcl

Sanity check for within modulefiles(4)

1
2
3
if {[file isdirectory "$esio_dir"]} {} else {
    puts stderr "[module-info name] reports $esio_dir is not a directory"
}
https://snipt.net/embed/f98eda3a5150953478aca85e431094bc/
https://snipt.net/raw/f98eda3a5150953478aca85e431094bc/
f98eda3a5150953478aca85e431094bc
tcl
Tcl
4
2016-12-04T08:20:37
True
False
False
/api/public/snipt/30033/
sanity-check-for-within-modulefiles4
<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><span class="k">if</span> <span class="k">{[</span><span class="nb">file</span> isdirectory <span class="s2">&quot;$esio_dir&quot;</span><span class="k">]}</span> <span class="k">{}</span> <span class="k">else</span> <span class="k">{</span> </span><span id="L-2"><a name="L-2"></a> <span class="nb">puts</span> stderr <span class="s2">&quot;[module-info name] reports $esio_dir is not a directory&quot;</span> </span><span id="L-3"><a name="L-3"></a><span class="k">}</span> </span></pre></div> </td></tr></table>
modules

PHP

Inject data into a module position

1
2
3
4
// Inject data from your component into the right module position
JFactory::getDocument()->setBuffer($data, 'modules', 'right');

// Note: Data will not be shown unless there are "real" modules present in position right
https://snipt.net/embed/59aaa7762502d28b3510bf05eeff312f/
https://snipt.net/raw/59aaa7762502d28b3510bf05eeff312f/
59aaa7762502d28b3510bf05eeff312f
php
PHP
4
2016-12-10T19:52:40
True
False
False
/api/public/snipt/27729/
inject-data-into-a-module-position
<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><span class="x">// Inject data from your component into the right module position</span> </span><span id="L-2"><a name="L-2"></a><span class="x">JFactory::getDocument()-&gt;setBuffer($data, &#39;modules&#39;, &#39;right&#39;);</span> </span><span id="L-3"><a name="L-3"></a> </span><span id="L-4"><a name="L-4"></a><span class="x">// Note: Data will not be shown unless there are &quot;real&quot; modules present in position right</span> </span></pre></div> </td></tr></table>
joomla, modules

Text only

alpha list of modules installed in your apache configuration

httpd -l | sort
https://snipt.net/embed/6fbe5c9b34550fde2ce0b76021460e4c/
https://snipt.net/raw/6fbe5c9b34550fde2ce0b76021460e4c/
6fbe5c9b34550fde2ce0b76021460e4c
text
Text only
1
2016-12-10T09:19:51
True
False
False
/api/public/snipt/13805/
alpha-list-of-modules-installed-in-your-apache-configuration
<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>httpd -l | sort </span></pre></div> </td></tr></table>
apache, modules

Bash

See which modules are loaded in Apache (on OSX)

/usr/sbin/apachectl -l
https://snipt.net/embed/a17534013b8b9c8126a807f9e06917a4/
https://snipt.net/raw/a17534013b8b9c8126a807f9e06917a4/
a17534013b8b9c8126a807f9e06917a4
bash
Bash
1
2016-12-10T10:53:39
True
False
False
/api/public/snipt/10839/
see-which-modules-are-loaded-in-apache-on-osx
<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/sbin/apachectl -l </span></pre></div> </td></tr></table>
apache, modules, osx

Bash

checkout drupal contrib module

cvs -z6 -d:pserver:anonymous:[email protected]:/cvs/drupal-contrib checkout -r <version tag> -d moduleName contributions/modules/moduleName
https://snipt.net/embed/55ac008d59c1d06c0ee724b88b23f416/
https://snipt.net/raw/55ac008d59c1d06c0ee724b88b23f416/
55ac008d59c1d06c0ee724b88b23f416
bash
Bash
1
2016-12-10T07:33:02
True
False
False
/api/public/snipt/3321/
checkout-drupal-contrib-module
<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>cvs -z6 -d:pserver:anonymous:[email protected]:/cvs/drupal-contrib checkout -r &lt;version tag&gt; -d moduleName contributions/modules/moduleName </span></pre></div> </td></tr></table>
checkout, contrib, cvs, drupal, modules
Copyrighted, illegal, or inappropriate content? Email [email protected].