snipt

Ctrl+h for KB shortcuts

PowerShell

Users logged into computer

1
2
3
// This gets a lsit of users logged onto the machine.

qwinsta /server:mycomputername
https://snipt.net/embed/2276ab6b390c2891f70715e99c2420de/
/raw/2276ab6b390c2891f70715e99c2420de/
2276ab6b390c2891f70715e99c2420de
powershell
PowerShell
3
2019-08-22T19:24:19
True
False
False
/api/public/snipt/115818/
-12244
<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="p">//</span> <span class="n">This</span> <span class="n">gets</span> <span class="n">a</span> <span class="n">lsit</span> <span class="n">of</span> <span class="n">users</span> <span class="n">logged</span> <span class="n">onto</span> <span class="n">the</span> <span class="n">machine</span><span class="p">.</span> </span><span id="L-2"><a name="L-2"></a> </span><span id="L-3"><a name="L-3"></a><span class="n">qwinsta</span> <span class="p">/</span><span class="n">server</span><span class="err">:</span><span class="n">mycomputername</span> </span></pre></div> </td></tr></table>

SQL

SPROC Create / Alter Date

1
2
3
4
5
6
7
8
select 
	SPECIFIC_NAME AS procedureName, 
	SPECIFIC_CATALOG AS databaseName, 
	CREATED AS createDate, 
	LAST_ALTERED as lastAlteredDate
from 
	information_schema.routines 
where routine_name = 'SPROCName'
https://snipt.net/embed/c08ad2535ea649e60c298fce8eb637a3/
/raw/c08ad2535ea649e60c298fce8eb637a3/
c08ad2535ea649e60c298fce8eb637a3
sql
SQL
8
2019-08-22T19:25:27
True
False
False
Jan 15, 2014 at 08:44 AM
/api/public/snipt/106049/
sproc-create-alter-date
<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><span class="k">select</span> </span><span id="L-2"><a name="L-2"></a> <span class="k">SPECIFIC_NAME</span> <span class="k">AS</span> <span class="n">procedureName</span><span class="p">,</span> </span><span id="L-3"><a name="L-3"></a> <span class="n">SPECIFIC_CATALOG</span> <span class="k">AS</span> <span class="n">databaseName</span><span class="p">,</span> </span><span id="L-4"><a name="L-4"></a> <span class="n">CREATED</span> <span class="k">AS</span> <span class="n">createDate</span><span class="p">,</span> </span><span id="L-5"><a name="L-5"></a> <span class="n">LAST_ALTERED</span> <span class="k">as</span> <span class="n">lastAlteredDate</span> </span><span id="L-6"><a name="L-6"></a><span class="k">from</span> </span><span id="L-7"><a name="L-7"></a> <span class="n">information_schema</span><span class="p">.</span><span class="n">routines</span> </span><span id="L-8"><a name="L-8"></a><span class="k">where</span> <span class="k">routine_name</span> <span class="o">=</span> <span class="s1">&#39;SPROCName&#39;</span> </span></pre></div> </td></tr></table>
"alter date", "create date", SPROC

HTML

Bootstrap Alert

1
2
3
4
<div class="alert">
    <button type="button" class="close" data-dismiss="alert">&times;</button>
    <strong>Warning!</strong> XAML is not HTML
</div>
https://snipt.net/embed/41bc00528785775dd45bf71a11ee3b07/
/raw/41bc00528785775dd45bf71a11ee3b07/
41bc00528785775dd45bf71a11ee3b07
html
HTML
4
2019-08-22T19:26:39
True
False
False
Nov 13, 2013 at 11:48 AM
/api/public/snipt/93952/
bootstrap-alert
<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="p">&lt;</span><span class="nt">div</span> <span class="na">class</span><span class="o">=</span><span class="s">&quot;alert&quot;</span><span class="p">&gt;</span> </span><span id="L-2"><a name="L-2"></a> <span class="p">&lt;</span><span class="nt">button</span> <span class="na">type</span><span class="o">=</span><span class="s">&quot;button&quot;</span> <span class="na">class</span><span class="o">=</span><span class="s">&quot;close&quot;</span> <span class="na">data-dismiss</span><span class="o">=</span><span class="s">&quot;alert&quot;</span><span class="p">&gt;</span><span class="ni">&amp;times;</span><span class="p">&lt;/</span><span class="nt">button</span><span class="p">&gt;</span> </span><span id="L-3"><a name="L-3"></a> <span class="p">&lt;</span><span class="nt">strong</span><span class="p">&gt;</span>Warning!<span class="p">&lt;/</span><span class="nt">strong</span><span class="p">&gt;</span> XAML is not HTML </span><span id="L-4"><a name="L-4"></a><span class="p">&lt;/</span><span class="nt">div</span><span class="p">&gt;</span> </span></pre></div> </td></tr></table>
alert, bootstrap