Short for the crude phrase meaning utterly useless, or its milder form no freaking good. Scrawled on a part to flag it as unfit for use after it fails inspection, among other uses. Common on factory floors and in the American armed forces.
The inspector slapped an NFG tag on the cracked gear and sent it back to the line.