snipt

Ctrl+h for KB shortcuts

Bash

Switch between 32 bit and 64 bit

1
2
3
4
5
6
7
#Switching between Lion 64-bit and 32-bit

#To check which mode you?re currently in, run this command on the terminal: systemsetup -getkernelbootarchitecturesetting

#To set your machine to boot into 64-bit mode, enter this command and reboot: sudo systemsetup -setkernelbootarchitecture x86_64

#To set your machine to boot into 32-bit mode, enter this command and reboot: sudo systemsetup -setkernelbootarchitecture i386
https://snippets.siftie.com/embed/5976098fec37ee87d1e5572a54d961cd/
/raw/5976098fec37ee87d1e5572a54d961cd/
5976098fec37ee87d1e5572a54d961cd
bash
Bash
7
2019-03-01T01:21:57
True
False
False
/api/public/snipt/29824/
switch-between-32-bit-and-64-bit
<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></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a><span class="c1">#Switching between Lion 64-bit and 32-bit</span> </span><span id="L-2"><a name="L-2"></a> </span><span id="L-3"><a name="L-3"></a><span class="c1">#To check which mode you?re currently in, run this command on the terminal: systemsetup -getkernelbootarchitecturesetting</span> </span><span id="L-4"><a name="L-4"></a> </span><span id="L-5"><a name="L-5"></a><span class="c1">#To set your machine to boot into 64-bit mode, enter this command and reboot: sudo systemsetup -setkernelbootarchitecture x86_64</span> </span><span id="L-6"><a name="L-6"></a> </span><span id="L-7"><a name="L-7"></a><span class="c1">#To set your machine to boot into 32-bit mode, enter this command and reboot: sudo systemsetup -setkernelbootarchitecture i386</span> </span></pre></div> </td></tr></table>
mac

Bash

Re-show Lion's hidden Library folder

chflags nohidden ~/Library/
https://snippets.siftie.com/embed/a1b5f94c399c34b7cbae4e2409054254/
/raw/a1b5f94c399c34b7cbae4e2409054254/
a1b5f94c399c34b7cbae4e2409054254
bash
Bash
1
2019-03-20T21:24:28
True
False
False
/api/public/snipt/29823/
re-show-lions-hidden-library-folder
<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>chflags nohidden ~/Library/ </span></pre></div> </td></tr></table>
mac

Bash

Prevent auto-start of SecuRemote

1
2
3
tcsh 
source /opt/CPsrsc-50/.cshrc 
sudo StartupItemsMgr remove /opt/CPsrsc-50/bin/SecureClient.app
https://snippets.siftie.com/embed/67bd527b51b8b6c4f4c5c31c9d4b6b60/
/raw/67bd527b51b8b6c4f4c5c31c9d4b6b60/
67bd527b51b8b6c4f4c5c31c9d4b6b60
bash
Bash
3
2019-03-06T10:07:48
True
False
False
/api/public/snipt/29822/
prevent-auto-start-of-securemote
<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>tcsh </span><span id="L-2"><a name="L-2"></a><span class="nb">source</span> /opt/CPsrsc-50/.cshrc </span><span id="L-3"><a name="L-3"></a>sudo StartupItemsMgr remove /opt/CPsrsc-50/bin/SecureClient.app </span></pre></div> </td></tr></table>
mac

Text only

Turn on Safari 4 pie chart page load progress meter

defaults write com.apple.Safari DebugSafari4IncludeToolbarRedesign -bool FALSE
defaults write com.apple.Safari DebugSafari4LoadProgressStyle -bool TRUE
https://snippets.siftie.com/embed/378c0086643814806d6a9574c685cee4/
/raw/378c0086643814806d6a9574c685cee4/
378c0086643814806d6a9574c685cee4
text
Text only
2
2019-03-06T16:49:50
True
False
False
/api/public/snipt/3473/
turn-on-safari-4-pie-chart-progress-indicator
<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>defaults write com.apple.Safari DebugSafari4IncludeToolbarRedesign -bool FALSE </span><span id="L-2"><a name="L-2"></a>defaults write com.apple.Safari DebugSafari4LoadProgressStyle -bool TRUE </span></pre></div> </td></tr></table>
mac, preference, safari

Text only

Burn disc from command line (drutil also does more)

drutil burn myfile
https://snippets.siftie.com/embed/bd4e57718f4ca182e9dfef31ef31f9fe/
/raw/bd4e57718f4ca182e9dfef31ef31f9fe/
bd4e57718f4ca182e9dfef31ef31f9fe
text
Text only
1
2019-03-04T18:43:31
True
False
False
/api/public/snipt/3142/
burn-disc-from-command-line-drutil-also-does-more
<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>drutil burn myfile </span></pre></div> </td></tr></table>
mac

Text only

Access remote iTunes share

dns-sd -P "any name" _daap._tcp. local 3690 localhost 127.0.0.1 & 
ssh -N [email protected] -L 3690:localhost:3689
https://snippets.siftie.com/embed/2316123e4dcfdd92601af8b2271d3be5/
/raw/2316123e4dcfdd92601af8b2271d3be5/
2316123e4dcfdd92601af8b2271d3be5
text
Text only
2
2019-03-13T11:42:48
True
False
False
/api/public/snipt/3141/
access-remote-itunes-share
<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>dns-sd -P &quot;any name&quot; _daap._tcp. local 3690 localhost 127.0.0.1 &amp; </span><span id="L-2"><a name="L-2"></a>ssh -N [email protected] -L 3690:localhost:3689 </span></pre></div> </td></tr></table>
mac

Text only

Turn on file paths at top of Finder window

defaults write com.apple.finder _FXShowPosixPathInTitle -bool YES 
https://snippets.siftie.com/embed/81a251e63795569ef97515575f9d62b1/
/raw/81a251e63795569ef97515575f9d62b1/
81a251e63795569ef97515575f9d62b1
text
Text only
1
2019-03-21T11:32:15
True
False
False
/api/public/snipt/3140/
turn-on-file-paths-at-top-of-finder-window
<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.finder _FXShowPosixPathInTitle -bool YES </span></pre></div> </td></tr></table>
mac, preference