see: https://github.com/benpye/wsl-ssh-pageant
mkdir workspace
cd workspace
git clone git@github.com:benpye/wsl-ssh-pageant.git
cd wsl-ssh-pageant
C:\Windows\Microsoft.NET\Framework\v4.0.30319\csc.exe /out:wsl-ssh-pageant.exe Program.cs
#!/usr/local/bin/php73 | |
<?php | |
$username = "YOUR_USERNAME"; | |
$password = "YOUR_PASSWORD"; | |
/** | |
* @param string $url | |
* @param string $post | |
* @param string $token |
see: https://github.com/benpye/wsl-ssh-pageant
mkdir workspace
cd workspace
git clone git@github.com:benpye/wsl-ssh-pageant.git
cd wsl-ssh-pageant
C:\Windows\Microsoft.NET\Framework\v4.0.30319\csc.exe /out:wsl-ssh-pageant.exe Program.cs
# 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 |
@echo off | |
REM run on windows in elevated cmd line | |
REM clear arp cache | |
arp -d | |
REM TODO: get correct subnet | |
REM bruteforce through the network | |
for /L %%a in (1,1,254) do @start /b ping 192.168.0.%%a -w 100 -n 2 >nul |
[user] | |
name = Username | |
email = your@email.com | |
[alias] | |
# fetches the current branch - than does a diff between the working copy and this fetched branch. | |
# so you should only see the changes that would come with git pull. | |
diffpull=!git fetch && git diff HEAD..@{u} | |
# lists all branches | |
branchlist=!git branch --list -vva |
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 |
// 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' |
<?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' |
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