Green’s Dictionary of Slang

nub n.1

[ety. unknown; ? SE nub, a protuberance, a lump]
(UK Und.)

1. the gallows.

[UK]B.E. Dict. Canting Crew n.p.: [...] the Cull was glimm’d, he gangs to the Nub, c. if the Fellow has been Burnt in the Hand, he’ll be Hang’d now.
[UK]A. Smith Lives of Most Notorious Highway-men, etc. (1926) II [as cit. c.1698].
[UK]New Canting Dict. [as cit. c.1698].

2. the neck.

[Ire]Head Canting Academy (2nd edn).
[UK]B.E. Dict. Canting Crew n.p.: Nub The Neck.
[UK]J. Shirley Triumph of Wit.
[UK]New Canting Dict. [as cit. c.1698].
[UK]Bailey Universal Etym. Eng. Dict. [as cit. c.1698].
[UK]Scoundrel’s Dict. 18: A Neck – Nub.
[UK]Grose Classical Dict. of the Vulgar Tongue.
[UK]H.T. Potter New Dict. Cant (1797).
[UK]G. Andrewes Dict. Sl. and Cant.
[UK]Lex. Balatronicum.
[UK]Egan Grose’s Classical Dict. of the Vulgar Tongue.
[UK]G. Kent Modern Flash Dict.
[UK]Duncombe New and Improved Flash Dict.
[US]Matsell Vocabulum.

3. (UK und.) a farthing.

[UK]Life and Glorious Actions of [...] Jonathan Wilde 26: In the Thieves Language, a Farthing is called a Neck or Nubb.

4. (US) an ugly or repulsive person.

[US]Berrey & Van den Bark Amer. Thes. Sl.
[US]Dahlskog Dict. Contemp. and Colloq. Usage 42/2: Nub, n. An ugly girl; an ugly or replusive person.

5. a cigarette.

[UK]W. Hall Long and the Short and the Tall Act II: I slipped him half a dozen nubs!

6. (US drugs) a very small portion of a narcotic.

[US]T. Swerdlow Straight Dope [ebook] — Give me another nub [of heroin], then don’t give me anymore no matter what I say.