snipt

Ctrl+h for KB shortcuts

Bash

PIP - GIT, HG, SVN

1
2
3
4
# install python modules from git, hg and svn using PIP
pip install git+http://hostname_or_ip/path/to/git-repo#egg=packagename
pip install hg+http://hostname_or_ip/path/to/hg-repo#egg=packagename
pip install svn+http://hostname_or_ip/path/to/svn-repo#egg=packagename
https://snipt.net/embed/d50ed7184ba804dda308c07838a95b1e/
/raw/d50ed7184ba804dda308c07838a95b1e/
d50ed7184ba804dda308c07838a95b1e
bash
Bash
4
2019-06-13T10:48:35
True
False
False
Aug 04, 2012 at 08:25 AM
/api/public/snipt/45138/
pip-git
<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><span class="c1"># install python modules from git, hg and svn using PIP</span> </span><span id="L-2"><a name="L-2"></a>pip install git+http://hostname_or_ip/path/to/git-repo#egg<span class="o">=</span>packagename </span><span id="L-3"><a name="L-3"></a>pip install hg+http://hostname_or_ip/path/to/hg-repo#egg<span class="o">=</span>packagename </span><span id="L-4"><a name="L-4"></a>pip install svn+http://hostname_or_ip/path/to/svn-repo#egg<span class="o">=</span>packagename </span></pre></div> </td></tr></table>
git, hg, pip, python, svn

Bash

Mercurial case fail.

1
2
3
4
5
6
7
8
destination directory: dotfiles
requesting all changes
adding changesets
adding manifests
adding file changes
added 188 changesets with 1304 changes to 714 files
updating to branch default
abort: case-folding collision between .vim/bundle/vim-coffee-script/copying.md and .vim/bundle/vim-coffee-script/Copying.md
https://snipt.net/embed/95fb67a646f2849641d05fb6dc8676c8/
/raw/95fb67a646f2849641d05fb6dc8676c8/
95fb67a646f2849641d05fb6dc8676c8
bash
Bash
8
2019-06-17T22:50:32
True
False
False
/api/public/snipt/43337/
mercurial-case-fail
<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> <a href="#L-6">6</a> <a href="#L-7">7</a> <a href="#L-8">8</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>destination directory: dotfiles </span><span id="L-2"><a name="L-2"></a>requesting all changes </span><span id="L-3"><a name="L-3"></a>adding changesets </span><span id="L-4"><a name="L-4"></a>adding manifests </span><span id="L-5"><a name="L-5"></a>adding file changes </span><span id="L-6"><a name="L-6"></a>added <span class="m">188</span> changesets with <span class="m">1304</span> changes to <span class="m">714</span> files </span><span id="L-7"><a name="L-7"></a>updating to branch default </span><span id="L-8"><a name="L-8"></a>abort: <span class="k">case</span>-folding collision between .vim/bundle/vim-coffee-script/copying.md and .vim/bundle/vim-coffee-script/Copying.md </span></pre></div> </td></tr></table>
bash, hg, mercurial

Bash

remove files by extension from mercurial repo

find . -type f -name "*.pyc" -exec hg remove -f {} \;
https://snipt.net/embed/0338abc7f0aa7585d725d3c60cc57aa6/
/raw/0338abc7f0aa7585d725d3c60cc57aa6/
0338abc7f0aa7585d725d3c60cc57aa6
bash
Bash
1
2019-06-12T00:44:09
True
False
False
/api/public/snipt/3186/
remove-files-by-extension-from-mercurial-repo
<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>find . -type f -name <span class="s2">&quot;*.pyc&quot;</span> -exec hg remove -f <span class="o">{}</span> <span class="se">\;</span> </span></pre></div> </td></tr></table>
hg, mercurial, remove