Device: SONOFF 4CH R2
Device: SONOFF 4CH PRO R2
Steuerung von 3 Garena Ventilen (24v DC) mit 19.5V Netzteil vom laptop.
Adapter von Laptopstecker auf kabel vorhanden.
how to flash firmware: https://www.youtube.com/watch?v=hOFvbdYkOII
| token=$(curl --insecure --request GET \ | |
| --url "https://localhost:1234/Token" \ | |
| --header "$(echo Authorization: Basic $(echo -n 'username:password' | base64))") | |
| # echo $token | |
| # open browser | |
| # xdg-open "https://localhost:1234/?token=" + $token | |
| sensible-browser "https://localhost:1234/?token=" + $token |
| #!/usr/local/bin/php73 | |
| <?php | |
| $username = "YOUR_USERNAME"; | |
| $password = "YOUR_PASSWORD"; | |
| /** | |
| * @param string $url | |
| * @param string $post | |
| * @param string $token |
| // open download page after purchase | |
| // type into web developer console (F12): | |
| let x = ''; | |
| document.querySelectorAll("body > div.page-wrap > div.base-main-wrapper > div.inner-main-wrapper > div:nth-child(5) > div > div.js-gamelist-holder > div.js-all-downloads-holder > div > div > div > div > div.js-download-rows.download-rows > div > div > div.downloads > div > div > div > span > a").forEach(n => x += n.href | |
| + "\n", x) | |
| // will print out all links in a separate row | |
| console.log(x); |
| [Unit] | |
| Description=Disable leds | |
| After=network-online.target | |
| [Service] | |
| Type=oneshot | |
| ExecStart=/bin/sh -c '/bin/echo "none" > /sys/class/leds/led0/trigger' | |
| ExecStart=/bin/sh -c '/bin/echo "0" > /sys/class/leds/led0/brightness' | |
| ExecStart=/bin/sh -c '/bin/echo "none" > /sys/class/leds/led1/trigger' | |
| ExecStart=/bin/sh -c '/bin/echo "0" > /sys/class/leds/led1/brightness' |
Device: SONOFF 4CH R2
Device: SONOFF 4CH PRO R2
Steuerung von 3 Garena Ventilen (24v DC) mit 19.5V Netzteil vom laptop.
Adapter von Laptopstecker auf kabel vorhanden.
how to flash firmware: https://www.youtube.com/watch?v=hOFvbdYkOII
| #!/bin/bash | |
| # usage ./create_bare_git.sh ProjectName | |
| git init --bare --shared=group "$1.git" | |
| LAST_USERGROUP=`groups | awk '{ print $NF }'` | |
| # CURRENT_DIR=`pwd` | |
| CURRENT_DIR=`realpath .` | |
| chgrp -R $LAST_USERGROUP "$1.git" |
| # change to Plex PMS directory on the nas (volume1 could be different) | |
| cd "/volume1/Plex/Library/Application Support/Plex Media Server" | |
| # stop Plex application for now | |
| sudo synopkg stop "Plex Media Server" | |
| # move away existing logs | |
| mv Logs Logs-bkp | |
| # list directory content | |
| # remember group and userid from user plex and group users | |
| ll -n | |
| # create mount point for the Logs directory with the uid listed above |
| #!/bin/bash | |
| # see infos from: | |
| # https://www.plex.tv/media-server-downloads/ | |
| # https://downloads.plex.tv/plex-media-server/1.14.1.5488-cc260c476/PlexMediaServer-1.14.1.5488-cc260c476-x86_64.spk | |
| # first !! | |
| # download plex sign key: https://downloads.plex.tv/plex-keys/PlexSign.key | |
| # install it into package manager on the DSM |
| #!/bin/bash | |
| # have a look here: https://github.com/creationix/nvm | |
| # will install it into ~/.nvm/ | |
| curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash | |
| # restart bash | |
| # list available nodejs versions | |
| nvm ls-remote |
| #!/bin/bash | |
| # make sure you are on latest wsl release (bionic) | |
| cat /etc/*release* | |
| # add new repositories | |
| echo "deb [ arch=amd64,i386 ] https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.0.list | |
| echo "deb [ arch=amd64,i386 ] https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.1 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.1.list | |
| # try an update (which will fail, but reveal missing keys) |