disable “application downloaded from the internet”
for a specific location:
$ xattr -d -r com.apple.quarantine ~/Downloads
for a specific location:
$ xattr -d -r com.apple.quarantine /Path/to/application/
globally:
$ defaults write com.apple.LaunchServices LSQuarantine -bool NO
$ killall -9 Finder
remove svn merge information
from workspace root...
svn propdel svn:mergeinfo -R
svn revert .
# if you have merges that happened at a lower level then issue a revert on them as well
svn ci -m "Removed mergeinfo"
paste buffer into file using cat
1) first issue the following command
$ cat > FILENAME
2) type whatever you want
-- or --
2) paste in a buffer then press ENTER to write the pasted buffer to the file
3) to complete the operation issue a CTRL+D to return to the console
fixing function keys on ubuntu + mac keyboard
issuing the following will make the function keys behave like normal
$ echo options hid_apple fnmode=2 | sudo tee -a /etc/modprobe.d/hid_apple.conf
$ sudo update-initramfs -u
$ sudo reboot
for more info see:
https://help.ubuntu.com/community/AppleKeyboard
syncing google contacts on iphone
Problem... my google contacts don't show up when I add my account on my iphone.
Solution... you're adding your google account using Gmail/IMAP not Exchange. In IOS4+ you can have multiple exchange accounts. Adding your google mail account to your iphone using Exchange will expose your contacts and allow you to sync on your iphone.
lock screen from mac menu bar
1) Launch “Keychain Access” located in /Applications/Utilities/
2) From the ‘Keychain Access’ menu, open Preferences
3) Select the checkbox next to “Show Status in Menu Bar”
Convert DMG to ISO
on your Mac, open a Terminal, and type the following
hdiutil convert /PATH/TO/SOURCE_FILENAME.dmg -format UDTO -o /PATH/TO/TARGET_FILENAME.iso
rename dir of jpgs with preceding dot
debian based linux distros offer the rename command
rename -v 's/(.*)\.jpg/\.$1\.jpg/' *.jpg
Updating hostname on Mac OSX
temporary:
sudo hostname NEW_HOSTNAME
permanent:
sudo scutil --set HostName NEW_HOSTNAME[.local]
Ubuntu please remember my wireless password
1) right click on wireless antenna icon in the notification tray
2) click edit connections
3) click the wireless tab
4) double click the wireless adapter
5) check the box at the bottom that says "Available to all users"
next time you reboot you won't have to enter your keychain password to connect to your wireless network