Ketogenic dieting has become a favorite pastime of Silicon Valley techies who want to hack their bodies to improve energy levels and performance. The regimen involves eating foods that are high in fat and some protein, while keeping carbohydrates to a minimum.