Month: September 2008

  • SSH Tunneling to mysql server using Putty

     I’ve had this question a couple of times in the past few months (since I posted the command line version of this method here ). To make it short and sweet, yes you can use Putty in a windows environment to setup ssh tunnels. Here is the specific scenario with pics for setting up a tunnel…

  • FFmpeg commands for ipod video encoding…

    So I found out the hard way that the new ipod’s (with video out) can actually play 640×480 video and also figured out how to get iTunes to accept the encoded files (so that I could sync them with the device)…….here is the run down: “TV-Out” mode – 1.5Mbit/s 640×480 H.264 videos BIT_RATE <= 1500 kbps…

  • ffmpeg command line quickies…..

    Here are a bunch of ffmpeg command lines that will do just about everything you need. Getting info from a video file ffmpeg -i video.avi Turn a sequence of images into video ffmpeg -f image2 -i image%d.jpg video.mpg Turn a video into a sequence of images ffmpeg -i video.mpg image%d.jpg Encode video for Ipod/IPhone ffmpeg…

  • Speed up Mac OS X Mail application…..

    Does your OSX Mail app crawl when you start it. Well here is a quick tip to speed things up again. Just issue this command from a terminal window (make sure you’re not running Mail app first). sqlite3 ~/Library/Mail/Envelope\ Index vacuum;You should notice a bit of a performance improvement the next time you start the…

  • How to make a ISO out of a DMG file under OSX

    Here is a quick command line for all you OSX ppl. If you’re ever in need of turning/converting a .dmg file into a .iso use the following command line: hdiutil makehybrid -iso -o newfile.iso yourfilename.dmg Where newfile is the name of the iso you want, and yourfilename.dmg is the dmg. Have Fun……

  • How to mount CD/DVD images from command line under Linux

    Here are some quick CLI commands to get those CD/DVD images mounted under Linux (without having to burn them first). # ISOmount -t iso9660 -o loop,user file.iso /path/mount_directory # MDFmount imagen.mdf /path/mount_directory -o loop=/dev/loop0 # NRGmount -o loop,offset=307200 imagen.nrg /path/mount_directory

  • Basic APT commands

    Okay, now for a bit of CLI goodness. Here is a quick list of basic apt commands.  Debian and most derivatives (Ubuntu) use these for package maintenance.#searchapt-cache search packagename #package infoapt-cache show packagename #cleansudo apt-get cleansudo apt-get autoclean #old packages #checkapt-get check #get source codeapt-get source packagename #get depapt-get build-dep packagename #update/install/remove/upgradesudo apt-get updatesudo apt-get…

  • Eject your Mac’s CD tray from command line……

    Yeah I know what you’re thinking…..who the heck would need that. Well since mac’s don’t have a physical CD eject button on the front plate (ie: eject is done by eject key), if you ever need to put a CD/DVD into a machine without keyboard (server machine and/or if you’re using teleport to share a…

  • FunctionFlip frees your mac’s function keys…..

    When I bought my Macbook Pro the first thing I noticed was that the function keys didn’t “function” like those on my Powerbook. With all the new expose and spaces functions, you had to decide if you wanted the old style keys (ie: press F5 to increase volume and press Fn-F5 to get whatever was…

  • Disruptive Tech: Canon 5D MKII to shake up the DCinema Scene….

    When Canon announced their new 5D MKII DSLR Camera everyone was wowed by the 21MP sensor and all the other new goodies. What everyone has missed/neglected is the fact that this little beauty has the potential to become the new RED Camera. You see, with it’s 2K video output (1080P) in quicktime RAW format at…