Skip to content

Instantly share code, notes, and snippets.

View gionn's full-sized avatar

Giovanni Toraldo gionn

View GitHub Profile
@iamFIREcracker
iamFIREcracker / googleit.sh
Created January 31, 2012 13:12
Let me google clipboard for you!
#!/usr/bin/env bash
# Utility script which googles for the data contained inside positional
# arguments or for everything stored inside the WM clipboard.
#
# If the content of either positional argumets or clipboard starts with
# http,ftp,ecc (which means it is already a valid url), then skip the
# url-stuffing bit.
#
# Depends on xclip and xdg-open
@malteo
malteo / LocalStorageProvider.js
Created December 12, 2011 17:04
localStorage state provider for ExtJS 3
Ext.ns('Ext.ux.state');
/**
* @class Ext.ux.state.LocalStorageProvider
* @extends Ext.state.Provider
* A Provider implementation which saves and retrieves state via the HTML5 localStorage object.
* If the browser does not support local storage, an exception will be thrown upon instantiating
* this class.
* <br />Usage:
<pre><code>
@domdorn
domdorn / playframework
Created October 15, 2011 15:57
Upstart Script for the PlayFramework 1.x
# Upstart script for a play application that binds to an unprivileged user.
# put this into a file like /etc/init/playframework
# you can then start/stop it using either initctl or start/stop/restart
# e.g.
# start playframework
# http://dominikdorn.com
description "Description of your app"
author "Dominik Dorn <[email protected]>"
version "1.0"
# My new git commit shortcut, thanks to http://whatthecommit.com/ :-)
alias commit='git commit -m "$(curl -s http://whatthecommit.com/ |grep '<p>' |cut -c 4-)"'