project-folder/
.git
wp-admin/
wp-content/
wp-includes/
.htaccess
| <QueryList> | |
| <Query Id="0" Path="Security"> | |
| <Select Path="Security">* | |
| [System | |
| [Provider | |
| [@Name='Microsoft-Windows-Security-Auditing'] | |
| and | |
| TimeCreated[timediff(@SystemTime) <= 86400000] | |
| ] | |
| and EventData[Data="joe"] |
| // https://gist.github.com/askalee/2c26aa57ca46efe2b1239da03c700497 | |
| import hudson.model.*; | |
| import hudson.util.*; | |
| import jenkins.model.*; | |
| import hudson.FilePath.FileCallable; | |
| import hudson.slaves.OfflineCause; | |
| import hudson.node_monitors.*; | |
| def DEBUG_MODE = (build.getEnvironment(listener).get('DEBUG_MODE') == "true") |
| // https://gist.github.com/askalee/2148608fb4423d97ded690829daae173 | |
| // HISTORY: | |
| // * 2017/10/19: show free disk size for all nodes | |
| // * 2017/10/23: auto check nodes labeled with _autoClean | |
| // * 2017/10/26: 1. monitor all nodes instead of only monitor specific nodes with certain label | |
| // 2. catch exceptions | |
| import hudson.model.*; | |
| import hudson.util.*; | |
| import jenkins.model.*; |
| def RunUnitTests() { | |
| println("INFO: Running Unit Tests") | |
| def tests = [:] | |
| // define unit tests here | |
| tests["GetNodesByLabel"] = { | |
| assert GetNodesByLabel().collect{it.name}.size() > 0 | |
| } | |
| pipeline { | |
| agent { label "linux"} | |
| stages { | |
| stage('1') { | |
| steps { | |
| script { | |
| def tests = [:] | |
| for (f in ['a', 'b']) { | |
| tests["${f}"] = { | |
| node('linux') { |
| cmd = "./restart.sh ${server} ${containerName}" | |
| println("INFO: Restarting the container: ${cmd}") | |
| def proc = cmd.execute() | |
| proc.waitForProcessOutput(System.out, System.err) | |
| def errorCode = proc.exitValue() |
| #!/bin/bash | |
| # Get ip address of this machine | |
| ipAddress="$(/sbin/ip -o -4 addr list eth0 2> /dev/null | awk '{print $4}' | cut -d/ -f1)" | |
| if [ "$ipAddress"=="" ]; then | |
| ipAddress="$(/sbin/ip -o -4 addr list enp0s3 2> /dev/null | awk '{print $4}' | cut -d/ -f1)" | |
| fi | |
| # List containers | |
| ( |
| #!/bin/bash | |
| containerName=$1 | |
| echo "containerName: $containerName" | |
| if [ "$containerName" == "" ]; then | |
| echo "USAGE: $0 containerName" | |
| echo " containerName: id or name" | |
| exit 1 | |
| fi | |
| docker inspect -f \ |
| ' reference: http://forum.plantuml.net/3648/invisible-packages-improve-layout-diagrams-visible-packages | |
| @startuml | |
| skinparam shadowing false | |
| 'skinparam backgroundColor red | |
| skinparam package { | |
| fontColor blue | |
| stereotypeFontColor red | |
| } | |
| skinparam package<<Layout>> { |