snipt

Ctrl+h for KB shortcuts

Bash

Generate certificate

openssl req -new -x509 -days 1826 -nodes -out server.crt -keyout server.key
https://snipt.net/embed/fbe9d3e167fe7af286460844df72dd59/
/raw/fbe9d3e167fe7af286460844df72dd59/
fbe9d3e167fe7af286460844df72dd59
bash
Bash
1
2019-07-15T03:25:31
True
False
True
Oct 21, 2012 at 11:44 AM
/api/public/snipt/48849/
generate-certificate
<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>openssl req -new -x509 -days <span class="m">1826</span> -nodes -out server.crt -keyout server.key </span></pre></div> </td></tr></table>
bash, certificate

Bash

Recursive tar folder

tar cvzf www.tar.gz --recursive /folder
https://snipt.net/embed/d0c6ea3f276a4ab28ca9b3d16c48b0a5/
/raw/d0c6ea3f276a4ab28ca9b3d16c48b0a5/
d0c6ea3f276a4ab28ca9b3d16c48b0a5
bash
Bash
1
2016-12-23T18:46:07
True
False
True
Oct 01, 2012 at 11:09 AM
/api/public/snipt/47863/
recursive-tar-folder
<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>tar cvzf www.tar.gz --recursive /folder </span></pre></div> </td></tr></table>
"recursive tar", tar

Bash

SVN Recursive add

svn add --force ./*
https://snipt.net/embed/e2a75621ce7783dd25cfa4f6cc5e59cf/
/raw/e2a75621ce7783dd25cfa4f6cc5e59cf/
e2a75621ce7783dd25cfa4f6cc5e59cf
bash
Bash
1
2016-12-20T09:57:25
True
False
True
Sep 22, 2012 at 09:58 PM
/api/public/snipt/47519/
svn-recursive-add
<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>svn add --force ./* </span></pre></div> </td></tr></table>
"svn add", "svn recursive add"

Bash

SVN Revert to revision

svn merge -r REV_FROM:REV_TO .
svn commit -m "Reverted to ..."
https://snipt.net/embed/fec4726876e70c3777fbc6e956c6e8a0/
/raw/fec4726876e70c3777fbc6e956c6e8a0/
fec4726876e70c3777fbc6e956c6e8a0
bash
Bash
2
2016-12-22T08:48:42
True
False
True
Sep 15, 2012 at 12:17 PM
/api/public/snipt/47227/
svn-revert-to-revision
<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>svn merge -r REV_FROM:REV_TO . </span><span id="L-2"><a name="L-2"></a>svn commit -m <span class="s2">&quot;Reverted to ...&quot;</span> </span></pre></div> </td></tr></table>
"svn revert", svn