knux's comments

knux | 8 years ago | on: Git log – The good parts

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.

knux | 8 years ago | on: Git log – The good parts

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'"

knux | 8 years ago | on: Ask HN: How do you keep your energy level up?

>Modafinil(modalert) is a mood enhancer, which I use when I wake up.

Again, OP is not talking about when he wakes up.

>Sativa brings you up with energy

Like a stimulant. This is not useful for OP.

Lumping all antidepressants together and saying they cause more problems than they solve is generalizing too much. Which ones cause problems, and for which people? The most common type is SSRIs, but if OP does not metabolize folic acid properly, it is off the table. I will concede that tricyclic antidepressants have more side effects, but SSRI use is relatively common, at 10% (https://www.scientificamerican.com/article/the-rise-of-all-p...). That is compared to 7-13% of adults who report cannabis use (http://www.gallup.com/poll/194195/adults-say-smoke-marijuana...).

Speaking from personal experience, antidepressant has made all the difference for me, in terms of energy. Unrelated, I use atomoxetine for focus throughout the day. As it is not a stimulant, there is no crash or feeling tired in the evening hours. Its levels are consistent throughout the day, and I code at all times of day with little fluctuation, in terms of motivation.

knux | 8 years ago | on: Ask HN: How do you keep your energy level up?

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.

knux | 8 years ago | on: Ask HN: How do you keep your energy level up?

>I don't have time for any of the hobbies I had in college

>but that just seemed to make me more tired.

>I'd be a pretty poor parent if I came home with this level of energy every day.

This isn't energy, it's depression. Even if you are not talking about "burn out", talking about your energy levels is a mood issue, unless you are overweight, have a bad diet, or have irregular sleep (which, as you say, you do not).

I would mention these concerns to your doctor. 10% of US adults (http://www.healthline.com/health/depression/statistics) suffer from depression, and it has nothing to do with whether you enjoy your job. The difference, if treated, is that you will enjoy your job and have energy at the end of the day.

knux | 14 years ago | on: Cracking OSX Lion passwords

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?
page 1