Musings of David Bonner - The blog of David Bonner 

  • Ask me
  • Archive
  • RSS feed
  • Launch iTerm with an Applescript

    As a nice change, todays snippet is an Applescript. A long time ago I adopted iTerm as a replacement for Apple’s Terminal. Amongst it’s vast array of features is Applescript support, the “Auto Launch” feature in particular.

    By placing an aptly named “AutoLaunch.scpt” in ~/Library/Application\ Support/iTerm, iTerm will automatically run the script on start-up.

    Useful if you utilise multiple tabs or sessions and immediately jump to various directories or connect to (single or multiple) shell sessions.

    The example script will open three panes, one vertically and two horizontally, cd to my local environment (an alias) in the main pane, cd in the secondary pane to my virtual environment (another alias) and leaves the third pane as is which I use for “everything else”.

    1 week ago 0 notes →

  • “Look… I’m a dinosaur!”

    “Look… I’m a dinosaur!”

    2 months ago 0 notes →

  • Downloading with SSH and cat

    A quick little snippet I usually pass on to people when asked “How can I transfer a file via an SSH connection”. There are numerous ways of course but when dealing with smaller files, documents, images etc I tend to resort to this:

    $ ssh user@host 'cat /path/to/file/on/remote/server' > /path-to-file/on-host-machine
    You don’t get the any informative output like you would with curl but it does the job nice for ‘smallish’ files none-the-less.

    2 months ago 0 notes →

  • “I’m so startled…”

    “I’m so startled…”

    3 months ago 0 notes →

  • 3 months ago 0 notes →

  • Keep it original… None of your horrendously bad parodies!

    Keep it original… None of your horrendously bad parodies!

    6 months ago 0 notes →

  • “A struct within a struct, within another struct… INSIDE A TACO BELL!

    7 months ago 0 notes →

  • If you are writing copy for the web - DO NOT use the words “click here”.

    It irritates me to my very core.

    8 months ago 3 notes →

  • Taken with Instagram

    Taken with Instagram

    8 months ago 0 notes →

  • Steven happy to finally have his Starbucks (Taken with Instagram)

    Steven happy to finally have his Starbucks (Taken with Instagram)

    9 months ago 0 notes →

  • Perfecto (Taken with Instagram)

    Perfecto (Taken with Instagram)

    9 months ago 1 note →

  • Sunset (Taken with Instagram)

    Sunset (Taken with Instagram)

    9 months ago 0 notes →

  • Antantantantantant (Taken with Instagram)

    Antantantantantant (Taken with Instagram)

    9 months ago 0 notes →

  • Sunset (Taken with Instagram)

    Sunset (Taken with Instagram)

    10 months ago 2 notes →

  • Taken with Instagram

    Taken with Instagram

    10 months ago 1 note →

Next Page →

© 2013 davidbonner