snipt

Ctrl+h for KB shortcuts

Python

fire up virtualenv

source dev-env/bin/activate
https://snipt.net/embed/33f34c4c142a122e6c335c4bca50e427/
/raw/33f34c4c142a122e6c335c4bca50e427/
33f34c4c142a122e6c335c4bca50e427
python
Python
1
2019-07-18T17:29:58
True
False
False
/api/public/snipt/23780/
fire-up-virtualenv
<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="n">source</span> <span class="n">dev</span><span class="o">-</span><span class="n">env</span><span class="o">/</span><span class="nb">bin</span><span class="o">/</span><span class="n">activate</span> </span></pre></div> </td></tr></table>
virtualenv

Bash

move git repo

1
2
3
cd my-git-repo
git remote add beanstalk [email protected]:/userwish.git
git push beanstalk
https://snipt.net/embed/4176b38c1420b418f79c76c7334403e6/
/raw/4176b38c1420b418f79c76c7334403e6/
4176b38c1420b418f79c76c7334403e6
bash
Bash
3
2019-07-15T21:22:11
True
False
False
/api/public/snipt/23088/
move-git-repo
<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><span class="nb">cd</span> my-git-repo </span><span id="L-2"><a name="L-2"></a>git remote add beanstalk [email protected]:/userwish.git </span><span id="L-3"><a name="L-3"></a>git push beanstalk </span></pre></div> </td></tr></table>
git, move

Bash

clone svn repo into git

1
2
3
4
git svn clone http://account.svn.beanstalkapp.com/my-project my-project
cd my-project
git remote add beanstalk [email protected]:/userwish.git
git push beanstalk master
https://snipt.net/embed/e1ba315a8be8e76ea2e715ca36d3d46f/
/raw/e1ba315a8be8e76ea2e715ca36d3d46f/
e1ba315a8be8e76ea2e715ca36d3d46f
bash
Bash
4
2019-07-18T22:50:00
True
False
False
/api/public/snipt/23087/
clone-svn-repo-into-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>git svn clone http://account.svn.beanstalkapp.com/my-project my-project </span><span id="L-2"><a name="L-2"></a><span class="nb">cd</span> my-project </span><span id="L-3"><a name="L-3"></a>git remote add beanstalk [email protected]:/userwish.git </span><span id="L-4"><a name="L-4"></a>git push beanstalk master </span></pre></div> </td></tr></table>
clone, git, svn

Bash

Start git repo

1
2
3
4
5
6
git init
echo "This is my new project on Beanstalk." > README
git add README
git commit -m "My first commit."
git remote add beanstalk [email protected]:/userwish.git
git push beanstalk master
https://snipt.net/embed/7ba67e3508c0c0a3b29027235c881444/
/raw/7ba67e3508c0c0a3b29027235c881444/
7ba67e3508c0c0a3b29027235c881444
bash
Bash
6
2019-07-05T07:03:37
True
False
False
/api/public/snipt/23086/
start-git-repo
<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></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>git init </span><span id="L-2"><a name="L-2"></a><span class="nb">echo</span> <span class="s2">&quot;This is my new project on Beanstalk.&quot;</span> &gt; README </span><span id="L-3"><a name="L-3"></a>git add README </span><span id="L-4"><a name="L-4"></a>git commit -m <span class="s2">&quot;My first commit.&quot;</span> </span><span id="L-5"><a name="L-5"></a>git remote add beanstalk [email protected]:/userwish.git </span><span id="L-6"><a name="L-6"></a>git push beanstalk master </span></pre></div> </td></tr></table>
git

Text only

Show hidden files Mac OSX

defaults write com.apple.finder AppleShowAllFiles TRUE
killall Finder
https://snipt.net/embed/35f17595c6e35c0626898277cc65e285/
/raw/35f17595c6e35c0626898277cc65e285/
35f17595c6e35c0626898277cc65e285
text
Text only
2
2019-07-18T17:06:19
True
False
False
/api/public/snipt/22162/
show-hidden-files-mac-osx
<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>defaults write com.apple.finder AppleShowAllFiles TRUE </span><span id="L-2"><a name="L-2"></a>killall Finder </span></pre></div> </td></tr></table>
"mac os", terminal