cgminer:
stratum+tcp://scrypt.[location].nicehash.com:port_num#xnsub

BFGMiner:
stratum+tcp://scrypt.[location].nicehash.com:port_num/#xnsub (mind the slash '/' before #xnsub)

Connection settings for ethminer using AMD GPUs
ethminer -SP 2 -G -S daggerhashimoto.LOCATION.nicehash.com:3353 -O YOUR-BITCOIN-ADDRESS.WORKER-NAME:x

Connection settings for ethminer using NVIDIA GPUs
ethminer -SP 2 -U -S daggerhashimoto.LOCATION.nicehash.com:3353 -O YOUR_BTC_ADDRESS_HERE.WORKER-NAME:x

Examples:

Mining with 2x AMD 280X GPUs on EU location
ethminer -SP 2 -G -S daggerhashimoto.eu.nicehash.com:3353 -O 1DQ4bZpFTDiSNk2CWLEFWK9K96rBFP2Hv.amdrig
