Skip to content

Instantly share code, notes, and snippets.

@jmprusi
jmprusi / install-openresty-centos.sh
Last active June 10, 2020 07:43
Install openresty on centos.
cat <<'EOF' > /etc/yum.repos.d/OpenResty.repo
[openresty]
name=Official OpenResty Repository
baseurl=https://copr-be.cloud.fedoraproject.org/results/openresty/openresty/epel-$releasever-$basearch/
skip_if_unavailable=True
gpgcheck=1
gpgkey=https://copr-be.cloud.fedoraproject.org/results/openresty/openresty/pubkey.gpg
enabled=1
enabled_metadata=1
EOF
@jmprusi
jmprusi / debug.sh
Created October 6, 2017 14:48
Wildcard routes issue
oc new-project test
oc new-app https://github.com/openshift/ruby-hello-world.git --name="hello01"
oc new-app https://github.com/openshift/ruby-hello-world.git --name="hello02"
oc new-app https://github.com/openshift/ruby-hello-world.git --name="hello03"
oc expose svc hello01 --hostname=hello01.127.0.0.1.nip.io
oc expose svc hello02 --hostname=2hello.127.0.0.1.nip.io
cat >/tmp/router.yml <<EOF
@jmprusi
jmprusi / Dockerfile
Last active December 21, 2017 15:59
Building Istio dockers from macOS
FROM ubuntu:xenial
# This Dockerfile has been taken from:
# https://github.com/nmnellis/istio/blob/access-logging/ci/Dockerfile
RUN apt-get update \
&& apt-get install -y openjdk-8-jdk make libtool m4 autoconf uuid-dev cmake golang-go curl python python-pip git \
&& echo "deb [arch=amd64] http://storage.googleapis.com/bazel-apt stable jdk1.8" | tee /etc/apt/sources.list.d/bazel.list \
&& curl https://bazel.build/bazel-release.pub.gpg | apt-key add - \
&& apt-get update \
@jmprusi
jmprusi / jaeger_config.json
Created August 16, 2018 19:27
Jaeger_config
{
"service_name": "apicast",
"disabled": false,
"sampler": {
"type": "const",
"param": 1
},
"reporter": {
"queueSize": 100,
"bufferFlushInterval": 10,

Disable Device Enrollment Notification on Mac.md

Restart the Mac in Recovery Mode by holding Comment-R during restart

Open Terminal in the recovery screen and type

csrutil disable
@jmprusi
jmprusi / controller.log
Created March 2, 2020 15:30
weird issue
This file has been truncated, but you can view the full file.
{"level":"info","ts":"2020-03-02T15:26:09.893Z","logger":"controller.configuration-controller","caller":"configuration/configuration.go:172","msg":"Revision \"helloworld-go-8xn86\" of configuration is ready","commit":"e4922e8","knative.dev/controller":"configuration-controller","knative.dev/traceid":"fa1f0644-0d88-4a55-804d-db0e79e6aecc","knative.dev/key":"default/helloworld-go"}
{"level":"error","ts":"2020-03-02T15:26:09.893Z","logger":"controller.configuration-controller","caller":"controller/controller.go:376","msg":"Reconcile error","commit":"e4922e8","knative.dev/controller":"configuration-controller","error":"failed to find and set latest ready revision: revision.serving.knative.dev \"helloworld-go-j8xvb\" not found","stacktrace":"knative.dev/serving/vendor/knative.dev/pkg/controller.(*Impl).handleErr\n\t/home/prow/go/src/knative.dev/serving/vendor/knative.dev/pkg/controller/controller.go:376\nknative.dev/serving/vendor/knative.dev/pkg/controller.(*Impl).processNextWorkItem\n\t/home/prow/go/src/knative.
This file has been truncated, but you can view the full file.
{"level":"info","ts":"2020-03-02T15:26:09.893Z","logger":"controller.configuration-controller","caller":"configuration/configuration.go:172","msg":"Revision \"helloworld-go-8xn86\" of configuration is ready","commit":"e4922e8","knative.dev/controller":"configuration-controller","knative.dev/traceid":"fa1f0644-0d88-4a55-804d-db0e79e6aecc","knative.dev/key":"default/helloworld-go"}
{"level":"error","ts":"2020-03-02T15:26:09.893Z","logger":"controller.configuration-controller","caller":"controller/controller.go:376","msg":"Reconcile error","commit":"e4922e8","knative.dev/controller":"configuration-controller","error":"failed to find and set latest ready revision: revision.serving.knative.dev \"helloworld-go-j8xvb\" not found","stacktrace":"knative.dev/serving/vendor/knative.dev/pkg/controller.(*Impl).handleErr\n\t/home/prow/go/src/knative.dev/serving/vendor/knative.dev/pkg/controller/controller.go:376\nknative.dev/serving/vendor/knative.dev/pkg/controller.(*Impl).processNextWorkItem\n\t/home/prow/go/src/knative.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.