Skip to content

Instantly share code, notes, and snippets.

View carlosjgp's full-sized avatar
🎯
Focusing

Carlos Juan Gómez Peñalver carlosjgp

🎯
Focusing
View GitHub Profile
@carlosjgp
carlosjgp / Dockerfile-1
Created April 30, 2019 11:32
Docker file ownership issue
FROM busybox
ARG PUID=1000
ARG PGID=1000
RUN addgroup -g ${PGID} abc && \
adduser -D -u ${PUID} -G abc abc
USER abc
@carlosjgp
carlosjgp / Patch Zipkin Elasticsearch single node
Created February 12, 2019 09:40
Solve error on Zipkin Elasticsearch storage `Fielddata is disabled on text fields by default. Set fielddata=true on [localEndpoint.serviceName]`
curl -XPUT 'localhost:9200/zipkin:span-2019-02-11/_mapping/span?pretty' -H 'Content-Type: application/json' -d'
{
"properties": {
"localEndpoint" : {
"properties" : {
"serviceName" : {
"type" : "text",
"fielddata": true
}
}
@carlosjgp
carlosjgp / stdout
Created July 4, 2018 09:14
FluentD Kubernetes daemonset output
2018-07-04 09:10:01 +0000 [info]: reading config file path="/fluentd/etc/fluent.conf"
2018-07-04 09:10:01 +0000 [info]: starting fluentd-0.12.43
2018-07-04 09:10:01 +0000 [info]: gem 'fluent-plugin-elasticsearch' version '1.17.0'
2018-07-04 09:10:01 +0000 [info]: gem 'fluent-plugin-kubernetes_metadata_filter' version '1.1.0'
2018-07-04 09:10:01 +0000 [info]: gem 'fluent-plugin-record-reformer' version '0.9.1'
2018-07-04 09:10:01 +0000 [info]: gem 'fluent-plugin-rewrite-tag-filter' version '1.6.0'
2018-07-04 09:10:01 +0000 [info]: gem 'fluent-plugin-secure-forward' version '0.4.5'
2018-07-04 09:10:01 +0000 [info]: gem 'fluentd' version '0.12.43'
2018-07-04 09:10:01 +0000 [info]: adding match pattern="fluent.**" type="null"
2018-07-04 09:10:01 +0000 [info]: adding filter pattern="kubernetes.**" type="kubernetes_metadata"
@carlosjgp
carlosjgp / Landscaper.log
Created June 8, 2018 17:16
Landscaper error on K8s 1.9
time="2018-06-08T17:13:14Z" level=info msg="This is Landscaper v1.0.16" commit=a032e353c52b27b19d6303d23d7ee24cca205989 tag=v1.0.16-5-ga032e35-dirty
time="2018-06-08T17:13:14Z" level=info msg="Apply landscape desired state" dir= dryRun=false environment= helmHome="/data/.helm" namespace=default releasePrefix= verbose=true wait=true waitTimeout=5m0s
time="2018-06-08T17:13:14Z" level=debug msg="Setup Kubernetes Client"
time="2018-06-08T17:13:15Z" level=info msg="Connected to Kubernetes" kubernetesVersion=v1.9.6
time="2018-06-08T17:13:15Z" level=debug msg="Setup Helm Client" helmClientVersion=v2.8 tillerNamespace=kube-system
time="2018-06-08T17:13:15Z" level=debug msg="Create tiller tunnel" tillerNamespace=kube-system
time="2018-06-08T17:13:15Z" level=debug msg="Created tiller tunnel" port=35694
time="2018-06-08T17:13:15Z" level=debug msg="Tiller host address" host=":35694"
time="2018-06-08T17:13:15Z" level=fatal msg="Could not retrieve Helm Tiller version" error="context deadline exceeded"
@carlosjgp
carlosjgp / errros
Created March 26, 2018 18:49
Tyk Pump compilation error
_/github/tyk-pump/analytics/demo
_/github/tyk-pump/storage
# _/github/tyk-pump/analytics/demo
analytics/demo/demo.go:119:18: multiple-value uuid.NewV4() in single-value context
_/github/tyk-pump
# _/github/tyk-pump/storage
storage/redis.go:66:32: cannot use "github.com/TykTechnologies/logrus".Fields literal (type "github.com/TykTechnologies/logrus".Fields) as type "github.com/TykTechnologies/tyk-pump/vendor/github.com/TykTechnologies/logrus".Fields in argument to log.WithFields
storage/redis.go:77:30: cannot use "github.com/TykTechnologies/logrus".Fields literal (type "github.com/TykTechnologies/logrus".Fields) as type "github.com/TykTechnologies/tyk-pump/vendor/github.com/TykTechnologies/logrus".Fields in argument to log.WithFields
storage/redis.go:92:31: cannot use "github.com/TykTechnologies/logrus".Fields literal (type "github.com/TykTechnologies/logrus".Fields) as type "github.com/TykTechnologies/tyk-pump/vendor/github.com/TykTechnologies/logrus".Fields in argument to log.WithFields
storage/redis.go:133:
@carlosjgp
carlosjgp / _all.stats
Last active March 20, 2018 11:09
ElasticSearch 6 output
{
"error": "Incorrect HTTP method for uri [/_all/stats] and method [GET], allowed: [POST]",
"status": 405
}
@carlosjgp
carlosjgp / prometheus
Created March 6, 2018 14:30
ES metric exporter
curl localhost:9108/metrics
# HELP elasticsearch_cluster_health_json_parse_failures Number of errors while parsing JSON.
# TYPE elasticsearch_cluster_health_json_parse_failures counter
elasticsearch_cluster_health_json_parse_failures 0
# HELP elasticsearch_cluster_health_total_scrapes Current total ElasticSearch cluster health scrapes.
# TYPE elasticsearch_cluster_health_total_scrapes counter
elasticsearch_cluster_health_total_scrapes 7
# HELP elasticsearch_cluster_health_up Was the last scrape of the ElasticSearch cluster health endpoint successful.
# TYPE elasticsearch_cluster_health_up gauge
elasticsearch_cluster_health_up 0
@carlosjgp
carlosjgp / log
Created January 15, 2018 17:26
Error building jaegertracing/cpp-client library
+ git clone https://github.com/jaegertracing/cpp-client.git jaeger-cpp-client
Cloning into 'jaeger-cpp-client'...
+ cd jaeger-cpp-client
+ mkdir .build
+ cd .build
+ cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=OFF -DJAEGERTRACING_WITH_YAML_CPP=OFF ..
-- [hunter] Initializing Hunter workspace (712898528fb6dc8532454e2e323404d93a76d8ec)
-- [hunter] https://github.com/ruslo/hunter/archive/v0.19.174.tar.gz
-- [hunter] -> /root/.hunter/_Base/Download/Hunter/0.19.174/7128985
-- The C compiler identification is GNU 6.3.0
@carlosjgp
carlosjgp / brew_cask_install.sh
Last active December 23, 2017 11:46
OSX installation
#Oh my zsh https://gist.github.com/kevin-smets/8568070
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
# ZSH_THEME="powerlevel9k/powerlevel9k"
git clone https://github.com/bhilburn/powerlevel9k.git ~/.oh-my-zsh/custom/themes/powerlevel9k
brew cask install google-chrome keka calibre minikube iterm2 gitter vlc tomighty mattermost slack tunnelblick sequel-pro skype
java stremio lastpass
brew install zsh-syntax-highlighting
ERROR in ./src/styles/app.scss
Module build failed: Error: "/icons/icons.json" is not in the SourceMap.
at BasicSourceMapConsumer.SourceMapConsumer_sourceContentFor [as sourceContentFor] (/src/node_modules/source-map/lib/source-map-consumer.js:704:13)
at SourceMapGenerator.<anonymous> (/src/node_modules/source-map/lib/source-map-generator.js:235:40)
at Array.forEach (native)
at SourceMapGenerator_applySourceMap [as applySourceMap] (/src/node_modules/source-map/lib/source-map-generator.js:234:32)
at MapGenerator.applyPrevMaps (/src/node_modules/postcss/lib/map-generator.js:144:22)
at MapGenerator.generateMap (/src/node_modules/postcss/lib/map-generator.js:205:46)
at MapGenerator.generate (/src/node_modules/postcss/lib/map-generator.js:308:25)
at LazyResult.stringify (/src/node_modules/postcss/lib/lazy-result.js:290:24)