chronx Find something you love to do and you'll never have to work another day for the rest of your life

3Feb/120

disable “application downloaded from the internet”

Posted by oxchronxo

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

Tagged as: , , No Comments
30Jan/120

remove svn merge information

Posted by oxchronxo

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"

Tagged as: , , No Comments
13Jan/120

paste buffer into file using cat

Posted by oxchronxo

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

10Jan/120

fixing function keys on ubuntu + mac keyboard

Posted by oxchronxo

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

23Dec/110

syncing google contacts on iphone

Posted by oxchronxo

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.

17Dec/110

lock screen from mac menu bar

Posted by oxchronxo

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”

Tagged as: , No Comments
16Dec/110

Convert DMG to ISO

Posted by oxchronxo

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

7Dec/110

rename dir of jpgs with preceding dot

Posted by oxchronxo

debian based linux distros offer the rename command

rename -v 's/(.*)\.jpg/\.$1\.jpg/' *.jpg

How to Bulk Rename Files in Linux (Terminal or GUI)

Filed under: Ubuntu No Comments
19Sep/110

Updating hostname on Mac OSX

Posted by oxchronxo

temporary:
sudo hostname NEW_HOSTNAME

permanent:
sudo scutil --set HostName NEW_HOSTNAME[.local]

Tagged as: , No Comments
7Apr/110

Ubuntu please remember my wireless password

Posted by oxchronxo

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