Skip to content

Instantly share code, notes, and snippets.

Avatar

Tobias Munk schmunk42

View GitHub Profile
@schmunk42
schmunk42 / docker-consul.log
Created Sep 5, 2016
Consul networking problems
View docker-consul.log
consul_1 | 2016/09/05 18:09:12 [DEBUG] http: Request PUT /v1/kv/ted/docker/network/v1.0/ipam/default/config/GlobalDefault/?cas=183&flags=3304740253564472344 (5.375159ms) from=7.8.9.333:58420
consul_1 | 2016/09/05 18:09:12 [DEBUG] http: Request GET /v1/kv/ted/docker/network/v1.0/ipam/default/config/GlobalDefault/?consistent= (30.668µs) from=7.8.9.333:58420
consul_1 | 2016/09/05 18:09:12 [DEBUG] http: Request PUT /v1/kv/ted/docker/network/v1.0/ipam/default/config/GlobalDefault/?cas=183&flags=3304740253564472344 (7.175469ms) from=7.8.9.333:58420
consul_1 | 2016/09/05 18:09:12 [DEBUG] http: Request GET /v1/kv/ted/docker/network/v1.0/ipam/default/config/GlobalDefault/?consistent= (108.862µs) from=7.8.9.333:58420
consul_1 | 2016/09/05 18:09:12 [DEBUG] http: Request PUT /v1/kv/ted/docker/network/v1.0/ipam/default/config/GlobalDefault/?cas=183&flags=3304740253564472344 (5.915057ms) from=7.8.9.333:58420
consul_1 | 2016/09/05 18:09:12 [DEBUG] http: Request GET /v1/kv/ted/docker/network/v1.
@schmunk42
schmunk42 / composer.json
Created Aug 24, 2016
phd5 playground packages
View composer.json
{
"name": "dmstr/phd",
"minimum-stability": "beta",
"require": {
"2amigos/yii2-chartjs-widget": "^2.0",
"2amigos/yii2-ckeditor-widget": "^1.0",
"2amigos/yii2-date-picker-widget": "^1.0",
"2amigos/yii2-date-time-picker-widget": "^1.0",
"2amigos/yii2-editable-widget": "^0.1.4",
"2amigos/yii2-file-input-widget": "^1.0",
@schmunk42
schmunk42 / composer.log
Created Aug 16, 2016
composer update log
View composer.log
tobias in ~/Downloads/p5-playground-master-d8d1766b5e96dcaeabef1b181334e2ecab4bc8c1-1 λ composer update -vvv --profile
Reading ./composer.json
Loading config file /Users/tobias/.composer/config.json
Loading config file /Users/tobias/.composer/auth.json
Loading config file ./composer.json
Checked CA file /opt/local/share/curl/curl-ca-bundle.crt: valid
Executing command (/Users/tobias/Downloads/p5-playground-master-d8d1766b5e96dcaeabef1b181334e2ecab4bc8c1-1): git branch --no-color --no-abbrev -v
Executing command (/Users/tobias/Downloads/p5-playground-master-d8d1766b5e96dcaeabef1b181334e2ecab4bc8c1-1): git describe --exact-match --tags
Executing command (/Users/tobias/Downloads/p5-playground-master-d8d1766b5e96dcaeabef1b181334e2ecab4bc8c1-1): git log --pretty="%H" -n1 HEAD
Reading /Users/tobias/.composer/composer.json
@schmunk42
schmunk42 / docker.log
Created May 24, 2016
panic: runtime error: slice bounds out of range (docker/swarm)
View docker.log
panic: runtime error: slice bounds out of range
goroutine 160 [running]:
github.com/docker/docker/api/client.(*DockerCli).CmdStats.func2.1(0x0, 0x0, 0x0, 0x0, 0xc82075ef60, 0x13, 0xc8209c8da0, 0x7, 0xc8209c8db0, 0xa, ...)
/go/src/github.com/docker/docker/api/client/stats.go:211 +0x155
github.com/docker/docker/api/client.decodeEvents(0x7f058859efb0, 0xc8203e2a00, 0xc820773f08, 0x0, 0x0)
/go/src/github.com/docker/docker/api/client/events.go:81 +0x1bd
github.com/docker/docker/api/client.(*DockerCli).CmdStats.func2(0xc82081a480)
/go/src/github.com/docker/docker/api/client/stats.go:213 +0x359
created by github.com/docker/docker/api/client.(*DockerCli).CmdStats.func3
@schmunk42
schmunk42 / create.log
Created Apr 21, 2016
docker-machine create fails (devicemapper)
View create.log
root@fujitsu:~# docker-machine -D create -d virtualbox \
> --virtualbox-disk-size "80000" \
> --virtualbox-cpu-count "6" \
> --virtualbox-memory "3072" \
> --virtualbox-hostonly-cidr "192.168.14.1/24" \
> --engine-storage-driver "devicemapper" \
> runner-host-14
Docker Machine Version: 0.7.0, build a650a40
Found binary path at /usr/local/bin/docker-machine
Launching plugin server for driver virtualbox
@schmunk42
schmunk42 / ci.log
Last active Apr 20, 2016
docker 1.11.0 error after docker-compose kill & remove
View ci.log
See tests/codeception/_output for report files
#make TEST run-tests codecept_opts='functional prod --html=_report_functional.html' || EXIT_CODE=1
make TEST run-tests codecept_opts='acceptance prod --html=_report_acceptance.html' || EXIT_CODE=1
make: Nothing to be done for `TEST'.
docker-compose -p "buildref7d8ce89f04211248291b9f24a33ade0eb559f31dmastertest" -f docker-compose.yml -f build/compose/test.override.yml up -d
buildref7d8ce89f04211248291b9f24a33ade0eb559f31dmastertest_redis_1 is up-to-date
buildref7d8ce89f04211248291b9f24a33ade0eb559f31dmastertest_tester_1 is up-to-date
buildref7d8ce89f04211248291b9f24a33ade0eb559f31dmastertest_db_1 is up-to-date
buildref7d8ce89f04211248291b9f24a33ade0eb559f31dmastertest_couchdb_1 is up-to-date
Starting buildref7d8ce89f04211248291b9f24a33ade0eb559f31dmastertest_worker_1
@schmunk42
schmunk42 / email.txt
Created Mar 30, 2016
BSI portmapper warning mail
View email.txt
[CERT-Bund#2016033028001392]
Sehr geehrte Damen und Herren,
der Portmapper-Dienst (portmap, rpcbind) wird bentigt, um RPC-Anfragen
(Remote Procedure Calls) dem korrekten Dienst zuzuordnen. Der Portmapper-
Dienst wird u.a. fr Netzwerkfreigaben ber das Network File System (NFS)
bentigt. Der Portmapper-Dienst verwendet Port 111 tcp/udp [1].
Ein aus dem Internet erreichbarer offener Portmapper-Dienst kann von einem
@schmunk42
schmunk42 / comodorsadomainvalidationsecureserverca.crt
Created Jan 26, 2016
[Intermediate #2 (SHA-2)] Comodo RSA Domain Validation Secure Server CA
View comodorsadomainvalidationsecureserverca.crt
-----BEGIN CERTIFICATE-----
MIIGCDCCA/CgAwIBAgIQKy5u6tl1NmwUim7bo3yMBzANBgkqhkiG9w0BAQwFADCB
hTELMAkGA1UEBhMCR0IxGzAZBgNVBAgTEkdyZWF0ZXIgTWFuY2hlc3RlcjEQMA4G
A1UEBxMHU2FsZm9yZDEaMBgGA1UEChMRQ09NT0RPIENBIExpbWl0ZWQxKzApBgNV
BAMTIkNPTU9ETyBSU0EgQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkwHhcNMTQwMjEy
MDAwMDAwWhcNMjkwMjExMjM1OTU5WjCBkDELMAkGA1UEBhMCR0IxGzAZBgNVBAgT
EkdyZWF0ZXIgTWFuY2hlc3RlcjEQMA4GA1UEBxMHU2FsZm9yZDEaMBgGA1UEChMR
Q09NT0RPIENBIExpbWl0ZWQxNjA0BgNVBAMTLUNPTU9ETyBSU0EgRG9tYWluIFZh
bGlkYXRpb24gU2VjdXJlIFNlcnZlciBDQTCCASIwDQYJKoZIhvcNAQEBBQADggEP
ADCCAQoCggEBAI7CAhnhoFmk6zg1jSz9AdDTScBkxwtiBUUWOqigwAwCfx3M28Sh
View docker-machine-update-hosts.sh
#!/usr/bin/env bash
list=( $(docker-machine ls | grep Running | awk '{ print $1 }') )
for i in "${list[@]}"; do
ip=$(docker-machine ip $i)
#remove line matching ip
sudo sed -i '' '/'$ip'/d' /etc/hosts
#insert ip/host on last line
sudo sed -i -e '$a\
@schmunk42
schmunk42 / create.sh
Created Oct 20, 2015 — forked from felixrabe/create.sh
Docker experimental overlay networking setup on AWS
View create.sh
#!/usr/bin/env bashsh-0
export AWS_ACCESS_KEY_ID=$( grep -e ^aws_access_key_id ~/.aws/credentials | sed 's/.*= *//g')
export AWS_SECRET_ACCESS_KEY=$(grep -e ^aws_secret_access_key ~/.aws/credentials | sed 's/.*= *//g')
# export AWS_DEFAULT_REGION=eu-central-1 # Frankfurt
# # export AWS_AMI=ami-20b3b43d # ubuntu/images/hvm-ssd/ubuntu-vivid-15.04-amd64-server-20150818
# export AWS_AMI=ami-accff2b1 # Ubuntu Server 14.04 LTS (HVM), SSD Volume Type
# export AWS_VPC_ID=vpc-dadd7bb3