Green’s Dictionary of Slang

cowboy v.

[cowboy n. (1); the style (or certainly as enshrined by Hollywood) of a classic Wild West hold-up or gunfight]
(US)

1. to rob in a reckless manner; thus cowboying adj.

[US]N. Algren Never Come Morning (1988) 18: Here he was, going somewhere but he didn’t know where, on some sort of cowboying job he didn’t know a thing about.
[US](con. 1940) C. Chessman Cell 2455 175: So you cowboy it; you rob everything and anything in the way of business establishments.
[US]H. Williamson Hustler 196: ‘[R]ay feelin’’ [...] where you don’t plan what you’re goin’ a do, you just go out and catch whatever you can. You take more chances than you should, too. They also call this ‘cowboyin’,’ but ‘cowboyin’’ really means not taking as many chances.

2. to murder, to gun down.

C.A. Wyer Sun (N.Y.) n.p.: He had had an assignment to kill a man and his bodyguard ‘even if we had to cowboy them.’ ‘What does that mean?’ asked Liebowitz. ‘That means that we were to kill them any place we found them even if it was in the middle of Broadway.’ [W&F].
[US]W. Burroughs Naked Lunch (1968) 233: Cowboy: New York hood talk means kill the mother fucker wherever you find him.
[US]E. Torres Q&A 180: ‘[T]he wops are gonna cowboy me on sight. Open contract’.

3. (also cowboy it) to act in a reckless manner; thus cowboying n.

[US] in M. Daly Profile of Youth 50: Despite the cowboying and hot rods, no proof can be obtained that high-schoolers are more prone to accidents than drivers in any other age range.
[US](con. 1986) G. Pelecanos Sweet Forever 94: Tutt would cowboy it without thought if anything went down.
[US]C. Stella Joey Piss Pot 89: ‘I only have two shooters could even pull it off, and only one of them has the stones to cowboy it [i.e. a double murder] the way it was done’.

In phrases

cowboy up (v.)

(US) to act or pose as tough, indefatigable.

[US]M. Lacher On the Bro’d 296: Suddenly I got mad sick [...] I tried to cowboy up and get my shit together.