Last active
March 31, 2021 20:46
-
-
Save moondev/2fde11e7734f52d7e7fe484667cad20a to your computer and use it in GitHub Desktop.
ChromeCast
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ChromeCast v1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ChromeCast init |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ChromeCast krew plugin |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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 | |
| ------ | |
Author
Author
$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
Author
$SHELL <(curl -sL https://gist.github.com/moondev/2fde11e7734f52d7e7fe484667cad20a/raw/cmd) -h
$SHELL <(curl -sL https://gist.github.com/moondev/2fde11e7734f52d7e7fe484667cad20a/raw/cmd) neofetch
Author
curl -sL https://gist.github.com/moondev/2fde11e7734f52d7e7fe484667cad20a/raw/387ad84fa9c048bae7663a1cfafcce145dce41ef/neofetch | $SHELL
Author
$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
latest
https://gist.github.com/moondev/2fde11e7734f52d7e7fe484667cad20a/archive/07c45d45c40e9ba4889e96ae5cd11e302c6ff771.zip
https://gist.github.com/moondev/2fde11e7734f52d7e7fe484667cad20a/raw/07c45d45c40e9ba4889e96ae5cd11e302c6ff771/api.v1.yaml
https://gist.github.com/moondev/2fde11e7734f52d7e7fe484667cad20a/raw/api.v1.yaml
https://gist.github.com/moondev/2fde11e7734f52d7e7fe484667cad20a/raw/ChromeCast
curl -sL https://gist.github.com/moondev/2fde11e7734f52d7e7fe484667cad20a/raw/cmd | bash