snipt

Ctrl+h for KB shortcuts

Bash

setting up system startup service

$ sudo update-rc.d jboss defaults
https://snipt.net/embed/02717e9e98fe3dfbe2aa69ea68cb0b5f/
https://snipt.net/raw/02717e9e98fe3dfbe2aa69ea68cb0b5f/
02717e9e98fe3dfbe2aa69ea68cb0b5f
bash
Bash
1
2016-09-28T10:07:40
True
False
False
Nov 24, 2012 at 05:54 PM
/api/public/snipt/50721/
setting-up-system-startup-service
<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 id="L-1"><a name="L-1"></a><span class="nv">$ </span>sudo update-rc.d jboss defaults </span></pre></div> </td></tr></table>
init.d, services, ubuntu

Batchfile

windows automatic updates

1
2
3
@echo off
:: usage: automatic-updates start|stop
net %1 wuauserv
https://snipt.net/embed/90ef6ad0b22eaefd10cfb973b82b7d79/
https://snipt.net/raw/90ef6ad0b22eaefd10cfb973b82b7d79/
90ef6ad0b22eaefd10cfb973b82b7d79
bat
Batchfile
3
2016-09-23T19:58:25
True
False
False
/api/public/snipt/21985/
windows-automatic-updates
<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 id="L-1"><a name="L-1"></a><span class="p">@</span><span class="k">echo</span> <span class="k">off</span> </span><span id="L-2"><a name="L-2"></a><span class="c">:: usage: automatic-updates start|stop</span> </span><span id="L-3"><a name="L-3"></a>net <span class="nv">%1</span> wuauserv </span></pre></div> </td></tr></table>
batch, services, windows

Batchfile

hide/unhide computer from network discovery

1
2
3
4
5
@echo off
:: usage: Network-Publication start|stop
REM hide/unhide from Homegroup and Network
net %1 "HomeGroup Provider"
net %1 "Function Discovery Resource Publication"
https://snipt.net/embed/f51c3f03dafd08baffd8244ad81e6558/
https://snipt.net/raw/f51c3f03dafd08baffd8244ad81e6558/
f51c3f03dafd08baffd8244ad81e6558
bat
Batchfile
5
2016-09-28T07:27:56
True
False
False
/api/public/snipt/20549/
hideunhide-from-network
<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 id="L-1"><a name="L-1"></a><span class="p">@</span><span class="k">echo</span> <span class="k">off</span> </span><span id="L-2"><a name="L-2"></a><span class="c">:: usage: Network-Publication start|stop</span> </span><span id="L-3"><a name="L-3"></a><span class="c">REM hide/unhide from Homegroup and Network</span> </span><span id="L-4"><a name="L-4"></a>net <span class="nv">%1</span> <span class="s2">&quot;HomeGroup Provider&quot;</span> </span><span id="L-5"><a name="L-5"></a>net <span class="nv">%1</span> <span class="s2">&quot;Function Discovery Resource Publication&quot;</span> </span></pre></div> </td></tr></table>
batch, network, services, windows
Copyrighted, illegal, or inappropriate content? Email support@snipt.net.