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
[Unit] | |
Description=Home Assistant | |
After=network-online.target | |
[Service] | |
Type=simple | |
User=hass | |
ExecStart=/home/hass/bin/hass | |
[Install] |
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/sh | |
HOSTS="/tmp/hosts/remote1" | |
MAIN="https://raw.githubusercontent.com/racaljk/hosts/master/hosts" | |
MIRROR="https://coding.net/u/scaffrey/p/hosts/git/raw/master/hosts" | |
TEMPFILE="/tmp/hostsupdate.swp" | |
USEDBLOCKS="Android|Amazon AWS|Apkpure|Archive|Box.com|BundleStars|Cloudfront.net|Disqus|Dropbox|DuckDuckGo|Facebook|Github|Google|Gmail web|gstatic|Googleapis|Googleusercontent|imgur|Instagram|MEGA|OneDrive|pinterest|RawGit|Tor|W3schools|Wikipedia|XboxLive" | |
wget -O $TEMPFILE $MAIN |
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
#IfWinActive, Plants vs. Zombies | |
CoordMode, Mouse, Client | |
SetMouseDelay, 0 | |
SetDefaultMouseSpeed, 0 | |
ClickAndRet(x) { | |
MouseGetPos, xold, yold | |
MouseMove, x*60+60, 40 | |
MouseClick | |
MouseMove, xold, yold | |
MouseClick |