HNHacker News
TopNewBestAskShowJobs

gaving

272 karma · joined June 18, 2011

[ my public key: https://keybase.io/gaving; my proof: https://keybase.io/gaving/sigs/sXBrlhmAqNe63KrqrL2l1lO0emvtoMSof_C5XQ3LiFM ]
submissionscomments
gaving··on All of life has been utterly, profoundly changed thanks to Facebook...
Wow. Just wow. :/
gaving··on Bash Shortcuts For Maximum Productivity
uh, why wouldn't you just actually paste the url into your terminal at that point instead of typing `xclip -o`?

and yeah, typing the actual command into the terminal is always going to be 'simpler'

gaving··on Bash Shortcuts For Maximum Productivity
I'm a zsh user, but here's a couple of things I find pretty invaluable:-

    bindkey '^Q' push-line
The 'push-line' widget allows you to quickly type another command and will restore the previous one once you've entered it.

    # re-run the previous command with sudo
    rerun-with-sudo () {
      LBUFFER="sudo !!"
      zle accept-line
    }
    zle -N rerun-with-sudo
    bindkey '^Xx' rerun-with-sudo
Re-run the previous command prefixed with sudo by typing ^X then x.

And:-

    # build git clone command from clipboard
    git-clone-clipboard() {
        REPO_URL="$($CLIPBOARD)"
        REPO_BASE_NAME=${$(basename $REPO_URL)%.git}
        LBUFFER="nocorrect git clone $REPO_URL $REPO_BASE_NAME"
    }
    zle -N git-clone-clipboard
    bindkey "^Xg" git-clone-clipboard
^Xg prefixes a git url with "git clone" and fills out the command line.

Couple similar things for wget, youtube-dl here: https://github.com/gaving/dotfiles/blob/master/.zsh/config

gaving··on ~/.osx — a collection of sensible defaults for OS X Lion
Just wish I could figure out how to disable the damn Spaces/Mission Control 'swoosh' switch animation like you could in Leopard :(
gaving··on How Steve Jobs handles trolls (WWDC 1997)
Yeah, you should look up the definition of "troll" yourself because that isn't it.

Also, I don't think the guy really "knew" the answer to the question and had legitimate gripes as you would if a project you've been working on for the last x years was suddenly canned.

gaving··on Why every programmer should have a Tiddlywiki
Personally use github's gollum: https://github.com/github/gollum which is pretty awesome and git-backed.

Allows you to do all your wiki pages in markdown and a sleugh of other markup formats. Plus, did I mention git backed?!

gaving··on List of vim plugins I use - with mini tutorials
I'd recommend trying Ultisnips instead (of the now abandoned) snipmate: http://fueledbylemons.com/blog/2011/07/27/why-ultisnips/

I realise there is a fork going, but Ultisnips is providing a ton more features and seems a lot nicer in many aspects.

← PreviousPage 4 of 4