Skip to content

Instantly share code, notes, and snippets.

@moondev
Last active March 31, 2021 20:46
Show Gist options
  • Select an option

  • Save moondev/2fde11e7734f52d7e7fe484667cad20a to your computer and use it in GitHub Desktop.

Select an option

Save moondev/2fde11e7734f52d7e7fe484667cad20a to your computer and use it in GitHub Desktop.
ChromeCast
ChromeCast v1
ChromeCast init
#!/usr/bin/env bash
# curl -sL https://gist.github.com/moondev/2fde11e7734f52d7e7fe484667cad20a/raw/cmd | bash
set -e
set -x
ARGS=$@
gobin -run github.com/rliebz/[email protected] -f <(cat <<-------
tasks:
neofetch:
run:
- neofetch
------
) ${ARGS}
ChromeCast krew plugin
#!/usr/bin/env bash
set -e
set -x
go install -v github.com/myitcv/gobin@latest
gosh="gobin -run mvdan.cc/sh/v3/cmd/gosh@latest"
yq3="gobin -run github.com/mikefarah/yq/v3/cmd@latest"
gochromecast="gobin -run github.com/vishen/[email protected]"
cast="gobin -run github.com/barnybug/go-cast/cmd/cast@latest"
cat <<------- > /tmp/ytid && ${gochromecast} --first stop && ${cast} --name hd url load $(cat /tmp/ytid) && ${gochromecast} --first --watch --output json
https://www.youtube.com/watch?v=HDkCCxzVmfk
------
${gochromecast} --first --watch --output json | while read line; do echo $line | ${yq4} r - -PC; done
cat --name hd url load https://www.youtube.com/watch?v=dAVyKuS_noI
gobin -run github.com/rliebz/[email protected] -f -<-------
tasks:
neofetch:
run:
- neofetch
------
@moondev
Copy link
Author

moondev commented Mar 31, 2021

@moondev
Copy link
Author

moondev commented Mar 31, 2021

$SHELL <(curl -sL https://gist.github.com/moondev/2fde11e7734f52d7e7fe484667cad20a/raw/cmd)
$SHELL <(curl -sL https://gist.github.com/moondev/2fde11e7734f52d7e7fe484667cad20a/raw/cmd) neofetch
curl -sL https://gist.github.com/moondev/2fde11e7734f52d7e7fe484667cad20a/raw/run | $SHELL
$SHELL -c (curl -sL https://gist.github.com/moondev/2fde11e7734f52d7e7fe484667cad20a/raw/run)
bash <(curl -sL https://gist.github.com/moondev/2fde11e7734f52d7e7fe484667cad20a/raw/run) neofetch

@moondev
Copy link
Author

moondev commented Mar 31, 2021

$SHELL <(curl -sL https://gist.github.com/moondev/2fde11e7734f52d7e7fe484667cad20a/raw/cmd) -h
$SHELL <(curl -sL https://gist.github.com/moondev/2fde11e7734f52d7e7fe484667cad20a/raw/cmd) neofetch

@moondev
Copy link
Author

moondev commented Mar 31, 2021

curl -sL https://gist.github.com/moondev/2fde11e7734f52d7e7fe484667cad20a/raw/387ad84fa9c048bae7663a1cfafcce145dce41ef/neofetch | $SHELL

@moondev
Copy link
Author

moondev commented Mar 31, 2021

$SHELL <(curl -sL https://gist.github.com/moondev/2fde11e7734f52d7e7fe484667cad20a/raw/cmd)  cast -u 'https://www.youtube.com/watch?v=7EUVJaKJtBY'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment