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
Turn off Macs click on volume change
1) Load "System Preferences"
2) Click "sound"
3) Cilck on the "Sound Effects" tab
4) Deselect "Play feedback when volume is changed"