snipt

Ctrl+h for KB shortcuts

Bash

Remove old compress files from git & project

1
2
3
ls -t1 compressed/css.min.*.css | tail -n+6 | xargs -r git rm #last 5

git commit -v -m "removed old compressed js/css"
https://snipt.net/embed/75fef8ec4b9fc8f0230c0aa5a41cc2ab/
/raw/75fef8ec4b9fc8f0230c0aa5a41cc2ab/
75fef8ec4b9fc8f0230c0aa5a41cc2ab
bash
Bash
5
2019-07-19T06:56:27
True
False
False
Sep 16, 2013 at 05:13 AM
/api/public/snipt/81176/
remove-old-compress-files-from-git-project
<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>ls -t1 compressed/css.min.*.css <span class="p">|</span> tail -n+6 <span class="p">|</span> xargs -r git rm <span class="c1">#last 5</span> </span><span id="L-2"><a name="L-2"></a> </span><span id="L-3"><a name="L-3"></a>git commit -v -m <span class="s2">&quot;removed old compressed js/css&quot;</span> </span></pre></div> </td></tr></table>
deploy

Text only

Fix capistrano on osx

eval `ssh-agent` && ssh-add
https://snipt.net/embed/9dcd2802d86c1a5b534db1cd64f254aa/
/raw/9dcd2802d86c1a5b534db1cd64f254aa/
9dcd2802d86c1a5b534db1cd64f254aa
text
Text only
1
2019-07-23T04:02:32
True
False
False
/api/public/snipt/28296/
fix-capistrano-on-osx
<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>eval `ssh-agent` &amp;&amp; ssh-add </span></pre></div> </td></tr></table>
capistrano, deploy, osx