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
# THERE IS NOW A BETTER WAY TO DO THIS - SEE wsl-ssh-pageant | |
function sshagent_findsockets { | |
find /tmp -uid $(id -u) -type s -name agent.\* 2>/dev/null | |
} | |
function sshagent_testsocket { | |
if [ ! -x "$(which ssh-add)" ] ; then | |
echo "ssh-add is not available; agent testing aborted" | |
return 1 |
# Mp3tag (2.38 or higher) Parsing for Last.fm by h4de5 | |
# Save it in your Mp3tag data directory, | |
# e.g. C:\Documents and Settings\*username*\Application Data\Mp3tag\data\sources | |
# | |
# DO NOT COPY/MODIFY AND REDISTRIBUTE THIS WITHOUT PERMISSION | |
# | |
# Get correct title, artist, album and cover data from last.fm database | |
# | |
# GET last.fm API key here: https://www.last.fm/api/account/create | |
# |
#!/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 | |
# 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 | |
# 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" |
#!/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) |
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
<?php | |
// beware -- this will make you photostation less secure -- beware | |
// file: /volume1/\@appstore/PhotoStation/photo/cms/content_security_policy.php | |
// starting with Photostation 7 (PHP7) the new file to edit is: | |
// file: /volume1/\@appstore/PhotoStation/photo/include/content_security_policy.php | |
// rest is the same | |
// search for script-src | |
// add 'unsafe-inline' |
[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' |