Snipt.net is closing on December 31st, 2016

For more information, please visit this blog post.

snipt

Ctrl+h for KB shortcuts

Text only

stop dock icons bouncing behavior

defaults write com.apple.dock no-bouncing -bool TRUE && killall Dock
https://snipt.net/embed/efc7b6a1df4064b633f62b633cd5dbb0/
https://snipt.net/raw/efc7b6a1df4064b633f62b633cd5dbb0/
efc7b6a1df4064b633f62b633cd5dbb0
text
Text only
1
2016-12-07T04:12:22
True
False
True
Apr 15, 2014 at 09:40 AM
/api/public/snipt/130193/
stop-dock-icons-bouncing-behavior
<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>defaults write com.apple.dock no-bouncing -bool TRUE &amp;&amp; killall Dock </span></pre></div> </td></tr></table>
dock, mac

Bash Session

Mount remote server drive with OSXFUSE and ssh

sshfs [-p PORT-NUMBER] [email protected]:/remote/path /Local/Path/to/an/existing/folder
https://snipt.net/embed/178080a463bae7bdfcf47a9de1f1fd0b/
https://snipt.net/raw/178080a463bae7bdfcf47a9de1f1fd0b/
178080a463bae7bdfcf47a9de1f1fd0b
shell-session
Bash Session
1
2016-12-06T12:31:09
True
False
False
Feb 05, 2014 at 09:52 AM
/api/public/snipt/111141/
mount-remote-server-drive-with-osxfuse-and-ssh
<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="go">sshfs [-p PORT-NUMBER] [email protected]:/remote/path /Local/Path/to/an/existing/folder</span> </span></pre></div> </td></tr></table>
commandline, mac, server, ssh, terminal

Bash Session

Show hidden folders in mac OSX

Defaults write com.apple.finder AppleShowAllFiles TRUE
Killall FInder
https://snipt.net/embed/21e8099ab0ff222e01be15e4cb6f1f82/
https://snipt.net/raw/21e8099ab0ff222e01be15e4cb6f1f82/
21e8099ab0ff222e01be15e4cb6f1f82
shell-session
Bash Session
2
2016-12-04T20:17:38
True
False
False
Jan 31, 2014 at 12:28 PM
/api/public/snipt/109941/
show-hidden-folders-in-mac-osx
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a><span class="go">Defaults write com.apple.finder AppleShowAllFiles TRUE</span> </span><span id="L-2"><a name="L-2"></a><span class="go">Killall FInder</span> </span></pre></div> </td></tr></table>
console, mac, terminal

Bash

Get Mac idle time in milliseconds

ioreg -c IOHIDSystem | grep HIDIdleTime | head -1 | sed 's/[^0-9]//g; s,$,/1000000,' | bc
https://snipt.net/embed/4c5e329e8f34ed3f7c0209a4ae0428b3/
https://snipt.net/raw/4c5e329e8f34ed3f7c0209a4ae0428b3/
4c5e329e8f34ed3f7c0209a4ae0428b3
bash
Bash
1
2016-12-06T04:03:27
True
False
False
Dec 16, 2012 at 08:24 PM
/api/public/snipt/51926/
get-mac-idle-time-in-milliseconds
<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 -c IOHIDSystem <span class="p">|</span> grep HIDIdleTime <span class="p">|</span> head -1 <span class="p">|</span> sed <span class="s1">&#39;s/[^0-9]//g; s,$,/1000000,&#39;</span> <span class="p">|</span> bc </span></pre></div> </td></tr></table>
cli, mac
Copyrighted, illegal, or inappropriate content? Email [email protected].