defaults write com.apple.finder AppleShowAllFiles -bool YES
Category Archives: Uncategorized
Grayed-out and inaccessible folder, though I could navigate to them using Terminal
It seems that when OSX is copy files if the transfer is interrupted in the middle of copy this the directory is left without a valid date or a really old date.
Use SetFile command from the terminal which is part of the Xcode installation.
SetFile -d 22/02/2015 /Volumes/folder_name
Turn It Off
Open up Terminal from /Applications/Utilities and enter the following command to kill Spotlight entirely (you’ll need administrative privileges to execute the command):
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist
NOTE: This will also recent you from searching through stuff like emails.
If you need to reverse this step then run the following command.
sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist
Another way to exclude specific folders from being indexed is to manually hide folders using a special extension
To prevent a specific folder or file from being indexed by Spotlight, add a “.noindex” extension to it’s name.
Mount the image to be restored
hdid -nomount "/Users/?????/Desktop/osx.dmg"
sudo dd if=/dev/disk3 of=/dev/disk2 bs=131072
NOTE: probably need to change DEV ID’s
I’m getting an upload_tmp_dir error on the php that I have installed.
Parallels Plesk Panel 9.x for Linux/Unix
Parallels Plesk Panel 8.x for Linux/Unix
This can be done by adding:
directive into the PHP configuration file /etc/php.ini
Alternatively it is possible to specify upload_tmp_dir for one domain only. To do that add the following line into the domain’s vhost.conf file:
Once the changes have been made run
Personally I think it’s a shit deal when owners of Parallel’s Desktop 7 are forced to dish out yet another 50 bucks to continue using Parallel’s Desktop for OSX just because they have decided to install the latest (Freeeeeeeeee……) OSX Mavericks update.
Here is a list of commands which will help you get around it:
Open a terminal prompt and run these commands as sudo.
sudo kextutil prl_hypervisor.kext/
sudo kextutil prl_vnic.kext/
sudo kextutil prl_hid_hook.kext/
sudo kextutil -d ./prl_hypervisor.kext prl_netbridge.kext/
sudo kextutil prl_usb_connect.kext
open /Applications/Parallels Desktop.app
You will also need to give parallels permission to access your keyboard and mouse.
System Preferences > Security & Privacy > Privacy Tab > Accessibility section
Enter the following command into Terminal
defaults write com.apple.DiskUtility DUDebugMenuEnabled 1
Open Disk Utility
Now there is a DEBUG menu at the top.
Go DEBUG and select SHOW EVERY PARTITION
Now you will see the RECOVERY HD partition under your LION partition.
Select the RECOVERY HD partition and click MOUNT at the top
Now you can expand your OSX partition
To turn off DEBUG mode
Enter the following command into Terminal
defaults write com.apple.DiskUtility DUDebugMenuEnabled 0
Need to edit or modify the hosts file on a Mac? You’ll find hosts in Mac OS X is stored at /private/etc/hosts but it can also be accessed at the more traditional location of /etc/hosts. That said, if you’re looking to edit hosts, you’ll want to target the file located in /private/etc/ though. We’ll walk through how to manually edit the hosts file in OS X Lion, OS X Mountain Lion, and OS X Mavericks, this will be done with the command line using the simple text editor called nano. Don’t let the command line or Terminal sound intimidating though because it’s not, we’ll make the entire process super easy.
- Let’s get started making some edits to /etc/hosts!
- Launch Terminal, found in /Applications/Utilities/ or launched through Spotlight
- Type the following command at the prompt:
sudo nano /private/etc/hosts
- Enter the administrator password when requested, you will not see it typed on screen as usual with the command line
- Once the hosts file is loaded within nano, use the arrow keys to navigate to the bottom of the hosts file to make your modifications
- When finished, hit Control+O followed by ENTER/RETURN to save changes to /private/etc/hosts, then hit Control+X to exit out of nano
- Quit out of Terminal when finished
You can verify your hosts modifications immediately with ping, Safari, or any other network app. Changes take effect immediately though some adjustments may need to be accompanied by aDNS flush which can be done with the following command in OS X 10.9:
dscacheutil -flushcache;sudo killall -HUP mDNSResponder