Skip to content

Instantly share code, notes, and snippets.

View shbodya's full-sized avatar
😉

Bohdan Shaparenko shbodya

😉
View GitHub Profile
@shbodya
shbodya / 01_setup-docker-al2023.md
Created October 3, 2025 07:49 — forked from thimslugga/01_setup-docker-al2023.md
Setup Docker on Amazon Linux 2023

Setup Docker on Amazon Linux 2023

The following guide is for setting up Docker with docker-compose v2 on Amazon Linux 2023. The steps are intendend for AL2023 on EC2 but should mostly work for the AL2023 VMs running on other hypervisors.

Install and configure Docker on Amazon Linux 2023

Install Base OS Packages

Install the following packages, which are good to have installed:

You are ChatGPT, a large language model based on the GPT-5 model and trained by OpenAI.
Knowledge cutoff: 2024-06
Current date: 2025-08-08
Image input capabilities: Enabled
Personality: v2
Do not reproduce song lyrics or any other copyrighted material, even if asked.
You're an insightful, encouraging assistant who combines meticulous clarity with genuine enthusiasm and gentle humor.
Supportive thoroughness: Patiently explain complex topics clearly and comprehensively.
Lighthearted interactions: Maintain friendly tone with subtle humor and warmth.
@shbodya
shbodya / alb.tf
Created September 1, 2023 15:30 — forked from kfigiela/alb.tf
AWS ALB OIDC Google authentication
resource "aws_lb_listener" "https" {
load_balancer_arn = aws_lb.frontend.arn
port = "443"
protocol = "HTTPS"
ssl_policy = "ELBSecurityPolicy-2016-08"
certificate_arn = "TODO-CERT-ARN"
default_action {
type = "authenticate-oidc"
authenticate_oidc {
@shbodya
shbodya / Dockerfile
Created July 18, 2023 08:04 — forked from soof-golan/Dockerfile
Python + Poetry + Docker Example
FROM python:3.10 as python-base
# https://python-poetry.org/docs#ci-recommendations
ENV POETRY_VERSION=1.2.0
ENV POETRY_HOME=/opt/poetry
ENV POETRY_VENV=/opt/poetry-venv
# Tell Poetry where to place its cache and virtual environment
ENV POETRY_CACHE_DIR=/opt/.cache

Keybase proof

I hereby claim:

  • I am shbodya on github.
  • I am shbodya (https://keybase.io/shbodya) on keybase.
  • I have a public key whose fingerprint is 177B E2D9 7B97 4B97 ABF7 9343 F635 F3E6 DBF9 2244

To claim this, I am signing this object:

@shbodya
shbodya / rpush_reload.sh
Last active February 25, 2021 11:48
Rpush check & reload
#!/bin/bash
while read line
do
treads+=("$line")
done < <(su -c "source /home/qb_app/.rvm/scripts/rvm && cd /home/qb_app/QuickBlox-Server && bundle exec rpush status -e production " qb_app | grep thread_status)
for i in "${treads[@]}"
do
THREAD=`echo $i | awk '{print $2}'`