$tu(rndimg, 15, "/storage/B84B-2BF0/images")$
This file contains 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
alias: Scene Switch | |
description: Handle all automations related to scene switch | |
trigger: | |
- platform: event | |
id: btn_1_press | |
event_type: zha_event | |
event_data: | |
device_id: 65ac534f2e5b9f40cfff355a30b814df | |
endpoint_id: 1 | |
cluster_id: 6 |
This file contains 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
const http = require('http'); | |
const URL = require('url'); | |
const { execSync } = require('child_process'); | |
const port = 3000; | |
const server = http.createServer((req, res) => { | |
res.statusCode = 200; | |
res.setHeader('Content-Type', 'application/json'); |
This file contains 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
<select class="Select-select-cgne0H" name="[1].channelKey" data-dashlane-rid="5135623df7bfa1dc" data-form-type=""> | |
<option value="">Select Channel</option> | |
<optgroup label="DIRECTV New York (1051 channels)"> | |
<option value="5fc7711eeefdbb002d4a2c72-5fc705e2088e7d002d4c6de2:001">001 WINS (WINS)</option><option value="5fc7711eeefdbb002d4a2c72-5fc70600a05ef8002e616464:002">002 CBS Television Network (WCBSDT)</option> | |
<option value="5fc7711eeefdbb002d4a2c72-5fc70603336b43002e137eca:002">002 CBS Television Network (WCBS)</option><option value="5fc7711eeefdbb002d4a2c72-5fc705f2d783b6002d7a9387:004">004 NBC (WNBCDT)</option> | |
<option value="5fc7711eeefdbb002d4a2c72-5fc705f13f45c6002eab56d2:004">004 NBC (WNBC)</option><option value="5fc7711eeefdbb002d4a2c72-5fc705fbdd53a6002d8f92f7:005">005 Fox Entertainment (WNYWDT)</option> | |
<option value="5fc7711eeefdbb002d4a2c72-5fc705faa62668002dcefdd1:005">005 Fox Entertainment (WNYW)</option><option value="5fc7711eeefdbb002d4a2c72-5fc705faa |
This file contains 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
#!/bin/bash | |
MIN_RANGE=1 | |
MAX_RANGE=125 | |
# Update 'url' var to url and move i to the dynamic range. | |
for (( i = $MIN_RANGE; i <= $MAX_RANGE; i++ )) | |
do | |
url="www.google.com/$i/foo/bar" | |
echo "Running cmd: curl $url" |
This file contains 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
const fun = ` | |
(async () => { | |
const sleep = (timeout) => new Promise((resolve) => setTimeout(resolve, timeout)); | |
const btns = [...document.getElementsByClassName("btn")].filter( it => it.title === "Add to Card"); | |
for (let i = 0; i < btns.length; i++) { | |
btns[i].click(); | |
await sleep(1000); | |
} | |
})() | |
`; |
(adapted from https://github.com/StashInvest/rfcs/blob/master/template.md)
- Team or individual: [name(s) here]
- Document date: [ISO 8601 YYYY-MM-DD format]
NewerOlder