snipt

Ctrl+h for KB shortcuts

Text only

U SUCK

System.out.println("GG GOOD GAME FOR JAVA. HOOO SEEHHHH BO.");
https://snipt.net/embed/8dd06d23d35be3ec28d46034519996f0/
/raw/8dd06d23d35be3ec28d46034519996f0/
8dd06d23d35be3ec28d46034519996f0
text
Text only
1
2019-08-20T23:00:05
True
False
False
/api/public/snipt/33252/
u-suck
<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>System.out.println(&quot;GG GOOD GAME FOR JAVA. HOOO SEEHHHH BO.&quot;); </span></pre></div> </td></tr></table>
i, suck, too

Text only

How can i make an backup of the snipt.net snippts ???

1
2
3
4
How can i make an backup of the snipt.net snippts ???
(my own snipt's for example)

Can anyone help me ?
https://snipt.net/embed/342522694f9d00c68840299bdc92fd46/
/raw/342522694f9d00c68840299bdc92fd46/
342522694f9d00c68840299bdc92fd46
text
Text only
4
2019-08-21T03:17:22
True
False
False
/api/public/snipt/19481/
how-can-i-make-an-backup-of-the-sniptnet-snippts
<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>How can i make an backup of the snipt.net snippts ??? </span><span id="L-2"><a name="L-2"></a>(my own snipt&#39;s for example) </span><span id="L-3"><a name="L-3"></a> </span><span id="L-4"><a name="L-4"></a>Can anyone help me ? </span></pre></div> </td></tr></table>
???, an, backup, can, how, i, make, of, snippts, snipt.net, the

Bash

backup databases from a list of i

1
2
3
mysql -u admin -p`cat /etc/psa/.psa.shadow` psa -e 'SELECT data_bases.name AS "database" FROM data_bases;' > dbnames | sed 's/database//g' dbnames > dbnames2 && cat dbnames2

for i in `cat dbnames2`; do mysqldump --add-drop-table -u admin -p$(cat /etc/psa/.psa.shadow) $i > ${i}-`date +"%m-%d-%y"`.sql; done
https://snipt.net/embed/f3e69c3986a6e8faf0f2d1c02faf229a/
/raw/f3e69c3986a6e8faf0f2d1c02faf229a/
f3e69c3986a6e8faf0f2d1c02faf229a
bash
Bash
4
2019-08-21T03:20:31
True
False
False
/api/public/snipt/9430/
backup-databases-from-a-list-of-i
<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>mysql -u admin -p<span class="sb">`</span>cat /etc/psa/.psa.shadow<span class="sb">`</span> psa -e <span class="s1">&#39;SELECT data_bases.name AS &quot;database&quot; FROM data_bases;&#39;</span> &gt; dbnames <span class="p">|</span> sed <span class="s1">&#39;s/database//g&#39;</span> dbnames &gt; dbnames2 <span class="o">&amp;&amp;</span> cat dbnames2 </span><span id="L-2"><a name="L-2"></a> </span><span id="L-3"><a name="L-3"></a><span class="k">for</span> i in <span class="sb">`</span>cat dbnames2<span class="sb">`</span><span class="p">;</span> <span class="k">do</span> mysqldump --add-drop-table -u admin -p<span class="k">$(</span>cat /etc/psa/.psa.shadow<span class="k">)</span> <span class="nv">$i</span> &gt; <span class="si">${</span><span class="nv">i</span><span class="si">}</span>-<span class="sb">`</span>date +<span class="s2">&quot;%m-%d-%y&quot;</span><span class="sb">`</span>.sql<span class="p">;</span> <span class="k">done</span> </span></pre></div> </td></tr></table>
backup, databases, for, i