Skip to content

Instantly share code, notes, and snippets.

@philax
philax / README.MD
Created November 19, 2020 20:11 — forked from RichardBronosky/README.MD
cb - A leak-proof tee to the clipboard - Unify the copy and paste commands into one intelligent chainable command.

cb

A leak-proof tee to the clipboard

This script is modeled after tee (see [man tee][2]) and works on Linux, macOS, Cygwin, WSL/WSL2

It's like your normal copy and paste commands, but unified and able to sense when you want it to be chainable.

This project started as an answer to the StackOverflow question: [How can I copy the output of a command directly into my clipboard?][3]

@philax
philax / gist:178538b9fc1f3383426c928909f9ae62
Created June 15, 2017 19:50 — forked from g-r-a-v-e-l-y/gist:5657778
A very silly "turn chrome into a full screen kiosk and tab-rotate it with applescript" waste of time.
## settings
set lag to 120
set sites to {"http://nyan.cat", "http://grantstavely.com/files/borat.html"}
## functions
on tab_toggle(lag, sites)
set siteCount to count sites
tell application "System Events"
## lame hacks abound
vagrant@precise64:/vagrant/chef-repo/cookbooks$ knife bootstrap windows winrm 1
0.64.129.42 -N atestnode -r 'role[windows]' -x DOMAIN\USER -P PASSWORD --bootstrap-version=11.10.04 -VV
Waiting for remote response before bootstrap.DEBUG: Adding 10.64.129.42
DEBUG: :session => :init
DEBUG: :relay_to_servers => echo . & echo Response received.
DEBUG: :relayed => 10.64.129.42
DEBUG: 10.64.129.42 => :run_command
..DEBUG: Adding 10.64.129.42
DEBUG: :session => :init
vagrant@precise64:/vagrant/chef-repo/cookbooks$ knife bootstrap windows winrm 1
0.64.129.42 -N atestnode -r 'role[windows]' -x DOMAIN\USER -P PASSWORD --bootstrap-version=11.10.04 -VV
Waiting for remote response before bootstrap.DEBUG: Adding 10.64.129.42
DEBUG: :session => :init
DEBUG: :relay_to_servers => echo . & echo Response received.
DEBUG: :relayed => 10.64.129.42
DEBUG: 10.64.129.42 => :run_command
..DEBUG: Adding 10.64.129.42
DEBUG: :session => :init