* referred by http://www.karan.org/blog/index.php/2009/08/25/multiple-ssh-private-keys

In .ssh directory, if there is a config file, ssh keys can be controlled by it.

For example, ~/.ssh/config would be

Host *.home.lan
  IdentityFile ~/.ssh/id_dsa.home
  User kbsingh

Host *.vpn
  IdentityFile ~/.ssh/id_rsa.work
  User karanbir
  Port 44787

Host *.d0.karan.org
  IdentityFile ~/.ssh/id_rsa.d0
  User admin
  Port 21871

id_rsa.xx is the private key.

 

First, you need to know your http proxy server. You probably have $http_proxy environmental variable in bash. Using this, you can specify the http proxy to git. It’s simple.

git config --global http.proxy $http_proxy

That’s it.

 

In order to make and install mathtex.cgi, latex and dvipng are prerequisite. You need to install latex first and divpng will come along with it.

You can follow the instruction

  1. http://www.forkosh.dreamhost.com/source_mathtex.html#install

Following will show how I have done with it for example.

# wget http://www.forkosh.com/mathtex.zip
# mkdir mathtex
# cd mathtex
# unzip ../mathtex.zip
# cc mathtex.c –DLATEX=\\"$(which latex)\\" \\
–DDVIPNG=\\"$(which dvipng)\\" –o mathtex.cgi
# cp mathtex.cgi /public_html/xxx.../cgi-bin/

For test of mathtex.cgi, in your web browser, you can do it by

www.example.com/cgi-bin/mathtex.cgi?x^2+y^2

It will give you the gif image showing equation by latex syntax.

 

* Note that this works with emacs 22.2 windows version.

  1. Load a document
  2. M-x mm-set-buffer-file-coding-system
  3. Select language type (For example, euc-kr or utf-8)
  4. Check the buffer encoding type
  5. Sava a document by C-x s or M-x write-file

Make sure that “(setq coding-system-for-write           ‘utf-8)” should not be set in .emacs. If that, it will write it utf-8 always.

 

Linux-powered digital picture frames

It is introducing Digital Picture Frame in home with old laptop PC using Linux OS.

 

February 2012
S M T W T F S
« Jan    
 1234
567891011
12131415161718
19202122232425
26272829  

Follow Me

© 2011 Bread & Cup Suffusion theme by Sayontan Sinha