sudo apt-get install xclipThen
ls | xclip -selection clipboardwill copy the output of ls into the clipboard.
I use an alias in my .bashrc for it:
alias c='xclip -selection clipboard'So the command becomes:
ls | c
sudo apt-get install xclipThen
ls | xclip -selection clipboardwill copy the output of ls into the clipboard.
alias c='xclip -selection clipboard'So the command becomes:
ls | c
alias vib='vi ~/.bashrc && source ~/.bashrc'
vibwhich will edit .bashrc and will run source on it automatically when you finish editing.
mvn clean site site:deploy -Dsite.url=file://`pwd`/target/deployed-site
sudo apt-get install nautilus-actionsNow create the script to launch the browser given a filename.
Choose System - Preferences - Nautilus Actions Configuration - Add.sudo wget -N -P /usr/bin http://moten-util.googlecode.com/svn/ubuntu/trunk/lookup-imdb/lookup-imdb sudo chmod 755 /usr/bin/lookup-imdb
Label: Lookup IMDBLogout and back in again and you should be ready to go.
Path: lookup-imdb
Parameters: %b
As of 5 May 2013 this works fine in Ubuntu 12.04 with Unity.sudo update-alternatives --config x-www-browser
public class PersonLocator() {
@Inject
public PersonLocator(GeneralLocator locator, @Assisted String name) {
...
}
}
public interface PersonLocatorFactory {
PersonLocator create(String name);
}
bind(PersonLocatorFactory.class).toProvider(
FactoryProvider.newFactory(PersonLocatorFactory.class, PersonLocator.class));
public PersonHunter {
@Inject
public PersonHunter(PersonLocatorFactory personLocatorFactory, String name){
PersonLocator personLocator = personLocatorFactory.create(name);
}
}