Version:
- strongswan-5.7.1-1.el7.x86_64
package main | |
/* | |
#include <stdlib.h> | |
#include <string.h> | |
struct AAA { | |
char a[10]; | |
}; | |
*/ |
# Sends PADI then waits for PADO during 5 sec | |
pppoe -d -A -t 5 |
// IterateIPRange calculates the sequence of IP address from beginAddr to endAddr | |
// then calls the callback cb for each address of the sequence. | |
// beginAddr value must be smaller than endAddr. | |
func IterateIPRange(beginAddr, endAddr net.IP, cb func(addr net.IP)) error { | |
incIP := func(ip net.IP) net.IP { | |
for j := len(ip) - 1; j >= 0; j-- { | |
ip[j]++ | |
if ip[j] > 0 { | |
break | |
} |
local-hostname: ubuntu1 |
#!/bin/sh | |
set -e | |
. /etc/os-release | |
case "${ID} ${ID_LIKE}" in | |
*ubuntu*) ;; | |
*debian*) ;; | |
*) |
# test/[, uname, sort and head are from coreutils. | |
% uname -r | |
4.20.11-1.el7.elrepo.x86_64 | |
% [ "4.12" == $((echo "4.12"; echo $(uname -r)) | sort --version-sort | head -1) ] | |
% echo $? | |
0 |
#!/bin/bash | |
set -e | |
OUTPUTSCRIPT="test1" | |
test1(){ | |
timeout 3 grep 5 > /dev/null | |
echo "found 5" |
[Service] | |
ExecStart= | |
ExecStart=/usr/bin/dockerd --icc=true --dns 8.8.8.8 -H fd:// | |
# --icc=true: Set ACCEPT to the iptables forward chain policy. | |
# --dns=8.8.8.8: Avoid DNS error during docker build. |
Version:
JENKINS_URL=http://192.168.1.57:8080 | |
JENKINS_WORKSPACE=/home/jenkins/workspace | |
JENKINS_NODE=node1 |