How to copy files across computers using SSH and MAC OS X Terminal [closed]

You can do this with the scp command, which uses the ssh protocol to copy files across machines. It extends the syntax of cp to allow references to other systems: scp username1@hostname1:/path/to/file username2@hostname2:/path/to/other/file Copy something from this machine to some other machine: scp /path/to/local/file username@hostname:/path/to/remote/file Copy something from another machine to this machine: scp username@hostname:/path/to/remote/file … Read more

Mac SQLite editor [closed]

Base is younger than your question, and definitely feels like a 1.0, but the user experience is miles better than the experience of using any of the “cross-platform” apps on a Mac. http://menial.co.uk/software/base/ I recommend you buy a license before the developer realizes he is charging too little for it. UPDATE: Since December 2008, Base … Read more

Focus-follows-mouse (plus auto-raise) on Mac OS X

You can do it for Terminal.app by issuing the following command at the command line: defaults write com.apple.Terminal FocusFollowsMouse -bool true For X11 apps you can do this: defaults write com.apple.x11 wm_ffm -bool true In Snow Leopard, use this instead: defaults write org.x.X11 wm_ffm -bool true Apparently there’s a program called CodeTek Virtual Desktop that’ll … Read more

In-place edits with sed on OS X

You can use the -i flag correctly by providing it with a suffix to add to the backed-up file. Extending your example: sed -i.bu ‘s/oldword/newword/’ file1.txt Will give you two files: one with the name file1.txt that contains the substitution, and one with the name file1.txt.bu that has the original content. Mildly dangerous If you … Read more

How do I create a nice-looking DMG for Mac OS X using command-line tools?

After lots of research, I’ve come up with this answer, and I’m hereby putting it here as an answer for my own question, for reference: Make sure that “Enable access for assistive devices” is checked in System Preferences>>Universal Access. It is required for the AppleScript to work. You may have to reboot after this change … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)