Jan
26
Display your terminal colors
January 26, 2013 | Leave a Comment
Playing with my brand new ZSH prompt, I needed to get a preview of my terminal colors. To see the result above, you can : download this script [display_colors.py] and save it locally run it with python /path/to/display_colors.py –terse When working on your prompt (or any other output you with to colorize), you can pick […]
Jun
7
Installing OpenSSH on Windows 7
June 7, 2011 | 67 Comments
Today, I was tempted to take control of a Windows machine remotely in console mode as I’m trying to script the launch and use of VLC. A quick Google search reveleaed the existence of the sshwindows project which is a more lightweight solution than a full cygwin installation. Here are the installation steps : Download […]
Feb
27
Creating a Mac OS X Finder Droplet for iTerm
February 27, 2011 | 3 Comments
Recently, I stumbled on the Textmate droplet by Henrik Nyh allowing me to quickly open a file or a folder in Textmate by dragging it to the Finder toolbar. Since I had just setup iTerm2 and learned to script it with AppleScript, I figured I’d put the two together and create my own iTerm2 droplet. […]
Jan
29
iTerm2: advanced features
January 29, 2011 | 7 Comments
At bluekiwi, I constantly have no less than 10 opened terminal sessions at the same time. Because it is so easy to launch a command in the wrong window (on the wrong server), I got used to always order my tabs the same way and always give them the same name. As I needed more […]
Jan
23
FTP upload in a script
January 23, 2011 | Leave a Comment
The FTP protocol is simple to use. In a console, type ftp <host> to connect to your host. Enter your login and password when prompted and use get to download and put to upload a file. But what about doing that in a bash script ? Here is a working example of an FTP upload […]
Jan
14
A little help with Grep
January 14, 2011 | 1 Comment
I was triggered by this post on ReadWriteWeb to write a small bash script to make it easy for me to use grep to look for a pattern in my source code. The post on ReadWriteWeb points to the -i -r -E -n -C –colors options to make grep recursively and case insensitively search for […]