snipt

Ctrl+h for KB shortcuts

Bash

suchen in linux

grep -H -r "muster" *
https://snippets.siftie.com/embed/a7915be2dbc49871cad4738c8f5bd81b/
/raw/a7915be2dbc49871cad4738c8f5bd81b/
a7915be2dbc49871cad4738c8f5bd81b
bash
Bash
1
2019-03-31T09:51:33
True
False
False
/api/public/snipt/12650/
suchen-in-linux
<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 -H -r <span class="s2">&quot;muster&quot;</span> * </span></pre></div> </td></tr></table>
bash, linux

HTML+PHP

hide a widget with default value in symfony 1.2

1
2
3
<?php
// to hide a widget with default value
$this->setWidget('conference_id', new sfWidgetFormInputHidden(array(),array('value' => ConferencePeer::getActiveConferenceId())));
https://snippets.siftie.com/embed/bd3fc02bbbcd85ce35113fe4eb37c506/
/raw/bd3fc02bbbcd85ce35113fe4eb37c506/
bd3fc02bbbcd85ce35113fe4eb37c506
html+php
HTML+PHP
3
2019-04-09T02:52:20
True
False
False
/api/public/snipt/12337/
hide-a-widget-with-default-value
<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="cp">&lt;?php</span> </span><span id="L-2"><a name="L-2"></a><span class="c1">// to hide a widget with default value</span> </span><span id="L-3"><a name="L-3"></a><span class="nv">$this</span><span class="o">-&gt;</span><span class="na">setWidget</span><span class="p">(</span><span class="s1">&#39;conference_id&#39;</span><span class="p">,</span> <span class="k">new</span> <span class="nx">sfWidgetFormInputHidden</span><span class="p">(</span><span class="k">array</span><span class="p">(),</span><span class="k">array</span><span class="p">(</span><span class="s1">&#39;value&#39;</span> <span class="o">=&gt;</span> <span class="nx">ConferencePeer</span><span class="o">::</span><span class="na">getActiveConferenceId</span><span class="p">())));</span> </span></pre></div> </td></tr></table>
sfwidgetforminputhidden, symfony, widget

MySQL

create DB utf8

CREATE DATABASE dbname CHARACTER SET utf8 COLLATE utf8_general_ci;
https://snippets.siftie.com/embed/341de786438a92806c909ca3b2e3f0d2/
/raw/341de786438a92806c909ca3b2e3f0d2/
341de786438a92806c909ca3b2e3f0d2
mysql
MySQL
1
2019-04-06T23:03:40
True
False
False
/api/public/snipt/12030/
create-db-utf8
<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="k">CREATE</span> <span class="k">DATABASE</span> <span class="n">dbname</span> <span class="k">CHARACTER</span> <span class="kt">SET</span> <span class="n">utf8</span> <span class="k">COLLATE</span> <span class="n">utf8_general_ci</span><span class="p">;</span> </span></pre></div> </td></tr></table>
mysql, sql

Bash

view symfony log file

$ tail -f log/frontend_dev.log
https://snippets.siftie.com/embed/282d54df26f50c7cd97a4fb84e924d20/
/raw/282d54df26f50c7cd97a4fb84e924d20/
282d54df26f50c7cd97a4fb84e924d20
bash
Bash
2
2019-04-15T12:44:02
True
False
False
/api/public/snipt/11798/
view-symfony-log-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>$ tail -f log/frontend_dev.log </span></pre></div> </td></tr></table>
log, symfony