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
echo '.env' >> .gitignore | |
git rm -r --cached .env | |
git add .gitignore | |
git commit -m 'untracking .env' | |
git push origin master |
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
#!/bin/sh | |
docker run -d --name "gitlab-runner-$1" --restart always \ | |
-v /var/run/docker.sock:/var/run/docker.sock \ | |
-v /srv/gitlab-runner/config:/etc/gitlab-runner \ | |
gitlab/gitlab-runner:latest | |
docker exec -it "gitlab-runner-$1" gitlab-runner register -n \ | |
--url "$3/ci" \ | |
--registration-token "$2" \ |
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
#start sonatype | |
docker run -d -p 8081:8081 -p 8083:8083 sonatype/nexus3 | |
#run docker daemons | |
docker run --privileged --name docker191 -d docker:1.9.1-dind --insecure-registry=192.168.99.100:8083 | |
docker run --privileged --name docker1111 -d docker:1.11.1-dind --insecure-registry=192.168.99.100:8083 | |
docker run --privileged --name docker191v2 -d docker:1.9.1-dind --disable-legacy-registry=true --insecure-registry=192.168.99.100:8083 | |
#push image with 1.9.1 and 1.11.1 | |
docker run --rm -it --link docker1111:docker --entrypoint="" docker:1.11.1 sh |
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
/** | |
* Prints out the new generated pdf-file as an raw HTTP-header. | |
* @link http://reeg.junetz.de/DSP/node16.html | |
* @link http://www.php.net/manual/de/function.header.php#88038 | |
* @return void | |
*/ | |
function sendPdfFileAsHeader($pdfFile, $fileName) | |
{ | |
$disposition = (false !== strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE 5.5')) | |
? '' |