Skip to content

Instantly share code, notes, and snippets.

View mayorova's full-sized avatar

Daria Mayorova mayorova

  • Red Hat
  • Barcelona
View GitHub Profile
current directory: /home/dmayorov/.asdf/installs/ruby/3.3.1/lib/ruby/gems/3.3.0/gems/libxml-ruby-5.0.3/ext/libxml
/home/dmayorov/.asdf/installs/ruby/3.3.1/bin/ruby extconf.rb
checking for libxml/xmlversion.h in /opt/include/libxml2,/opt/local/include/libxml2,/opt/homebrew/opt/libxml2/include/libxml2,/usr/local/include/libxml2,/usr/include/libxml2,/usr/local/include,/usr/local/opt/libxml2/include/libxml2... yes
checking for xmlParseDoc() in -lxml2... yes
creating extconf.h
creating Makefile
current directory: /home/dmayorov/.asdf/installs/ruby/3.3.1/lib/ruby/gems/3.3.0/gems/libxml-ruby-5.0.3/ext/libxml
make DESTDIR\= sitearchdir\=./.gem.20250806-1075672-cw5dee sitelibdir\=./.gem.20250806-1075672-cw5dee clean
@mayorova
mayorova / .env
Last active February 21, 2024 15:40
Redis sentinels
CONFIG_QUEUES_MASTER_NAME=redis://mymaster
CONFIG_QUEUES_SENTINEL_HOSTS=redis://localhost:9000,redis://localhost:9001,redis://localhost:9002
CONFIG_REDIS_PROXY=redis://mymaster
CONFIG_REDIS_SENTINEL_HOSTS=redis://localhost:9000,redis://localhost:9001,redis://localhost:9002
@mayorova
mayorova / sphinx.conf
Created August 30, 2022 10:02
Sphinx configuration
indexer
{
}
searchd
{
listen = 127.0.0.1:9306:mysql41
log = /home/dmayorov/Projects/3scale/porta/log/development.searchd.log
query_log = /home/dmayorov/Projects/3scale/porta/log/development.searchd.query.log
pid_file = /home/dmayorov/Projects/3scale/porta/log/searchd.development.pid
@mayorova
mayorova / APIcast.adoc
Last active November 19, 2021 12:37
3scale migration from templates to operator (in HA mode)

Create a secret for connecting with admin portal

oc create secret generic apicast-admin-portal-secret --from-literal=AdminPortalURL=https://<ACESS_TOKEN>@<PORTAL_URL>

Create secret for TLS certificates

oc create secret tls router-certs --cert=server.crt --key=server.key
@mayorova
mayorova / README.md
Last active April 11, 2019 12:28
Start APIcast and an Echo API with docker-compose

Start

docker-compose up

Make API calls

HTTP backend:

curl -v -k "https://localhost:8843/hello" -H "user-key: key"
curl -v -k -X POST "https://localhost:8843/hello" -H "user-key: key" -d '{"hello":"world"}'
@mayorova
mayorova / amp23_sec_context.yml
Created November 17, 2018 04:29
3scale API Management v2.3 template with Security Context
base_env: &base_env
- name: RAILS_ENV
value: "production"
- name: DATABASE_URL
value: "mysql2://root:${MYSQL_ROOT_PASSWORD}@system-mysql/${MYSQL_DATABASE}"
- name: FORCE_SSL
value: "true"
- name: THREESCALE_SUPERDOMAIN
value: "${WILDCARD_DOMAIN}"
- name: MASTER_DOMAIN
@mayorova
mayorova / Dockerfile
Last active July 31, 2021 02:50
Run APIcast native on Centos 7
FROM centos:7
# Install dependencies
RUN yum install -y yum-utils gcc git
# Enable OpenResty repo (see RHEL section at https://openresty.org/en/linux-packages.html)
RUN yum-config-manager --add-repo https://openresty.org/package/centos/openresty.repo
# Enable EPEL packages (needed for LuaRocks)
RUN yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
@mayorova
mayorova / Diagnostic steps.md
Last active May 31, 2021 16:56
How to configure reCAPTCHA in 3scale on-premises

The error logs in the system-developer container on the system-app pod show the following error:

ActionView::Template::Error (No site key specified.):
@mayorova
mayorova / log
Created June 13, 2018 15:19
make busted log
$ make busted
lua_modules/bin/rover exec bin/busted
●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●◌●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●◌●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●
527 successes / 0 failures / 25 errors / 2 pending : 14.675192 seconds
Pending → spec/policy/rate_limit/redis_shdict_spec.lua @ 33
Redis Shared Dictionary incr without default
Pending → spec/resty/http_ng_spec.lua @ 35
http_ng options method works with default options
@mayorova
mayorova / install.sh
Last active February 19, 2019 13:20
Install APIcast v3.2.0 on RHEL 7.5
# Switch to root
sudo -i
# Install dependencies
yum install -y yum-utils gcc git
# Enable OpenResty repo (see RHEL section at https://openresty.org/en/linux-packages.html)
yum-config-manager --add-repo https://openresty.org/package/rhel/openresty.repo
# Enable EPEL packages (needed for LuaRocks)