photo
Jordan Sissel
geek

Thu, 23 Oct 2003

vim rocks me.

So yeah - I was explaining the beauties of cindent and folding in vim to a werkt today and when I went back to my room decided to pull up the help on cindent, etc. Looked at indentexpr and decided I needed to learn more vim. What indentexpr lets you do is set a vim function (Or perl/python/ruby) tell vim how much to indent.

More on this later after I write a vim script to do exactly what I want...

Comments: 0 (view comments)
Tags:
Permalink: /productivity/79
posted at: 20:14

sshall again

So xapply -f doesn't cut it for when I want interactive ssh sessions, so I updated my sshall script to use the apply syntax instead of xargs - this lets me do

sshall

and actually get a login prompt. If I used xapply (as previously) it would complain about not being able to grab stdin (or a tty) because we were doing:

cat hostlist | xapply -f 'ssh ...'

This would give the error message (for each host):
project1 -
Pseudo-terminal will not be allocated because stdin is not a terminal.
The solution to this problem is varied. You'll probably need the -t option for ssh: ssh -t user@server will allocate a terminal for you on the remote server so console-based applications will work.

Comments: 0 (view comments)
Tags:
Permalink: /productivity/78
posted at: 08:48

Search this site

Navigation

Metadata

Home About Resume My Code (SVN)

Articles

ARP Security Dynamic DNS with DHCP OpenLDAP+Kerberos+SASL PPP over SSH SSH Security: /bin/false Week of Unix Tools Work Efficiency

Projects

fex firefox tabsearch firefox urledit grok keynav liboverride newpsm (FreeBSD) nis2ldap pam_captcha poor man's backup Solaris audio utility xboxproxy xdotool xmlpresenter xpathtool misc scripts

Presentations

Yahoo! Hack Day '08 Yahoo! Hack Day '06 Unix Essentials Vi/Vim Essentials SSH Tunneling (Video)

Tag Cloud

Calendar

< October 2003 >
SuMoTuWeThFrSa
    1 2 3 4
5 6 7 8 91011
12131415161718
19202122232425
262728293031 

Friends

BarCamp Kent Brewster Tantek Çelik John Resig Wesley Shields Tyler Shields

Technorati