snipt

Ctrl+h for KB shortcuts

Bash

start unicorn server

$ [email protected]:/home/web/somlor.com/private$ unicorn -c unicorn.rb -D
https://snipt.net/embed/1f6b66e754ec990517775d4472836246/
/raw/1f6b66e754ec990517775d4472836246/
1f6b66e754ec990517775d4472836246
bash
Bash
1
2019-08-21T04:15:02
True
False
False
/api/public/snipt/55113/
start-unicorn-server
<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>$ [email protected]:/home/web/somlor.com/private$ unicorn -c unicorn.rb -D </span></pre></div> </td></tr></table>
bash, linux, rails, ruby, server, sinatra, ubuntu, unicorn, webdev

Bash

make directory and multiple subdirectories at once

$ mkdir -p somlor.com/{public,private,log,backup}
https://snipt.net/embed/7ad7fadab1f1a41534a1b25198eff333/
/raw/7ad7fadab1f1a41534a1b25198eff333/
7ad7fadab1f1a41534a1b25198eff333
bash
Bash
1
2019-08-22T02:41:28
True
False
False
Feb 23, 2013 at 07:10 PM
/api/public/snipt/53807/
make-directory-and-multiple-subdirectories-at-once
<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>$ mkdir -p somlor.com/<span class="o">{</span>public,private,log,backup<span class="o">}</span> </span></pre></div> </td></tr></table>
directory, folder, mkdir, ubuntu, web, webdev

Bash

SASS watch changes script for Windows (save in .bat file and run)

sass --watch "style.scss":"style.css"
https://snipt.net/embed/77e83aeeaa6abe96bfcac18e763f222c/
/raw/77e83aeeaa6abe96bfcac18e763f222c/
77e83aeeaa6abe96bfcac18e763f222c
bash
Bash
1
2019-08-21T04:15:24
True
False
False
Feb 12, 2013 at 01:16 PM
/api/public/snipt/48431/
sass-watch-changes-script-for-windows-save-in-bat-file-and-run
<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>sass --watch <span class="s2">&quot;style.scss&quot;</span>:<span class="s2">&quot;style.css&quot;</span> </span></pre></div> </td></tr></table>
css, ruby, sass, webdev, windows

Bash

SASS watch changes script for OS X (save in .command file and run)

cd $(dirname "$0")
sass --watch "style.scss":"style.css"
https://snipt.net/embed/545eedf4c165272bbce7e4b217c0d2e2/
/raw/545eedf4c165272bbce7e4b217c0d2e2/
545eedf4c165272bbce7e4b217c0d2e2
bash
Bash
2
2016-12-29T18:36:25
True
False
True
Feb 12, 2013 at 01:17 PM
/api/public/snipt/48430/
sass-watch-changes-script-for-os-x-save-in-command-file-and-run
<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><span class="nb">cd</span> <span class="k">$(</span>dirname <span class="s2">&quot;</span><span class="nv">$0</span><span class="s2">&quot;</span><span class="k">)</span> </span><span id="L-2"><a name="L-2"></a>sass --watch <span class="s2">&quot;style.scss&quot;</span>:<span class="s2">&quot;style.css&quot;</span> </span></pre></div> </td></tr></table>
"os x", css, ruby, sass, webdev