1. zip – how useful!

    February 3, 2010 by jerome

    This might sound trivial to a lot of us – but i find it so useful so often… Maybe you have other practice for such use – just let me know!

    Zip let’s you archive a whole directory wiht many subdirectories and files inside in one convenient file. It’s usually done trough the OS UI by simply right clicking on a directory and selecting compress or archive this from the contextual menu.
    When you want to download an archive of a website or any files online it is sometimes a lot more effective and convenient to just use the same zip archive. Unfortunately FTP programms wont let you do any such thing – so you have to bypass – if you are the lucky user of a server with an SSH access nothing is simpler:

    connect to the server using the terminal:
    ssh username@myserver.com

    insert the password

    navigate to the top of the directory you want to archive

    type:
    zip -r archiveFileName directoryName

    * this will archive the content of directoryName into a zip file called archiveFileName; -r stands for recursive

    ** according to the number and size of the files in your archive, the compressing can take very long – i like to have it running on a second screen exactly like an activity monitoring device of the server life – sort of an electronic presence of the machine.

    *** you can then move the zip file around, transfert it to another ftp or use it locally – unzip command will let you un pack the archive and access the files.

    sangbleuarchiving.electronicpresence.png

    **** if you are using fuse – don’t think the conextual menu is the best solution: you would be using zip on your computer and would download each files to be compressed on your local machine, and doing the compression on the distant disk. Latency time for read and write access will be HUGE. Chances are your are going to kill a couple of processes on your own machine, at best this will take ages (like in days). Just use the ssh via the terminal and all the compression task will happen on the distant server, leaving your computer free of sluggish clogging.


  2. Geekery du jour

    March 17, 2008 by jerome

    VI
    Use Terminal’s vi as default text editor http://www.macosxhints.com/article.php?story=20080305012955463

    DTerm
    DTerm offers a command line anywhere and everywhere http://www.decimus.net/dterm.php

    SIMBL
    Smart InputManager Bundle Loader Problem: Some applications do about 90% of what I want. Solution: Develop my own applications. Better Solution: Patch the application myself…
    http://www.culater.net/software/SIMBL/SIMBL.php

    Visor
    Visor provides a systemwide terminal window accessible via a hotkey, much like the consoles found in games such as Quake.
    http://code.google.com/p/blacktree-visor/


  3. OSX – Vital terminal option

    March 9, 2008 by jerome

    to keep my nerves in functioning order; I have to make sure that the Option click to position cursor tick box is checked it’s incredibly useful when the command line starts to be a bit long

    Terminal vital option.png