Showing posts with label Linux. Show all posts
Showing posts with label Linux. Show all posts

Friday, January 27, 2012

SCP excluding .git & other dot files/folders

Quick command to scp your git repo to your server without copying .git & other dot files/folders:
scp -r [!.]* sandeep@server:/path/to/docroot

You can use this hack to store stuff in your repo (in dot files/folders) that you don't want to deploy to your production server. 

Thursday, January 14, 2010

Setting up an offline dictionary on Ubuntu

Note: I'm running Ubuntu 9.10 (Karmic Koala)


There are two ways to do this that I know off:

Install Artha, an off-line thesaurus based on WordNet
sudo apt-get install artha


Or, you can configure Dictionary to use a local dictionary server

Install a local dictionary server and required dictionaries and thesaurus:
sudo apt-get install dictd dictzip dict-wn dict-foldoc dict-jargon dict-gcide dict-moby-thesaurus

Configure Dictionary to use the local dictionary:
Application > Office > Dictionary
Edit > Preferences
Add a new source using 127.0.0.1 as the Hostname and select it as your default source.


Hope that helps.