snipt

Ctrl+h for KB shortcuts

Markdown

Command line

Strop process ctrl + C

https://snipt.net/embed/d7a5c9b5c509ab2b4865f4a0a4b8e0c6/
https://snipt.net/raw/d7a5c9b5c509ab2b4865f4a0a4b8e0c6/
d7a5c9b5c509ab2b4865f4a0a4b8e0c6
markdown
Markdown
1
2016-09-25T11:20:46
True
False
True
Feb 13, 2014 at 02:30 AM
/api/public/snipt/113282/
command-line-2
<p>Strop process <code>ctrl</code> + <code>C</code></p>
command

Markdown

Command check version mack os

check version and detail os

system_profiler SPSoftwareDataType

check version only

sw_vers -productVersion

https://snipt.net/embed/5e3210d06d55408f3ef81bfc50e64f38/
https://snipt.net/raw/5e3210d06d55408f3ef81bfc50e64f38/
5e3210d06d55408f3ef81bfc50e64f38
markdown
Markdown
8
2016-09-24T18:37:03
True
False
True
Dec 04, 2013 at 04:20 AM
/api/public/snipt/98426/
command-check-version-mack-os
<p>check version and detail os</p> <p><code>system_profiler SPSoftwareDataType</code></p> <p>check version only </p> <p><code>sw_vers -productVersion</code></p>
check, command, osx, version

Bash

svn update with no interaction and accept certificate from cli

svn up --username <user> --password <psw> --non-interactive --trust-server-cert
https://snipt.net/embed/8ee9a30e7f44092e596ab7820a8c1502/
https://snipt.net/raw/8ee9a30e7f44092e596ab7820a8c1502/
8ee9a30e7f44092e596ab7820a8c1502
bash
Bash
1
2016-09-25T04:40:25
True
False
False
Jul 19, 2013 at 09:24 AM
/api/public/snipt/68603/
svn-update-with-no-interaction-and-accept-certificate-from-cli
<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>svn up --username &lt;user&gt; --password &lt;psw&gt; --non-interactive --trust-server-cert </span></pre></div> </td></tr></table>
accept, certificate, cli, command, line, linux, shell, svn, up, update

Bash

Quick rsync

1
2
3
4
5
svn update

find . \( -not -ipath *.svn* -not -iname changed-list.txt \) -mmin -60 > ./changed-list.txt

rsync -v --files-from=./changed-list.txt . user@server-address:/path/to/code/directory
https://snipt.net/embed/1e4b90cca7a7c682270f3ddab1df9978/
https://snipt.net/raw/1e4b90cca7a7c682270f3ddab1df9978/
1e4b90cca7a7c682270f3ddab1df9978
bash
Bash
6
2016-09-22T03:13:40
True
False
False
/api/public/snipt/27794/
quick-rsync
<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>svn update </span><span id="L-2"><a name="L-2"></a> </span><span id="L-3"><a name="L-3"></a>find . <span class="se">\(</span> -not -ipath *.svn* -not -iname changed-list.txt <span class="se">\)</span> -mmin -60 &gt; ./changed-list.txt </span><span id="L-4"><a name="L-4"></a> </span><span id="L-5"><a name="L-5"></a>rsync -v --files-from<span class="o">=</span>./changed-list.txt . user@server-address:/path/to/code/directory </span></pre></div> </td></tr></table>
bash, command, rsync, svn
Copyrighted, illegal, or inappropriate content? Email support@snipt.net.