Recent submissions

Comment · 8 years ago
My personal favorite is `git log -p --` because it actually shows you the content that changed.

Or, to show you what changed on each given single line, use `git log -p --color-words --`. Far more useful for long lines, IMO.

I'm also a fan of `git log -LN,N:filename`, where N is a line number. It gives you a log of that particular line number. It's like `git blame` but better.

Comment · 8 years ago
You can still add color when not piping or writing to a file with `--color=auto`.

      git config --global alias.lg "log --color=auto --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset'"
Comment · 9 years ago
Comment · 9 years ago
Stimulants will make them more active during work hours. They are talking about energy in evening hours. If you are suggesting stimulant use in evening hours, let me shut that down right now, because it will affect their sleep quality.

Exercise is a decent idea. I would suggest an antidepressant instead of a stimulant, though.

Comment · 9 years ago
Comment · 9 years ago
Make sure you keep the display pixelated when you scale it for "zoom in".

  .nes-screen {
    image-rendering: pixelated;     /* webkit */
    image-rendering: optimizespeed; /* firefox */
  }
Comment · 10 years ago
Comment · 15 years ago
Unless the Mac has a firmware password. You could just remove that by resetting the PRAM, unless you wanted to go undetected. In that case, you could remove the hard drive, mount it elsewhere, and change the password hash. Is FileVault plus a firmware password the only safe way to keep your Mac?

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton