Snipt.net is closing on December 31st, 2016

For more information, please visit this blog post.

snipt

Ctrl+h for KB shortcuts

Text only

change mac address of interface

1
2
3
4
ifconfig <interface> down
ifconfig <interface> hw ether 00:80:48:BA:d1:30
ifconfig <interface> up
ifconfig <interface> |grep HWaddr
https://snipt.net/embed/472f163420b38d816fc75eff141f188c/
https://snipt.net/raw/472f163420b38d816fc75eff141f188c/
472f163420b38d816fc75eff141f188c
text
Text only
4
2016-12-07T10:20:09
True
False
False
/api/public/snipt/13675/
change-mac-address-of-interface
<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>ifconfig &lt;interface&gt; down </span><span id="L-2"><a name="L-2"></a>ifconfig &lt;interface&gt; hw ether 00:80:48:BA:d1:30 </span><span id="L-3"><a name="L-3"></a>ifconfig &lt;interface&gt; up </span><span id="L-4"><a name="L-4"></a>ifconfig &lt;interface&gt; |grep HWaddr </span></pre></div> </td></tr></table>
change, interface, macaddress

Bash

retrieves the name of the first ethernet interface

1
2
3
ifconfig -a | grep -i "link[ ]*encap[ ]*:[ ]*ethernet" | awk 'BEGIN{ iface="z" }
{ if( $1 ~ /^eth/ && iface > $1 ) iface=$1 }
END{ print iface }'
https://snipt.net/embed/c0d56ee8c9b6176b238ec51b931e244c/
https://snipt.net/raw/c0d56ee8c9b6176b238ec51b931e244c/
c0d56ee8c9b6176b238ec51b931e244c
bash
Bash
3
2016-12-08T15:08:13
True
False
False
/api/public/snipt/13606/
retrieves-the-name-of-the-first-ethernet-interface
<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>ifconfig -a <span class="p">|</span> grep -i <span class="s2">&quot;link[ ]*encap[ ]*:[ ]*ethernet&quot;</span> <span class="p">|</span> awk <span class="s1">&#39;BEGIN{ iface=&quot;z&quot; }</span> </span><span id="L-2"><a name="L-2"></a><span class="s1">{ if( $1 ~ /^eth/ &amp;&amp; iface &gt; $1 ) iface=$1 }</span> </span><span id="L-3"><a name="L-3"></a><span class="s1">END{ print iface }&#39;</span> </span></pre></div> </td></tr></table>
eth, eth0, ifconfig, interface

Text only

set new interface of google.com

javascript:void(document.cookie="PREF=ID=20b6e4c2f44943bb:U=4bf292d46faad806:TM=1249677602:LM=1257919388:S=odm0Ys-53ZueXfZG;path=/; domain=.google.com");
https://snipt.net/embed/8b142b16f06508bf5fe0bc2e633d9753/
https://snipt.net/raw/8b142b16f06508bf5fe0bc2e633d9753/
8b142b16f06508bf5fe0bc2e633d9753
text
Text only
1
2016-12-08T21:36:02
True
False
False
/api/public/snipt/10791/
set-new-interface-of-googlecom
<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>javascript:void(document.cookie=&quot;PREF=ID=20b6e4c2f44943bb:U=4bf292d46faad806:TM=1249677602:LM=1257919388:S=odm0Ys-53ZueXfZG;path=/; domain=.google.com&quot;); </span></pre></div> </td></tr></table>
google, interface, search

Text only

switch to new google interface

javascript:alert(document.cookie="PREF=ID=fb7740f107311e46:TM=1142683332:LM=1142683332:S=fNSw6ljXTzvL3dWu;path=/;domain=."+location.href.split('/')[2].substr(location.href.split('/')[2].indexOf('google')));
https://snipt.net/embed/7c70d254d94e2511653d3a56a0f2a8f1/
https://snipt.net/raw/7c70d254d94e2511653d3a56a0f2a8f1/
7c70d254d94e2511653d3a56a0f2a8f1
text
Text only
1
2016-12-09T14:40:14
True
False
False
/api/public/snipt/10385/
switch-to-new-google-interface
<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>javascript:alert(document.cookie=&quot;PREF=ID=fb7740f107311e46:TM=1142683332:LM=1142683332:S=fNSw6ljXTzvL3dWu;path=/;domain=.&quot;+location.href.split(&#39;/&#39;)[2].substr(location.href.split(&#39;/&#39;)[2].indexOf(&#39;google&#39;))); </span></pre></div> </td></tr></table>
google, interface
Copyrighted, illegal, or inappropriate content? Email [email protected].