Code written in Unknown

title

Posted by Denil Wickrama 3 months ago
posting undeletable apparently
Language Unknown

Using a different username with SVN+SSH

Posted by Chad Humphries over 2 years ago
To get around this problem, you can setup per host SSH settings. To do this, open ~/.ssh/config and at the end add the lines 
Host svn.yourserver.com 
User jdoe 
This makes it so that everytime I connect to svn.yourserver.com with SSH, it will automatically use the username jdoe instead of my unix username. 

If you are prompted for a private key password 

This will look something like: 
Enter passphrase for key '/home/jdoe/.ssh/id_dsa': 
To get around this you can either setup ssh-agent to cache this password or you can simply turn off the password on your private key. To do the latter, simply type: 
ssh-keygen -t dsa -p 
and follow the prompts, and when it prompts for a new passphrase, simply hit enter.
Language Unknown / Tagged with svn, ssh

Remove carriage returns (^M) from file using vi editor

Posted by Chad Humphries over 2 years ago
" 1. Load file into vi
" 2. Be sure to use the  for this to work
" 3. :1,$s///g

" Basically this starts at line 1, to end of file ($), substitutes (s) ^M with empty (//), repeating on same line ok (g)
:1,$s/^M//g
Language Unknown / Tagged with vim