| #!/bin/bash | |
| BEARER_TOKEN="xxxxxx" | |
| API_BASE_URL="https://api.smartthings.com/v1/devices" | |
| # --- Configuration (EDIT THIS ARRAY ONLY) --- | |
| DEVICE_IDS=( | |
| "xxxxx" | |
| "xxxxx" | |
| "xxxxx" |
| new Blob(Object.entries(localStorage).flat()).size |
| E MMM d h:mm:s a z |
| // ==UserScript== | |
| // @name noVNC Paste for Proxmox | |
| // @namespace http://tampermonkey.net/ | |
| // @version 0.3 | |
| // @description Pastes text into a noVNC window (for use with Proxmox specifically) | |
| // @author Chester Enright | |
| // @match https://* | |
| // @include /^.*novnc.*/ | |
| // @require http://code.jquery.com/jquery-3.3.1.min.js | |
| // @grant none |
| #!/bin/sh | |
| # REQUIRES 'jq' TO BE INSTALLED (`brew install jq`) | |
| # Combines two aws-cli cognito commands, `list-users` and `admin-user-global-sign-out`. | |
| # * aws cognito-idp list-users --region ${REGION} --user-pool-id ${USER_POOL_ID} | |
| # * aws cognito-idp admin-user-global-sign-out --region ${REGION} --user-pool-id ${USER_POOL_ID} --username ${USERNAME} | |
| # However, the `list-users` command may be paginated. | |
| # Used a pagination loop based on `https://stackoverflow.com/a/68809399`. |
| // <Routes> | |
| // <Route path="/" element={<RequireAuth><Dashboard /></RequireAuth>}> | |
| // <Route path="about" element={<AboutPage />} /> | |
| // </Routes> | |
| import { Auth } from 'aws-amplify' | |
| import { Navigate } from 'react-router-dom' | |
| const RequireAuth = ({ children }) => { | |
| const [loading, setLoading] = React.useState(true) |
| kvmd: | |
| gpio: | |
| drivers: | |
| tes: | |
| type: tesmart | |
| host: 10.10.1.10 | |
| port: 5000 | |
| scheme: | |
| server0_led: | |
| driver: tes |
| on run {input, parameters} | |
| set dir_name to do shell script "date -u '+%Y%m%dT%H%M%SZ'" | |
| do shell script "mkdir -p ~/Desktop/Screenshots/" & dir_name | |
| tell application "VMware Fusion" | |
| activate | |
| # Large | |
| # do shell script "screencapture -R1810,180,2130,3600 ~/Desktop/Screenshots/$(date -u '+%Y%m%dT%H%M%SZ').png" |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <Response> | |
| <Hangup /> | |
| </Response> |