snipt

Ctrl+h for KB shortcuts

Bash

Battery info for Mac laptop

ioreg -w0 -l | grep Capacity | cut -d " " -f 17-50
https://snipt.net/embed/055e517e83424d6c009797dfa116dcb7/
/raw/055e517e83424d6c009797dfa116dcb7/
055e517e83424d6c009797dfa116dcb7
bash
Bash
1
2019-05-21T16:30:59
True
False
False
/api/public/snipt/867/
battery-info-for-mac-laptop
<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>ioreg -w0 -l <span class="p">|</span> grep Capacity <span class="p">|</span> cut -d <span class="s2">&quot; &quot;</span> -f 17-50 </span></pre></div> </td></tr></table>
osx

Bash

Find recent large files

find . -size +10000000c -newerct '14 days ago'
https://snipt.net/embed/f7ca1a19c43e9f0024f78a03a3835688/
/raw/f7ca1a19c43e9f0024f78a03a3835688/
f7ca1a19c43e9f0024f78a03a3835688
bash
Bash
1
2019-05-15T11:12:24
True
False
False
/api/public/snipt/866/
find-recent-large-files
<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>find . -size +10000000c -newerct <span class="s1">&#39;14 days ago&#39;</span> </span></pre></div> </td></tr></table>
bash