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
--- | |
kind: DaemonSet | |
apiVersion: extensions/v1beta1 | |
metadata: | |
name: tcp-server-ds | |
labels: | |
app: tcp-server-ds | |
spec: | |
template: | |
metadata: |
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
upstream dockerfetch { | |
server 127.0.0.1:8082 fail_timeout=0; | |
server HOSTNAME.YOURDOMAIN.com:8082 fail_timeout=0; | |
} | |
upstream dockerpushtest { | |
server 127.0.0.1:8083 fail_timeout=0; | |
server HOSTNAME.YOURDOMAIN.com:8083 fail_timeout=0; | |
} | |
server { | |
listen 48082 ssl; |
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
Screen shot to link to stackoverflow: https://stackoverflow.com/questions/48222569/unable-to-install-artifactory-5-x-on-ubuntu-16-04-with-ppa-does-not-have-a-rel |
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
input { | |
tcp { | |
port => 12345 | |
codec => multiline { | |
pattern => "^Finished: " | |
what => "previous" | |
} | |
} | |
} |
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
# Prepare the binary | |
mkdir mypackage; # root dir of the package creation | |
mkdir -p mypackage/usr/bin; # path to install | |
cp box mypackage/usr/bin # copy the binary | |
# Prepare the debian control | |
mkdir -p mypackage/DEBIAN/ | |
cat > mypackage/DEBIAN/control << EOF | |
Package: myfancypackage | |
Version: 1.0-1 |
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
package fragments | |
import ( | |
"net/http" | |
"bytes" | |
) | |
// define a type function | |
type httpReqFunc func () (resp *http.Response, err error) |
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
package fragments | |
import "os" | |
func dummy() { | |
// define | |
createFile := func (path string) *os.File { | |
tmpfn, err := os.Create(path) | |
if err != nil { |
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
package fragments | |
func downloadUrls(urls []string) { | |
done := make(chan bool, len(urls)) | |
for _, url := range urls { | |
go func(url string) { |
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
package fragments | |
import ( | |
"net/http" | |
"io" | |
"log" | |
"strings" | |
"os" | |
"bytes" | |
) |
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
09:26:43.636 [GIT] Fetching changes | |
09:26:43.949 [GIT] Performing git gc | |
09:26:44.051 [GIT] Reset working directory pipelines/REPO | |
09:26:44.051 [GIT] Cleaning all unversioned files in working copy | |
09:26:44.474 Working directory "/var/lib/go-agent/pipelines/REPO/PATH/REP" does not exist! | |
09:26:44.515 [go] Job completed REPO/7/defaultStage/1/defaultJob on sandbox [/var/lib/go-agent] |