- page 6

Remove and Disable Spotlight icon from top right bar

Remove and Disable Spotlight icon from top right bar

Hide: sudo chmod 600 /System/Library/CoreServices/Search.bundle/Contents/MacOS/Search killall SystemUIServer Show it again: sudo chmod 755 /System/Library/CoreServices/Search.bundle/Contents/MacOS/Search killall SystemUIServer To disable spotlight only instead, without removing it from the top menu: sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist To enable it again: sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist

Continue reading →

Warm up a server (populate cache)

Warm up a server (populate cache)

If you need to start a server, you might want to populate it first with some content, before putting it live to the public wget –no-directories –recursive –level 2 –delete-after http://your-host.com The publications you want to warm up need to be inside the the host…

Continue reading →

Delete all files in a folder which don’t match file extensions

Delete all files in a folder which don’t match file extensions

find . -type f ! -name "*.jpg" ! -name "*.JPG" -delete

Continue reading →

How do I uninstall Java for my Mac?

How do I uninstall Java for my Mac?

Uninstalling Oracle Java (current version) involves deleting the Java Plugin file JavaAppletPlugin.plugin. Open your Terminal, copy and paste the following line: sudo rm -fr /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin If you need to downgrade java, see related post: how to downgrade java (java 7, Java 8, java x).

Continue reading →

How to add route on Mac

How to add route on Mac

Let’s assume the IP 10.67.0.0 is only accessible through the VPN 192.168.120.254, then you can use route command to access your destination IP through the Gataway. To view you route table on you Mac you use the following command: netstat -rnf inet route -n get…

Continue reading →

Check space in a disk

Check space in a disk

du -cs * .[^\.]* | sort -n du / |sort -n

Continue reading →

wget – how to mirror only a section of a website

wget – how to mirror only a section of a website

wget –mirror –page-requisites –adjust-extension –no-parent –convert-links –directory-prefix=sousers http://stackoverflow.com/users

Continue reading →

Move files older than 30 days in current folder to

Move files older than 30 days in current folder to

find . -mtime +30 -exec mv {} old/ \;

Continue reading →

How to generate a secure random password

How to generate a secure random password

I believe 50 char are good enough. head -c90 /dev/urandom | base64 | sed s/[^a-zA-Z0-9]//g | head -n 1 | cut -c 1-50

Continue reading →

How to Delete Auto Backup Photos without a plugin.

How to Delete Auto Backup Photos without a plugin.

i. Open “Instant Upload” under your Google+ Photos ii. Hit the End key. Your browser window will scroll down to the bottom of what’s currently displayed. Since Google+ will load up more photos, hit End again. Repeat as necessary. iii. Click and drag from below…

Continue reading →

Page 6 of 16 ← First ... 4 5 6 7 8 ... Last →