634 reputation
1617
bio website stevenlu.net
location
age 25
visits member for 2 years, 10 months
seen 2 days ago

Aug
5
revised Is there a way to yank the selected text into the search field in Chrome?
added 65 characters in body
Aug
5
revised Is there a way to yank the selected text into the search field in Chrome?
added 170 characters in body
Aug
5
comment Is there a way to yank the selected text into the search field in Chrome?
I need search in page. Not search Google. The drag might help but it's a bit awkward if the search field isn't already present. And if it is, it simply appends rather than replaces what's already in the search field. This all gets in the way of filtering and finding stuff on a page quickly.
Aug
5
asked Is there a way to yank the selected text into the search field in Chrome?
Jul
25
comment Why sudo is needed for rebooting in terminal but not from the GUI?
I just saw my CentOS VM claim "reboot" was not a command when I was su-ed as root. I typed sudo reboot there and it worked. When I directly SSH in as root, reboot works fine. It's weird.
Jul
23
accepted Is it possible to suspend a socket (SSH session, specifically) to switch network devices?
Jul
23
comment Is it possible to suspend a socket (SSH session, specifically) to switch network devices?
Wow, that's awesome. This definitely fits the bill. Thanks!
Jul
23
comment Is it possible to suspend a socket (SSH session, specifically) to switch network devices?
yeah but it isn't transparent without scripting. Nor is it transport-level. I am already a serious Tmux user :)
Jul
23
revised Is it possible to suspend a socket (SSH session, specifically) to switch network devices?
added 84 characters in body
Jul
23
asked Is it possible to suspend a socket (SSH session, specifically) to switch network devices?
Jul
20
comment How do I adjust settings on Afloat for the Mac?
They should really add an entry automatically. Anyway, I've set mine to Ctrl+Cmd+A (to match the Ctrl+Cmd scroll to adjust opacity), and it's perfect.
Jul
19
comment Running ssh-keygen without human interaction?
In your script, use a prompt (read -s) to read the password to pass on. Also beware ps may reveal process command args (which will include password). Because of that it may be best to use expect along with the normal password prompt, to send it in that way.
Jul
19
comment How do I stop ssh-agent from forgetting my password after I login to the screen session from SSH?
Do you know if there is a way to make it remember even through a reboot? See my question; OS X for instance can do this.
Jul
16
comment Search in Vim's undo history
Ah, correction: -S for git pickaxe search for string, -G for git pickaxe search for regex. Quite powerful.
Jul
15
comment Search in Vim's undo history
I believe there is a "market" for this: to accelerate the workflow of finding a past change by automated culled search rather than manual linear search: c.f. git log -p and git log -p -S 'regex_for_change'. I'm not aware of any vim feature (or Gundo feature) that lets you specifically target a part of the diffs. For example, it is very easy to add power to git log -p by just using the search in less, but this can't be done in Gundo.
Jul
2
revised Vim: Show the index of tabs in the tabline
added 44 characters in body
Jul
2
revised Vim: Show the index of tabs in the tabline
added 3707 characters in body
Jul
2
answered Vim: Show the index of tabs in the tabline
Jun
30
awarded  Famous Question
Jun
29
answered Windows 7: Slide-window-back-on-screen feature