Archive for Mac

How to delete Quicklook thumbnails on Mac~ Preserve bash history in multiple terminals~ Default max heap size~ OVF Appliance Import failed: Host resource of type “Other Storage Device (20)” is supported with SATA AHCI controllers only, line 47~ Google Drive notification icon and Yosemite dark mode~ How to install Java 7 on Yosemite~ Yosemite can automatically collect your location information~ Remove finder from Dock~ How to speed up terminal.app or iTerm on Mac OSX?~ How Can I Remove .DS_Store Files From A Git Repository?~ How to exclude .DS_Store from a zip file~ How to run a different version of Java~ /etc/hosts vs /private/etc/hosts~ How to downgrade Java.~ Remove and Disable Spotlight icon from top right bar~ How do I uninstall Java for my Mac?~ How to add route on Mac~ How to fix os x mountain lion download paused~ Toggling hidden files on Finder~ How to disable adobe update manager~ Reinstall ports~ How to Install Java 6 on Mac~ Disable .MobileBackup on Lion~ Toggling between Java 6 and Java 7 on mac~ Custom delay time and animation speed~ How to disable Adobe Updater on OS X Mountain Lion (updated)~ Java Web Service doesn’t start — Bad installation. No JRE found in configuration file~ How to switch from Java 6 to Java 7 on Mac. No Java runtime present, requesting install. [updated]~ How to disable Acrobat Air Updater on Mountain Lion~ “Show in Finder” stop working in Mountain Lion~ Where can I find other java version on my mac?~ Disable Notification Center & Remove the Menu Bar Icon in Mac OS X~ Equivalent of updatedb on mac~ Format XML with TextWrangler – updated~ Flush the dns cache on mac~ Creating a bootable USB stick with Mac OS X in 10 easy steps~ Booting Operating System from USB Drive in VMware Fusion 3.x~ IntelliJ 10 performance tuning on Mac OSX~
How to delete Quicklook thumbnails on Mac

How to delete Quicklook thumbnails on Mac

Long story short: Apple saves the thumbnails that you see with quicklook, even if you delete the original. If you see the images stored into an external drive and then unmount it, you might think, “hey I am safe”. Well, apparently you are not. So…

Continue reading →

Preserve bash history in multiple terminals

Preserve bash history in multiple terminals

dd the following to ~/.bashrc # Avoid duplicates export HISTCONTROL=ignoredups:erasedups # When the shell exits, append to the history file instead of overwriting it shopt -s histappend # After each command, append to the history file and reread it export PROMPT_COMMAND="${PROMPT_COMMAND:+$PROMPT_COMMAND$'\n'}history -a; history -c; history…

Continue reading →

Default max heap size

Default max heap size

If you need to get the default max heap size used by your machine: java -XX:+PrintFlagsFinal -version 2>&1 | grep MaxHeapSize

Continue reading →

OVF Appliance Import failed: Host resource of type “Other Storage Device (20)” is supported with SATA AHCI controllers only, line 47

OVF Appliance Import failed: Host resource of type “Other Storage Device (20)” is supported with SATA AHCI controllers only, line 47

When you have .ovf file from VMWare and get the following message: “Host resource of type “Other Storage Device (20)” is supported with SATA AHCI controllers only, line 47″ The quickest solution is to open it with any text/xml editor, and 1. replace word “ElementName”…

Continue reading →

Google Drive notification icon and Yosemite dark mode

Google Drive notification icon and Yosemite dark mode

Quit Google Drive Go to /Applications/Google Drive.app/Contents/Resources swap png icons mac-normal and mac-normal-inverse restart Google Drive

Continue reading →

How to install Java 7 on Yosemite

How to install Java 7 on Yosemite

An easy way is to create a copy of SystemVersion.plist from /System/Library/CoreServices/ into your desktop. change <key>ProductVersion</key> <string>10.10</string> to <key>ProductVersion</key> <string>10.9.4</string> put back the file to CoreServices and job done. You can now start Java 7. You need to type your password at the prompt…

Continue reading →

Yosemite can automatically collect your location information

Yosemite can automatically collect your location information

Apple introduced a nice feature: http://www.washingtonpost.com/blogs/the-switch/wp/2014/10/20/apples-mac-computers-can-automatically-collect-your-location-information/ In short: every single local search in spotlight is sent to Cupertino. That includes of course search for a file, person, company, etc. Nice. It is not a secret function, because it is mentioned in the Yosemite’s licence: http://www.theregister.co.uk/2014/10/20/apple_spotlight_privacy_qualms/…

Continue reading →

Remove finder from Dock

Remove finder from Dock

Open (you need root permissions): /System/Library/CoreServices/Dock.app/Contents/Resources/DockMenus.plist Add a new subsection to “finder-running”: <dict> <key>command</key> <integer>1004</integer> <key>name</key> <string>REMOVE_FROM_DOCK</string> </dict> Kill the dock: killall Dock Then right click on Finder icon in Dock and click on “remove from dock”

Continue reading →

How to speed up terminal.app or iTerm on Mac OSX?

How to speed up terminal.app or iTerm on Mac OSX?

sudo rm /private/var/log/asl/*.asl Note *.asl, not all the files in the directory.

Continue reading →

How Can I Remove .DS_Store Files From A Git Repository?

How Can I Remove .DS_Store Files From A Git Repository?

find . -name .DS_Store -print0 | xargs -0 git rm –ignore-unmatch Also add “.DS_Store” to your git “.gitignore” file git add .gitignore git commit -m '.DS_Store bye bye!' UPDATED You might want to exclude some file for a specific repository then you can use: your-repo/.git/info/exclude…

Continue reading →

Page 1 of 4 1 2 3 4