This file contains hidden or 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
| blueprint: | |
| name: Door + Motion Light Timer (40s / 20m after 2 motions / 1h manual, toggle by switch) | |
| description: > | |
| - Door open -> light on + 40s (motion refreshes). | |
| - Door closed -> count motions; after N motions -> 20m (motion refreshes). | |
| - Manual switch ANY change -> toggle light: | |
| if light becomes ON -> manual mode 1h (motion refreshes) | |
| if light becomes OFF -> reset + cancel timer | |
| - Timer finished -> light off + reset. | |
| domain: automation |
This file contains hidden or 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
| git fetch -p origin | |
| git branch -r --merged origin/develop | grep "feature" | sed -e 's|origin/||' | xargs git push --delete origin | |
| git branch -r --sort=committerdate | head -40 | sed -e 's|origin/||' |
This file contains hidden or 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
| import hudson.model.* | |
| def action = hudson.plugins.git.util.BuildData.class | |
| def currentBuild = this.build | |
| def buildname = currentBuild.getDisplayName() | |
| def revision = currentBuild.getAction(action).lastBuiltRevision.sha1String | |
| def jobname = 'taxdome-features' | |
| def job = currentBuild.project | |
| // def job = Hudson.instance.getJob(jobname) |
This file contains hidden or 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
| docker run -d --volumes-from ovpn-data --restart always --name vpn -p 1194:1194/udp --cap-add=NET_ADMIN kylemanna/openvpn |