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
import hudson.model.*; | |
import hudson.util.*; | |
import jenkins.model.*; | |
import hudson.FilePath.FileCallable; | |
import hudson.slaves.OfflineCause; | |
import hudson.node_monitors.*; | |
node('master'){ | |
stage('Cleanup nodes'){ |
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/bash | |
AUTH=AUTHTOKEN; | |
ASUSWRTPRESENCEIP=IP; | |
DOMOTICZ_IP=IP; | |
DOMOTICZ_PORT=PORT; | |
curl --silent http://$ASUSWRTPRESENCEIP:9090 > devices | |
function checkPresence { |
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
import RxSwift | |
// trick to get a clean unwrap optional by creating an intermediate type | |
protocol Optionable { | |
associatedtype Wrapped | |
var value: Wrapped? { get } | |
} | |
extension Optional : Optionable { | |
var value: Wrapped? { return self } |
OlderNewer