Live data from Hacker News

Ask HN: Little hacks that make your life easier?

news.ycombinator.com

51–60 of 84 posts

Re: Ask HN: Little hacks that make your life easier?

#51

Earlier quoted context omitted.

Where can I find hop? All my search results talk about traceroutes.

It looks like it might be this one: https://github.com/Cue/hop

That's the one indeed. Sorry for not providing a link!

Re: Ask HN: Little hacks that make your life easier?

#53
post #42

Earlier quoted context omitted.

Nice. I am stealing this. I have the leader mapped to . And I move around splits and tabs using this. "New horizontal split nmap s :split "New vertical split nmap v :vsplit "New tab nmap t :tabe "Easy close nmap q :q " Split navigation nmap j j nmap k k nmap h h nmap l l "Tabs like Vimium noremap :tabprevious noremap :tabnext

You should check out `:help CTRL-W_v` and most of `:help opening-window` in general; the first few of your shortcuts are already in Vim by default. I had similar shortcuts until a serendipitous trip into the help docs.

You are right. I used to use them but pressing Ctrl was a pain in the pinky finger. :sp and :vs is 2 more keys to press. Using Space as a leader makes everything available at the flick of my thumb. I rarely ever move my eyes to the command pane.

I forgot to mention that I have mapped Space+P to CtrlP fuzzy finder. That too is a one pinch like operation, even though it requires two keypresses.

Re: Ask HN: Little hacks that make your life easier?

#54
post #17

1. Synergy I use Synergy to use my netbook's keyboard and touchpad for my workstation. I just zoom everything up on the workstation and lay back on the bed and code. Very cool. Bash alias on both systems is "synergize" The next thing that I am going to do is switch the server and client roles automatically so that when I am using the workstation I would be able to control my netbook. 2. Tmux I ssh to the workstation…

I don't find myself needing Esc very often in Vim. Then again, I do have jk mapped to Esc, and ;; maps to Esc: which is usually why I want to leave insert mode in the first place.

I have Caps Lock mapped to Alt instead, which pairs nicely with various app hotkeys (Alt+T for iTerm2, Alt+E for Sublime, Alt+S for Skype, Alt+Space to pop Alfred, etc), plus the Cmd+Alt+whatever bindings for various things.

Re: Ask HN: Little hacks that make your life easier?

#55

Earlier quoted context omitted.

Whats this do?

Easily increases your productivity by factor of 2-4.

On a busy news day, probably closer to 8 for me. Seriously. It can be a real problem. I actually took the plunge and did this for a while, and now I feel I've built up enough self-control to not need it. The difference has been amazing.

Re: Ask HN: Little hacks that make your life easier?

#56
post #29

If I need to take something with me out of the house that I don't normally take (i.e. NOT my laptop bag, keys, etc), I leave it on the floor beside the door out of my apartment. Which means I can't help but look at it when walking out the door.

My fiancee used to think I was nuts for doing this! This entire thread has really helped validate a lot of my personal habits. Thanks, HN.

Re: Ask HN: Little hacks that make your life easier?

#57
post #48

I don't use deodorant. At all. I haven't for about two years now. And I guarantee you that I have less underarm smell than you. Every morning I splash a squirt of rubbing alcohol under each arm. No smell, no white powder, no creepy aluminum salts.

Same, sans alcohol

Re: Ask HN: Little hacks that make your life easier?

#58
post #48

I don't use deodorant. At all. I haven't for about two years now. And I guarantee you that I have less underarm smell than you. Every morning I splash a squirt of rubbing alcohol under each arm. No smell, no white powder, no creepy aluminum salts.

> no creepy aluminum salts

As someone who's used them for probably a decade now, I wonder what you think is creepy about them?

Also, I've read about some rubbing alcohols not being safe for long term use, have you heard this, and what have you settled on?

Re: Ask HN: Little hacks that make your life easier?

#59
post #31

Resealable sandwich bags. I use them to portion food, either raw or cooked, and freeze. It means even if I'm working 50+ hours this week I can cook a couple of meals on Sunday and be sorted for the week. It also means that, since I live communally but cook by myself, I don't have to eat the same meal for four days in a row.

I use ball jars. They are reusable, they basically never spill during transit, and they fulfill multiple other roles.

Re: Ask HN: Little hacks that make your life easier?

#60
post #17

1. Synergy I use Synergy to use my netbook's keyboard and touchpad for my workstation. I just zoom everything up on the workstation and lay back on the bed and code. Very cool. Bash alias on both systems is "synergize" The next thing that I am going to do is switch the server and client roles automatically so that when I am using the workstation I would be able to control my netbook. 2. Tmux I ssh to the workstation…

I don't find myself needing Esc very often in Vim. Then again, I do have jk mapped to Esc, and ;; maps to Esc: which is usually why I want to leave insert mode in the first place. I have Caps Lock mapped to Alt instead, which pairs nicely with various app hotkeys (Alt+T for iTerm2, Alt+E for Sublime, Alt+S for Skype, Alt+Space to pop Alfred, etc), plus the Cmd+Alt+whatever bindings for various things.

Moreover, pressing alt while in insert mode causes the next key to run as if pressed in normal mode. I usually use this instead of escape for those times when I don't want to go into command mode.

One caveat, however. I recently switch to OS X and have yet to figure out how to get alt/option to behave this way. Really my only major gripe about OS X vs. linux.

Post reply on HN