for filename in *.jpg; do newname=echo $filename | sed ‘s/xxx/yyy/g’; mv $filename $newname; done
for filename in *.jpg; do newname=echo $filename | sed ‘s/xxx/yyy/g’; mv $filename $newname; done
First, make sure that you have hfsprogs installed. Example installation command: Next, mount or remount the HFS+ drive; commands need to be as follows: Finally, if the drive was improperly unmounted or has otherwise become partially corrupted run fsck.hfsplus (provided here by Jayson) as such:
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…
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…
If you need to get the default max heap size used by your machine: java -XX:+PrintFlagsFinal -version 2>&1 | grep MaxHeapSize
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”…
Quit Google Drive Go to /Applications/Google Drive.app/Contents/Resources swap png icons mac-normal and mac-normal-inverse restart Google Drive
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…
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/…
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”