Common Usage Database (cudb)

A couple of months ago I was searching for an excuse to write an application on Google App Engine. After mucking around with the Datastore and authentication API I decided to rewrite Most Common Usage on Google App Engine.

The end result was the Common Usage Database and like Most Common Usage the website is focused on the usage of CLI commands in Linux and Unix-like operating systems.

The website uses Google for authentication so you don't need to signup if you already have a Google account. I've also setup a Google Group and the #cudb channel on Freenode.

I look forward to creating a repository of useful commands and providing an easy and open way for developers to use that repository.

Link: http://www.cudb.org/

Simple Shell Script to Manage SSH Tunnels

Manage SSH Tunnel is a simple shell script to start and stop ssh tunnels from the terminal.

Setup

Note: the setup assumes bash as the default shell

  1. Download tunnel.sh and save it to ~/bin/
  2. Add to ~/.bash_profile or ~/.bashrc

    alias tunnel_home='/bin/sh ~/bin/tunnel.sh example.net sam 22 8888'
    
  3. Replace example.net with the hostname of the server, sam with the username on the server, and 8888 with the local tunnel port

  4. Type source ~/.bash_profile or source ~/.bashrc

Usage

  1. To open the tunnel

    tunnel_home start
    
  2. To close the tunnel

    tunnel_home close