Sunday, December 26, 2010

Use apt-get behind a proxy

/etc/apt/apt.conf:
Acquire::http::Proxy "http://x.x.x.x:port";

Friday, December 03, 2010

nautilus-script to hide files.

#!/bin/bash

for i in "$NAUTILUS_SCRIPT_SELECTED_FILE_PATHS"
do
file=`echo $i|grep -oE '[^/]+$'`
path=`echo $i|grep -oE '^.+[/]'`
mv "${path}${file}" "${path}.${file}"
done