snipt

Ctrl+h for KB shortcuts

Text only

pineapple userlist

1
2
3
4
5
6
<safe>
<script>
$("#userList").css('background-image', 'url("http://spinalcaredirectory.com/wp-content/uploads/2010/11/pineapple.jpg")');
</script>

</safe>
https://snipt.net/embed/32d0161c66d86d9deae7c0bc8bfb8d7c/
https://snipt.net/raw/32d0161c66d86d9deae7c0bc8bfb8d7c/
32d0161c66d86d9deae7c0bc8bfb8d7c
text
Text only
6
2016-09-22T04:46:40
True
False
False
/api/public/snipt/34787/
pineapple-userlist
<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 id="L-1"><a name="L-1"></a>&lt;safe&gt; </span><span id="L-2"><a name="L-2"></a>&lt;script&gt; </span><span id="L-3"><a name="L-3"></a>$(&quot;#userList&quot;).css(&#39;background-image&#39;, &#39;url(&quot;http://spinalcaredirectory.com/wp-content/uploads/2010/11/pineapple.jpg&quot;)&#39;); </span><span id="L-4"><a name="L-4"></a>&lt;/script&gt; </span><span id="L-5"><a name="L-5"></a> </span><span id="L-6"><a name="L-6"></a>&lt;/safe&gt; </span></pre></div> </td></tr></table>
dump

Bash

backup mysql

1
2
3
4
5
#hacer copia de seguridad de base de datos en mysql
mysqldump --opt --password=miclave --user=miuser mibasededatos > archivo.sql

#resturar la copia de seguridad
mysql --password=miclave --user=miuser mibase < archivo.sql
https://snipt.net/embed/00751c547d341c6d8f47bfc5b21d68d2/
https://snipt.net/raw/00751c547d341c6d8f47bfc5b21d68d2/
00751c547d341c6d8f47bfc5b21d68d2
bash
Bash
5
2016-09-26T05:17:07
True
False
False
/api/public/snipt/27942/
backup-mysql
<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 id="L-1"><a name="L-1"></a><span class="c">#hacer copia de seguridad de base de datos en mysql</span> </span><span id="L-2"><a name="L-2"></a>mysqldump --opt --password<span class="o">=</span>miclave --user<span class="o">=</span>miuser mibasededatos &gt; archivo.sql </span><span id="L-3"><a name="L-3"></a> </span><span id="L-4"><a name="L-4"></a><span class="c">#resturar la copia de seguridad</span> </span><span id="L-5"><a name="L-5"></a>mysql --password<span class="o">=</span>miclave --user<span class="o">=</span>miuser mibase &lt; archivo.sql </span></pre></div> </td></tr></table>
backup, dump, mysql, mysqldump, restore

Bash

dump postgres schema

1
2
3
4
5
#dump postgres
su - postgres -c "/usr/bin/pg_dump dbname | gzip -c > /path/dbname.sql.gz"

#dump only schema
su - postgres -c "/usr/bin/pg_dump -s dbname | gzip -c > /path/dbname_schema.sql.gz"
https://snipt.net/embed/869683e174a385507555fd0ec84d98a0/
https://snipt.net/raw/869683e174a385507555fd0ec84d98a0/
869683e174a385507555fd0ec84d98a0
bash
Bash
5
2016-09-26T23:04:45
True
False
False
/api/public/snipt/27810/
dump-postgres-schema
<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 id="L-1"><a name="L-1"></a><span class="c">#dump postgres</span> </span><span id="L-2"><a name="L-2"></a>su - postgres -c <span class="s2">&quot;/usr/bin/pg_dump dbname | gzip -c &gt; /path/dbname.sql.gz&quot;</span> </span><span id="L-3"><a name="L-3"></a> </span><span id="L-4"><a name="L-4"></a><span class="c">#dump only schema</span> </span><span id="L-5"><a name="L-5"></a>su - postgres -c <span class="s2">&quot;/usr/bin/pg_dump -s dbname | gzip -c &gt; /path/dbname_schema.sql.gz&quot;</span> </span></pre></div> </td></tr></table>
backup, db, dump, postgres

ActionScript 3

Dump / trace object properties

1
2
3
import mx.utils.ObjectUtil;

ObjectUtil.toString(obj)
https://snipt.net/embed/6b499333ac41f4a54ed1ae4e7726c838/
https://snipt.net/raw/6b499333ac41f4a54ed1ae4e7726c838/
6b499333ac41f4a54ed1ae4e7726c838
as3
ActionScript 3
3
2016-09-27T08:14:40
True
False
False
/api/public/snipt/20073/
dump-trace-object-properties
<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 id="L-1"><a name="L-1"></a><span class="k">import</span> <span class="nn">mx.utils.ObjectUtil</span><span class="o">;</span> </span><span id="L-2"><a name="L-2"></a> </span><span id="L-3"><a name="L-3"></a><span class="n">ObjectUtil</span><span class="o">.</span><span class="na">toString</span><span class="o">(</span><span class="n">obj</span><span class="o">)</span> </span></pre></div> </td></tr></table>
as3, dump, inspect, trace

SQL

mysql file into db

mysql -p -h DBSERVER dbname < dbname.sql
https://snipt.net/embed/13853083a708e55b35cd78695bdd5b32/
https://snipt.net/raw/13853083a708e55b35cd78695bdd5b32/
13853083a708e55b35cd78695bdd5b32
sql
SQL
2
2016-09-13T14:54:29
True
False
False
/api/public/snipt/17681/
mysql-file-into-db
<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 id="L-1"><a name="L-1"></a><span class="n">mysql</span> <span class="o">-</span><span class="n">p</span> <span class="o">-</span><span class="n">h</span> <span class="n">DBSERVER</span> <span class="n">dbname</span> <span class="o">&lt;</span> <span class="n">dbname</span><span class="p">.</span><span class="k">sql</span> </span></pre></div> </td></tr></table>
dump, import, mysql
Copyrighted, illegal, or inappropriate content? Email support@snipt.net.