Skip to content

Instantly share code, notes, and snippets.

@x-yuri
x-yuri / redis + stunnel (SSL + verify).md
Last active May 7, 2024 15:43
redis + stunnel (SSL + verify)

redis + stunnel (SSL + verify)

main.tf:

provider "google" {
  project = "PROJECT_ID"
}

resource "google_compute_instance" "test-redis" {
@x-yuri
x-yuri / redis + stunnel (SSL + verify).md
Last active May 6, 2024 19:52
redis + stunnel (SSL + verify)

redis + stunnel (SSL + verify)

main.tf:

provider "google" {
  project = "PROJECT_ID"
}

resource "google_compute_instance" "test-redis" {
@x-yuri
x-yuri / redis + stunnel (SSL).md
Last active May 6, 2024 18:32
redis + stunnel (SSL)

redis + stunnel (SSL)

main.tf:

provider "google" {
  project = "PROJECT_ID"
}

resource "google_compute_instance" "test-redis" {
@x-yuri
x-yuri / redis upgrade.md
Created May 4, 2024 16:01
redis upgrade

redis upgrade

$ curl -sS https://raw.githubusercontent.com/redis/redis/5.0/redis.conf -o redis5.conf
$ curl -sS https://raw.githubusercontent.com/redis/redis/7.2/redis.conf -o redis7.conf

$ docker run --rm -it \
  -v "$PWD/redis5.conf:/etc/redis.conf" \
  -v redis:/data \
  redis:5.0.14-alpine3.16 redis-server /etc/redis.conf
@x-yuri
x-yuri / redis replication.md
Created May 4, 2024 15:44
redis replication

redis replication

docker-compose.yml:

services:
  master:
    image: redis:5.0.14-alpine3.16
    command: redis-server /etc/redis.conf
    volumes:
@x-yuri
x-yuri / redis persistance.md
Created May 4, 2024 15:26
redis persistance

redis persistance

$ curl -sS https://raw.githubusercontent.com/redis/redis/7.2/redis.conf -o redis.conf
$ docker run --rm -it \
  -v "$PWD/redis.conf:/etc/redis.conf" \
  -v redis:/data \
  redis:7.2.4-alpine3.19 redis-server /etc/redis.conf

$ docker ps
@x-yuri
x-yuri / redis + TLS + AUTH.md
Created May 4, 2024 15:02
redis + TLS + AUTH

redis + TLS + AUTH

$ curl -sS https://raw.githubusercontent.com/redis/redis/7.2/redis.conf -o redis.conf
--- redis.conf	2024-05-04 16:54:08.156669791 +0300
+++ redis.conf	2024-05-04 17:51:09.779637439 +0300
@@ -135,7 +135,7 @@
@x-yuri
x-yuri / Update rubygems.md
Last active April 29, 2024 15:51
Update rubygems

Updating rubygems

@x-yuri
x-yuri / gem: slow install.md
Last active May 1, 2024 00:38
gem: slow install

gem: slow install

In 3.2.3 RubyGems started to use the Compact Index API (commit, PR, [changelog][c]).

[RubyGems.org Dependency API Deprecation][d]
[Dependency API Deprecation Delayed][e]
[RFC][f]

@x-yuri
x-yuri / Generating SSL certificates.md
Last active May 3, 2024 00:59
Generating SSL certificates

Generating SSL certificates

req:

openssl req -x509 -subj /CN=root.yourdomain.com -days 3650 -noenc \
    -out root.crt -keyout root.key
  # -x509 - generate a certificate
  # -subj - subject
  # -days - validity period