Snipt.net is closing on December 31st, 2016

For more information, please visit this blog post.

snipt

Ctrl+h for KB shortcuts

Text only

Drush change password of user

drush upwd <username> --password=<password>
https://snipt.net/embed/6eda162bbba949390e710e96bb022bfe/
https://snipt.net/raw/6eda162bbba949390e710e96bb022bfe/
6eda162bbba949390e710e96bb022bfe
text
Text only
1
2016-12-09T13:30:11
True
False
False
Apr 09, 2014 at 12:10 PM
/api/public/snipt/128696/
drush-change-password-of-user
<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>drush upwd &lt;username&gt; --password=&lt;password&gt; </span></pre></div> </td></tr></table>
drush

Text only

Untitled

https://github.com/drush-ops/drush
https://snipt.net/embed/c1d1f43d9f0c95b38b8883b06b68278a/
https://snipt.net/raw/c1d1f43d9f0c95b38b8883b06b68278a/
c1d1f43d9f0c95b38b8883b06b68278a
text
Text only
1
2016-12-09T14:38:40
True
False
False
Apr 07, 2014 at 05:57 PM
/api/public/snipt/128194/
-16811
<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>https://github.com/drush-ops/drush </span></pre></div> </td></tr></table>
drush

Text only

Drush - create admin one time login link

drush uli
https://snipt.net/embed/1aeca05879833fc88eaaad46af55ea36/
https://snipt.net/raw/1aeca05879833fc88eaaad46af55ea36/
1aeca05879833fc88eaaad46af55ea36
text
Text only
1
2016-12-06T20:56:27
True
False
False
Feb 12, 2014 at 08:23 AM
/api/public/snipt/113017/
drush-create-admin-one-time-login-link
<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>drush uli </span></pre></div> </td></tr></table>
drush

Text only

Drush command to clear the flood table

drush sqlq 'delete from flood'
https://snipt.net/embed/321059cd00c51eedc47c81039f9ff3d4/
https://snipt.net/raw/321059cd00c51eedc47c81039f9ff3d4/
321059cd00c51eedc47c81039f9ff3d4
text
Text only
1
2016-12-10T07:42:02
True
False
False
/api/public/snipt/97903/
drush-command-to-clear-the-flood-table
<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>drush sqlq &#39;delete from flood&#39; </span></pre></div> </td></tr></table>
drupal7, drush

Bash Session

Install Drupal Drush in Webfaction

1
2
3
4
5
cd ~
wget http://ftp.drupal.org/files/projects/drush-7.x-5.9.tar.gz
tar zxvf drush-7.x-5.9.tar.gz
ln -s ~/drush/drush ~/bin/drush
rm drush-7.x-5.9.tar.gz
https://snipt.net/embed/f32b14c4665e3b47db22cf84950ef8cb/
https://snipt.net/raw/f32b14c4665e3b47db22cf84950ef8cb/
f32b14c4665e3b47db22cf84950ef8cb
shell-session
Bash Session
5
2016-12-05T11:40:34
True
False
False
/api/public/snipt/73008/
install-drupal-drush-in-webfaction
<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></span><span id="L-1"><a name="L-1"></a><span class="go">cd ~</span> </span><span id="L-2"><a name="L-2"></a><span class="go">wget http://ftp.drupal.org/files/projects/drush-7.x-5.9.tar.gz</span> </span><span id="L-3"><a name="L-3"></a><span class="go">tar zxvf drush-7.x-5.9.tar.gz</span> </span><span id="L-4"><a name="L-4"></a><span class="go">ln -s ~/drush/drush ~/bin/drush</span> </span><span id="L-5"><a name="L-5"></a><span class="go">rm drush-7.x-5.9.tar.gz</span> </span></pre></div> </td></tr></table>
drupal, drush, webfaction

Bash

drush - sync DB from stager to local

drush sql-sync @<alias.stager> @<alias.local> --no-ordered-dump
https://snipt.net/embed/23c602ff333037653ca185494fe85190/
https://snipt.net/raw/23c602ff333037653ca185494fe85190/
23c602ff333037653ca185494fe85190
bash
Bash
1
2016-12-05T11:41:06
True
False
False
/api/public/snipt/70191/
drush-sync-db-from-stager-to-local
<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>drush sql-sync @&lt;alias.stager&gt; @&lt;alias.local&gt; --no-ordered-dump </span></pre></div> </td></tr></table>
bash, drush, terminal
Copyrighted, illegal, or inappropriate content? Email [email protected].