snipt

Ctrl+h for KB shortcuts

MuPAD

check syntax of all php files before an svn commit

for i in `svn status | egrep '^(M|A)' | sed -r 's/\+\s+//' | awk '{ print $2 }'` ; do if [ ! -d $i ] ; then php -l $i ; fi ; done
https://snipt.net/embed/e51cba722b07c0cc5a071d1fcd32b95f/
/raw/e51cba722b07c0cc5a071d1fcd32b95f/
e51cba722b07c0cc5a071d1fcd32b95f
mupad
MuPAD
1
2019-06-07T21:10:46
True
False
False
/api/public/snipt/30883/
check-syntax-of-all-php-files-before-an-svn-commit
<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">for</span> <span class="nv">i</span> <span class="ow">in</span> <span class="nv">`svn status | egrep &#39;^(M|A)&#39; | sed -r &#39;s/\+\s+//&#39; | awk &#39;{ print $2 }&#39;`</span> <span class="o">;</span> <span class="k">do</span> <span class="k">if</span> <span class="p">[</span> <span class="o">!</span> <span class="o">-</span><span class="nv">d</span> <span class="o">$</span><span class="nv">i</span> <span class="p">]</span> <span class="o">;</span> <span class="k">then</span> <span class="nv">php</span> <span class="o">-</span><span class="nv">l</span> <span class="o">$</span><span class="nv">i</span> <span class="o">;</span> <span class="nv">fi</span> <span class="o">;</span> <span class="nv">done</span> </span></pre></div> </td></tr></table>
bash, php, subversion, svn

MuPAD

use vim to get colorful diff output

svn diff | view -
https://snipt.net/embed/e90133f066ceed71f94a49b24b896daa/
/raw/e90133f066ceed71f94a49b24b896daa/
e90133f066ceed71f94a49b24b896daa
mupad
MuPAD
1
2019-06-12T03:27:52
True
False
False
/api/public/snipt/30881/
use-vim-to-get-colorful-diff-output
<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="nv">svn</span> <span class="nv">diff</span> <span class="o">|</span> <span class="nv">view</span> <span class="o">-</span> </span></pre></div> </td></tr></table>
bash, subversion, svn, vim

MuPAD

show top committers for the last month

svn log -r {`date +"%Y-%m-%d" -d "1 month ago"`}:HEAD|grep '^r[0-9]' |cut -d\| -f2|sort|uniq -c
https://snipt.net/embed/d72883ebadde361e0538599ddc8a7317/
/raw/d72883ebadde361e0538599ddc8a7317/
d72883ebadde361e0538599ddc8a7317
mupad
MuPAD
1
2019-06-16T15:29:05
True
False
False
/api/public/snipt/30880/
show-top-committers-for-the-last-month
<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="nv">svn</span> <span class="nv">log</span> <span class="o">-</span><span class="nv">r</span> <span class="p">{</span><span class="nv">`date +&quot;%Y-%m-%d&quot; -d &quot;1 month ago&quot;`</span><span class="p">}</span><span class="o">:</span><span class="nv">HEAD</span><span class="o">|</span><span class="nv">grep</span> <span class="o">&#39;^</span><span class="nv">r</span><span class="p">[</span><span class="m">0</span><span class="o">-</span><span class="m">9</span><span class="p">]</span><span class="o">&#39;</span> <span class="o">|</span><span class="nv">cut</span> <span class="o">-</span><span class="nv">d</span>\<span class="o">|</span> <span class="o">-</span><span class="nv">f2</span><span class="o">|</span><span class="nv">sort</span><span class="o">|</span><span class="nv">uniq</span> <span class="o">-</span><span class="nv">c</span> </span></pre></div> </td></tr></table>
bash, subversion, svn

MuPAD

list of files committed for the last 10 days

svn diff -r{`date -d "-10 day" +"%Y-%m-%d"`}:HEAD --summarize . | grep . | awk '{print $2}' | grep -E -v '^\.$'
https://snipt.net/embed/52eaadcd1a4391a833dba189674356c0/
/raw/52eaadcd1a4391a833dba189674356c0/
52eaadcd1a4391a833dba189674356c0
mupad
MuPAD
1
2019-06-05T00:47:35
True
False
False
/api/public/snipt/30867/
list-of-files-committed-for-the-last-10-days
<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="nv">svn</span> <span class="nv">diff</span> <span class="o">-</span><span class="nv">r</span><span class="p">{</span><span class="nv">`date -d &quot;-10 day&quot; +&quot;%Y-%m-%d&quot;`</span><span class="p">}</span><span class="o">:</span><span class="nv">HEAD</span> <span class="o">--</span><span class="nv">summarize</span> <span class="o">.</span> <span class="o">|</span> <span class="nv">grep</span> <span class="o">.</span> <span class="o">|</span> <span class="nv">awk</span> <span class="o">&#39;</span><span class="p">{</span><span class="nv">print</span> <span class="o">$</span><span class="m">2</span><span class="p">}</span><span class="o">&#39;</span> <span class="o">|</span> <span class="nv">grep</span> <span class="o">-</span><span class="no">E</span> <span class="o">-</span><span class="nv">v</span> <span class="o">&#39;^</span>\<span class="o">.$&#39;</span> </span></pre></div> </td></tr></table>
bash, subversion, svn

MuPAD

show top committers for SVN repositority for today

svn log -r {`date "+%Y-%m-%d"`}:HEAD|grep '^r[0-9]' |cut -d\| -f2|sort|uniq -c
https://snipt.net/embed/5b8264fca16f6754b19cc4ce6ad16a59/
/raw/5b8264fca16f6754b19cc4ce6ad16a59/
5b8264fca16f6754b19cc4ce6ad16a59
mupad
MuPAD
1
2019-06-09T16:27:49
True
False
False
/api/public/snipt/30866/
show-top-committers-for-svn-repositority-for-today
<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="nv">svn</span> <span class="nv">log</span> <span class="o">-</span><span class="nv">r</span> <span class="p">{</span><span class="nv">`date &quot;+%Y-%m-%d&quot;`</span><span class="p">}</span><span class="o">:</span><span class="nv">HEAD</span><span class="o">|</span><span class="nv">grep</span> <span class="o">&#39;^</span><span class="nv">r</span><span class="p">[</span><span class="m">0</span><span class="o">-</span><span class="m">9</span><span class="p">]</span><span class="o">&#39;</span> <span class="o">|</span><span class="nv">cut</span> <span class="o">-</span><span class="nv">d</span>\<span class="o">|</span> <span class="o">-</span><span class="nv">f2</span><span class="o">|</span><span class="nv">sort</span><span class="o">|</span><span class="nv">uniq</span> <span class="o">-</span><span class="nv">c</span> </span></pre></div> </td></tr></table>
bash, subversion, svn