Skip to content

Instantly share code, notes, and snippets.

@thisirs
thisirs / gist:4655411
Created January 28, 2013 13:15
Alert user that a job finished
# Alert user that a job finished:
# lengthycmd; alert
# or
# lengthycmd
# <CTRL-Z>
# fg; alert
function alert() {
JOB=$(history 1)
if [[ "$JOB" == *fg\;* ]]
then
@Arthraim
Arthraim / bottle_example.py
Created May 27, 2011 04:27
a python web framework bottle's example
#coding: utf-8
from bottle import route, error, post, get, run, static_file, abort, redirect, response, request, template
@route('/')
@route('/index.html')
def index():
return '<a href="/hello">Go to Hello World page</a>'
@route('/hello')
def hello():