snipt

Ctrl+h for KB shortcuts

Bash

a few ubuntu commands

1
2
3
4
5
6
mount -o remount,rw /
sudo apt-get install ntfs-config
apt-get dist-upgrade
apt-get update
chmod 000 /etc/shadow
chown root:root /usr/bin/sudo
https://snipt.net/embed/e7cba006c63fec091835bdc60b89a8f1/
/raw/e7cba006c63fec091835bdc60b89a8f1/
e7cba006c63fec091835bdc60b89a8f1
bash
Bash
6
2019-08-23T15:43:01
True
False
False
/api/public/snipt/35341/
a-few-ubuntu-commands
<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></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>mount -o remount,rw / </span><span id="L-2"><a name="L-2"></a>sudo apt-get install ntfs-config </span><span id="L-3"><a name="L-3"></a>apt-get dist-upgrade </span><span id="L-4"><a name="L-4"></a>apt-get update </span><span id="L-5"><a name="L-5"></a>chmod <span class="m">000</span> /etc/shadow </span><span id="L-6"><a name="L-6"></a>chown root:root /usr/bin/sudo </span></pre></div> </td></tr></table>
bash

Bash

uninstall homebrew

1
2
3
4
5
6
7
8
cd `brew --prefix`
rm -rf Cellar
brew prune
rm -rf Library .git .gitignore bin/brew README.md share/man/man1/brew
rm -rf ~/Library/Caches/Homebrew

---
This should also revert your /usr/local folder to its pre-Homebrew days. See the Homebrew installation wiki (http://github.com/mxcl/homebrew/wiki/installation) for more information.
https://snipt.net/embed/aa127681f8fc01ce04f79700a93d81d4/
/raw/aa127681f8fc01ce04f79700a93d81d4/
aa127681f8fc01ce04f79700a93d81d4
bash
Bash
8
2019-08-24T06:45:30
True
False
False
/api/public/snipt/29855/
uninstall-homebrew
<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="nb">cd</span> <span class="sb">`</span>brew --prefix<span class="sb">`</span> </span><span id="L-2"><a name="L-2"></a>rm -rf Cellar </span><span id="L-3"><a name="L-3"></a>brew prune </span><span id="L-4"><a name="L-4"></a>rm -rf Library .git .gitignore bin/brew README.md share/man/man1/brew </span><span id="L-5"><a name="L-5"></a>rm -rf ~/Library/Caches/Homebrew </span><span id="L-6"><a name="L-6"></a> </span><span id="L-7"><a name="L-7"></a>--- </span><span id="L-8"><a name="L-8"></a>This should also revert your /usr/local folder to its pre-Homebrew days. See the Homebrew installation wiki <span class="o">(</span>http://github.com/mxcl/homebrew/wiki/installation<span class="o">)</span> <span class="k">for</span> more information. </span></pre></div> </td></tr></table>
"os x", brew, homebrew, uninstall

JavaScript

http2https bookmarklet

javascript:(function(){ if (location.href.indexOf("http") !== -1) { location.href = location.href.replace("http", "https"); } })();
https://snipt.net/embed/7c0cd0858956ac7022a1731c8d34dc87/
/raw/7c0cd0858956ac7022a1731c8d34dc87/
7c0cd0858956ac7022a1731c8d34dc87
js
JavaScript
1
2019-08-24T04:35:53
True
False
False
/api/public/snipt/23249/
http2https-bookmarklet
<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><span class="nx">javascript</span><span class="o">:</span><span class="p">(</span><span class="kd">function</span><span class="p">(){</span> <span class="k">if</span> <span class="p">(</span><span class="nx">location</span><span class="p">.</span><span class="nx">href</span><span class="p">.</span><span class="nx">indexOf</span><span class="p">(</span><span class="s2">&quot;http&quot;</span><span class="p">)</span> <span class="o">!==</span> <span class="o">-</span><span class="mi">1</span><span class="p">)</span> <span class="p">{</span> <span class="nx">location</span><span class="p">.</span><span class="nx">href</span> <span class="o">=</span> <span class="nx">location</span><span class="p">.</span><span class="nx">href</span><span class="p">.</span><span class="nx">replace</span><span class="p">(</span><span class="s2">&quot;http&quot;</span><span class="p">,</span> <span class="s2">&quot;https&quot;</span><span class="p">);</span> <span class="p">}</span> <span class="p">})();</span> </span></pre></div> </td></tr></table>
bookmarklet, https, javascript