background preloader

Shell

Facebook Twitter

Introducing the Google Command Line Tool. Ever wanted to upload a folder full of photos to Picasa from a command prompt? We did, a lot, last summer. It made us want to say: $ google picasa create --title "My album" ~/Photos/vacation/*.jpg So we wrote a program to do that, and a whole lot more. GoogleCL is a command-line utility that provides access to various Google services. It streamlines tasks such as posting to a Blogger blog, adding events to Calendar, or editing documents on Google Docs.

For example: $ google blogger post --blog "My blog" --tags "python, googlecl, development" my_post.html $ google calendar add "Lunch with Jason tomorrow at noon"$ google docs edit --title "Shopping list" --editor vim GoogleCL is a pure Python application that uses the Python gdata libraries to make Google Data API calls from the command line. Read more at the GoogleCL project page, or jump right to the examples. GoogleCL brings cloud computing to your fingertips, literally! DreamPie: The Python shell you've always dreamed about! All commands.

JavaScript shell scripting / phpied.com. As you probably know, JavaScript is not limited to the browser. There's server-side JavaScript, JS for various extensions, you can script Photoshop operations with JavaScript if you feel like it. Or compile Windows executables. You see where I'm going with this. JavaScript is everywhere And yes, you can do shell scripting in JavaScript. C:\> cscript jslint.js And on the Mac there's JavaScriptCore by WebKit. JSC test run JSC (JavaScriptCore) is well hidden in /System/Library/Frameworks/JavaScriptCore.framework/Versions/A/Resources/jsc Check it out, it should be there. . $ sudo ln /System/Library/Frameworks/JavaScriptCore.framework/Versions/A/Resources/jsc /bin/jsc Step 2... no, there's no step 2, just give it a shot: So you can just run any JavaScript code on the command line. . $ jsc > var a = 1; undefined > a++ 1 > a 2 > Shell version of an online tool Here's an example.

So imagine you have a JavaScript that parses CSS that looks like this. You can probably guess but: Shell-script away!